]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6182 intégration question drag and drop
authorsoufiane <soufiane@cubedesigners.com>
Mon, 14 Aug 2023 16:21:10 +0000 (18:21 +0200)
committersoufiane <soufiane@cubedesigners.com>
Mon, 14 Aug 2023 16:21:10 +0000 (18:21 +0200)
resources/quizv2/style/004-mixins.sass
resources/quizv2/style/100-global.sass
resources/quizv2/style/106-question-draganddrop.sass [new file with mode: 0644]
resources/quizv2/style/style.sass

index 333b95387e5bf22ff08a1fc176e8e0d263aedb5d..bd8e37f9c4a17c68f93696a25683f1aa595152bf 100644 (file)
     font-size: #{$size}px
     line-height: map-get($fonts-size,$size)
 
+
 @mixin padding-container()
     padding: 16px
     +breakpoint(md)
         padding: 24px
+
+@mixin radius($size)
+    border-radius: $size
index b7af25569ea6c78e23fd79335dbc75b9d94942a0..763a60da35d230544d1b8acfcb3d1fef2a4b39ad 100644 (file)
@@ -51,6 +51,7 @@ body
     text-transform: uppercase
     margin-left: 16px
     +flex-config(center,false,false,center)
+    border: 0
     &.space
         width: 70px
     &.infos
diff --git a/resources/quizv2/style/106-question-draganddrop.sass b/resources/quizv2/style/106-question-draganddrop.sass
new file mode 100644 (file)
index 0000000..9d599e9
--- /dev/null
@@ -0,0 +1,94 @@
+.container-screen.question-draganddrop
+    .screen-image
+        width: auto
+        img
+            height: 100%
+        &.zone-1
+            .zone-content
+                left: 24px
+        &.zone-2
+            left: initial
+            right: 0
+            .zone-content
+                right: 24px
+        .zone-content
+            position: absolute
+            top: 50%
+            transform: translateY(-50%)
+            width: 100%
+            max-width: 180px
+            .text
+                margin-bottom: 21px
+
+        form
+            +opacity(.08,background-color,$texts-color)
+            +radius(16px)
+            padding: 8px
+            border: 1px dashed rgba($texts-color,.4)
+        .slot
+            width: 100%
+            height: 51px
+            border: 1px solid rgba($texts-color,.24)
+            +radius(8px)
+
+    .screen
+        +flex-config(center, false, false, center)
+        margin-top: 92px
+        .list
+            position: relative
+            width: 100%
+            max-width: 368px
+            height: 225px
+            margin: 0 16px
+            &-item
+                position: absolute
+                width: 100%
+                height: 100%
+                +radius(16px)
+                &:nth-child(1)
+                    background-color: $neutral-color
+                    z-index: 4
+                    border: 2px solid $texts-color
+                    padding: 20px
+                &:nth-child(2)
+                    opacity: .64
+                    +opacity(.8,background-color,$neutral-color)
+                    transform: scale(.9)
+                    z-index: 3
+                    top: 32px
+                &:nth-child(3)
+                    opacity: .4
+                    +opacity(.8,background-color,$neutral-color)
+                    transform: scale(.81)
+                    z-index: 2
+                    top: 61px
+                &:nth-child(4)
+                    opacity: .16
+                    +opacity(.8,background-color,$neutral-color)
+                    transform: scale(0.72)
+                    z-index: 1
+                    top: 91px
+                &:not(:nth-child(-n+4)) // on cache les items à partir du 5ème
+                    opacity: 0
+                    visibility: hidden
+
+
+    .controls
+        width: 124px
+        padding: 12px 0
+        +font-size(20)
+        +opacity(.16,background-color,$texts-color)
+        border-radius: 16px
+        text-align: center
+        &.left .access
+            transform: rotate(-90deg)
+        &.right .access
+            transform: rotate(90deg)
+        p
+            margin-bottom: 5px
+        .access
+            margin: 0 auto
+            span
+                display: flex
+        svg
+            color: $texts-color
index 3e9cd8974de7af531b7b0c2a3664537f190d0170..b3a649cc416f1757e550b0b118bc42c2e5a2fd53 100644 (file)
@@ -9,3 +9,4 @@
 @import 103-question-multiple
 @import 104-animations
 @import 105-outro
+@import 106-question-draganddrop