From: soufiane Date: Fri, 18 Aug 2023 10:25:28 +0000 (+0200) Subject: wip #6193 @1:40 responsive outro X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ca40fafb665850f37438b9c631183a24c5854d21;p=fluidbook-toolbox-quiz.git wip #6193 @1:40 responsive outro --- diff --git a/style/105-outro.sass b/style/105-outro.sass index ae841e7..79baa85 100644 --- a/style/105-outro.sass +++ b/style/105-outro.sass @@ -1,21 +1,37 @@ .score - height: 576px //680(hauteur de base) - 80(hauteur du header) - 24(padding inférieure) - +opacity(.48,background-color,$neutral-color) + height: 600px //680(hauteur de base) - 80(hauteur du header) border-radius: 40px overflow: hidden +flex-config(false,false,row,stretch) +below(993px) position: static + border-radius: 0 + +above(992px) + +opacity(.48,background-color,$neutral-color) + height: 576px //680(hauteur de base) - 80(hauteur du header) - 24(padding inférieure) + + &:after + +below(993px) + content: "" + width: 100% + position: absolute + height: 100% + +opacity(.48,background-color,$neutral-color) + top: 0 + left: 0 .subtitle +opacity(.8,color,$texts-color) + +below(993px) + margin-bottom: 20px &-content flex: 1 padding: 24px position: relative + z-index: 1 +below(993px) - padding: 16px + padding: 0 h1 +font-size(40) margin-bottom: 9px @@ -47,6 +63,7 @@ margin-right: 60px +below(993px) margin: 0 0 24px + font-size: 56px #progress-counter width: 100% height: 100% @@ -84,9 +101,10 @@ padding: 16px 16px 0 align-items: flex-end visibility: hidden - +opacity(0,background-color,$ok-color) + //+opacity(0,background-color,$ok-color) + backdrop-filter: blur(4px) &.active - +opacity(1,background-color,$ok-color) + //+opacity(1,background-color,$ok-color) visibility: visible &-answers-review @@ -176,13 +194,38 @@ position: absolute width: calc(100% - 48px) bottom: 24px + z-index: 1 +below(993px) - width: calc(100% - 32px) + width: 100% + bottom: 0 .restart-sentence margin-bottom: 14px .controls +flex-config(space-between) + .restart-sentence, + .btn.restart + +below(993px) + display: none + &-mobile + +flex-config(center) + +above(992px) + display: none + + .restart-sentence-mobile + margin-bottom: 14px + font-size: 14px + + .btn.restart-mobile + width: max-content + height: 35px + padding: 12px + margin: 0 auto + font-size: 16px + svg + height: 13px + margin-right: 6px + // SimpleBar personalisation .simplebar-wrapper diff --git a/views/screens/outro.blade.php b/views/screens/outro.blade.php index 74b52c7..71c2171 100644 --- a/views/screens/outro.blade.php +++ b/views/screens/outro.blade.php @@ -19,6 +19,13 @@

You have completed the quiz
with correct answers out of

+ @if($data->restart_button) +
Want to improve your score?
+ + + Restart + + @endif