From: soufiane Date: Wed, 27 Sep 2023 15:08:19 +0000 (+0200) Subject: wait #6312 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0f46d3990e8b67b99b5069c40abc1178d31b6a96;p=fluidbook-toolbox-quiz.git wait #6312 @0:05 --- diff --git a/js/quiz.js b/js/quiz.js index 2eae95b..64549b7 100644 --- a/js/quiz.js +++ b/js/quiz.js @@ -78,6 +78,7 @@ Quiz.prototype = { updateIcons: function () { $("[data-icon]").each(function () { var iconId = 'quiz-' + $(this).data('icon'); + // L'icône est déjà en place if ($(this).children('svg.' + iconId).length) { return; @@ -86,6 +87,7 @@ Quiz.prototype = { $(this).children('svg.svg-icon').remove(); // Puis on ajoute l'icône var icon = getSpriteIcon(iconId); + if ($(this).is('[data-icon-prepend]')) { $(this).prepend(icon); } else { diff --git a/js/quiz.match.js b/js/quiz.match.js index 33f4fa1..ca213d6 100644 --- a/js/quiz.match.js +++ b/js/quiz.match.js @@ -89,17 +89,7 @@ QuizMatch.prototype = { opacity: 1 }) .to(".active-screen .bottom-slider .swiper-slide", { - opacity: function(index) { - let opacity = 1 - if(index === 1) { - opacity = 0.48 - }else if(index === 2) { - opacity = 0.24 - }else if(index === 3) { - opacity = 0 - } - return opacity - }, + opacity: 1, ease: "power1.inOut", stagger: .15, onComplete: function() { diff --git a/style/103-question-multiple.sass b/style/103-question-multiple.sass index 273e409..caa494b 100644 --- a/style/103-question-multiple.sass +++ b/style/103-question-multiple.sass @@ -51,6 +51,7 @@ .screen.question-multiple .list grid-gap: 8px + grid-template-columns: none .list-item label height: 56px diff --git a/style/105-outro.sass b/style/105-outro.sass index 1bedb26..98c2a1f 100644 --- a/style/105-outro.sass +++ b/style/105-outro.sass @@ -271,7 +271,12 @@ width: 100% bottom: 0 .btn - font-size: 18px + font-size: 16px + [data-icon='search'] + +flex-config(center,'','',center) + svg + fill: $texts-color + margin-right: 10px .restart-sentence, .btn.restart