@pocketprep/ui-kit 3.4.9 → 3.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@pocketprep/ui-kit.js +7923 -7712
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +8 -8
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/Quiz/Question/Explanation.vue +333 -0
- package/lib/components/Quiz/Question/PassageAndImage.vue +226 -0
- package/lib/components/Quiz/Question/PassageAndImageDropdown.vue +0 -2
- package/lib/components/Quiz/Question.vue +70 -577
- package/package.json +1 -1
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
v-if="question.passage || passageImageUrl"
|
|
79
79
|
ref="uikit-question__passage-and-image-dropdown"
|
|
80
80
|
class="uikit-question__passage-and-image-dropdown"
|
|
81
|
+
:class="{ 'uikit-question__passage-and-image-dropdown--review-mode': reviewMode }"
|
|
81
82
|
:question="question"
|
|
82
83
|
:question-el="questionEl"
|
|
83
84
|
:breakpoints="breakpoints"
|
|
@@ -310,149 +311,42 @@
|
|
|
310
311
|
'uikit-question__right-side--explanation': showExplanation && !showPaywall,
|
|
311
312
|
}"
|
|
312
313
|
>
|
|
313
|
-
<
|
|
314
|
+
<PassageAndImage
|
|
314
315
|
v-if="showPassageAndImage"
|
|
315
|
-
|
|
316
|
+
ref="uikit-question__passage-and-image"
|
|
316
317
|
class="uikit-question__passage-and-image"
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
v-if="passageImageUrl"
|
|
333
|
-
v-dark="isDarkMode"
|
|
334
|
-
v-breakpoint:questionEl="breakpoints"
|
|
335
|
-
class="uikit-question__image"
|
|
336
|
-
:src="passageImageUrl"
|
|
337
|
-
:alt="`${passageImageAlt}. Extended image description below.`"
|
|
338
|
-
>
|
|
339
|
-
<PocketButton
|
|
340
|
-
v-if="passageImageLongAlt"
|
|
341
|
-
v-breakpoint:questionEl="breakpoints"
|
|
342
|
-
type="tertiary-small"
|
|
343
|
-
class="uikit-question__toggle-passage-image-description"
|
|
344
|
-
:is-dark-mode="isDarkMode"
|
|
345
|
-
:aria-expanded="showPassageImageLongAlt ? 'true' : 'false'"
|
|
346
|
-
@click.stop="togglePassageImageLongAlt"
|
|
347
|
-
@mousedown.prevent
|
|
348
|
-
>
|
|
349
|
-
<span class="uikit-question__toggle-passage-image-description-text">Image Description</span>
|
|
350
|
-
<Icon
|
|
351
|
-
class="uikit-question__toggle-passage-image-description-icon"
|
|
352
|
-
:class="{
|
|
353
|
-
'uikit-question__toggle-passage-image-description-icon--up': showPassageImageLongAlt,
|
|
354
|
-
}"
|
|
355
|
-
type="accordionArrow"
|
|
356
|
-
/>
|
|
357
|
-
</PocketButton>
|
|
358
|
-
<div
|
|
359
|
-
v-if="showPassageImageLongAlt"
|
|
360
|
-
ref="uikit-question__passage-image-description"
|
|
361
|
-
v-dark="isDarkMode"
|
|
362
|
-
class="uikit-question__passage-image-description"
|
|
363
|
-
tabindex="-1"
|
|
364
|
-
v-html="passageImageLongAlt"
|
|
365
|
-
/>
|
|
366
|
-
<PocketButton
|
|
367
|
-
class="uikit-question__return-to-prompt"
|
|
368
|
-
@click="moveFocusToPrompt"
|
|
369
|
-
>
|
|
370
|
-
Return to Question
|
|
371
|
-
</PocketButton>
|
|
372
|
-
</div>
|
|
373
|
-
<div
|
|
374
|
-
v-if="showExplanation && !showPaywall"
|
|
375
|
-
v-breakpoint:questionEl="breakpoints"
|
|
376
|
-
v-dark="isDarkMode"
|
|
318
|
+
:question="question"
|
|
319
|
+
:show-passage-image-long-alt="showPassageImageLongAlt"
|
|
320
|
+
:show-passage-and-image="showPassageAndImage"
|
|
321
|
+
:passage-image-url="passageImageUrl"
|
|
322
|
+
:passage-image-long-alt="passageImageLongAlt"
|
|
323
|
+
:passage-image-alt="passageImageAlt"
|
|
324
|
+
:passage-and-image-title="passageAndImageTitle"
|
|
325
|
+
:is-dark-mode="isDarkMode"
|
|
326
|
+
:question-el="questionEl"
|
|
327
|
+
:breakpoints="breakpoints"
|
|
328
|
+
@emitTogglePassageImageLongAlt="togglePassageImageLongAlt"
|
|
329
|
+
@emitMoveFocusToPrompt="moveFocusToPrompt"
|
|
330
|
+
/>
|
|
331
|
+
<Explanation
|
|
332
|
+
ref="uikit-question__explanation"
|
|
377
333
|
class="uikit-question__explanation"
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
v-if="explanationImageUrl"
|
|
395
|
-
v-dark="isDarkMode"
|
|
396
|
-
v-breakpoint:questionEl="breakpoints"
|
|
397
|
-
class="uikit-question__explanation-image"
|
|
398
|
-
:class="{
|
|
399
|
-
'uikit-question__explanation-image--long-alt': explanationImageLongAlt,
|
|
400
|
-
}"
|
|
401
|
-
:src="explanationImageUrl"
|
|
402
|
-
:alt="`${explanationImageAlt}. Extended image description below.`"
|
|
403
|
-
>
|
|
404
|
-
<PocketButton
|
|
405
|
-
v-if="explanationImageLongAlt"
|
|
406
|
-
v-breakpoint:questionEl="breakpoints"
|
|
407
|
-
type="tertiary-small"
|
|
408
|
-
class="uikit-question__toggle-explanation-img-description"
|
|
409
|
-
:class="{
|
|
410
|
-
'uikit-question__toggle-explanation-img-description--open': showExplanationImageLongAlt,
|
|
411
|
-
}"
|
|
412
|
-
:is-dark-mode="isDarkMode"
|
|
413
|
-
:aria-expanded="showExplanationImageLongAlt ? 'true' : 'false'"
|
|
414
|
-
@click.stop="toggleExplanationImageLongAlt"
|
|
415
|
-
@mousedown.prevent
|
|
416
|
-
>
|
|
417
|
-
<span class="uikit-question__toggle-explanation-img-description-text">Image Description</span>
|
|
418
|
-
<Icon
|
|
419
|
-
class="uikit-question__toggle-explanation-img-description-icon"
|
|
420
|
-
:class="{
|
|
421
|
-
'uikit-question__toggle-explanation-img-description-icon--up': showExplanationImageLongAlt,
|
|
422
|
-
}"
|
|
423
|
-
type="accordionArrow"
|
|
424
|
-
/>
|
|
425
|
-
</PocketButton>
|
|
426
|
-
<div
|
|
427
|
-
v-if="showExplanationImageLongAlt"
|
|
428
|
-
ref="uikit-question__explanation-img-description"
|
|
429
|
-
v-dark="isDarkMode"
|
|
430
|
-
class="uikit-question__explanation-img-description"
|
|
431
|
-
tabindex="-1"
|
|
432
|
-
v-html="explanationImageLongAlt"
|
|
433
|
-
/>
|
|
434
|
-
<div
|
|
435
|
-
v-if="reference && !hideReferences"
|
|
436
|
-
v-dark="isDarkMode"
|
|
437
|
-
class="uikit-question__reference"
|
|
438
|
-
>
|
|
439
|
-
<span class="uikit-question__reference-label">Reference: </span>
|
|
440
|
-
<div v-html="reference" />
|
|
441
|
-
</div>
|
|
442
|
-
<div
|
|
443
|
-
v-if="!reviewMode"
|
|
444
|
-
v-dark="isDarkMode"
|
|
445
|
-
class="uikit-question__explanation-close"
|
|
446
|
-
tabindex="0"
|
|
447
|
-
role="button"
|
|
448
|
-
aria-label="Close explanation"
|
|
449
|
-
@keydown.enter.stop="toggleExplanation"
|
|
450
|
-
@click.stop="toggleExplanation"
|
|
451
|
-
@mousedown.prevent
|
|
452
|
-
>
|
|
453
|
-
<Icon type="close" />
|
|
454
|
-
</div>
|
|
455
|
-
</div>
|
|
334
|
+
:question="question"
|
|
335
|
+
:show-explanation="showExplanation"
|
|
336
|
+
:show-paywall="showPaywall"
|
|
337
|
+
:review-mode="reviewMode"
|
|
338
|
+
:show-explanation-image-long-alt="showExplanationImageLongAlt"
|
|
339
|
+
:explanation-image-url="explanationImageUrl"
|
|
340
|
+
:explanation-image-alt="explanationImageAlt"
|
|
341
|
+
:explanation-image-long-alt="explanationImageLongAlt"
|
|
342
|
+
:reference="reference"
|
|
343
|
+
:hide-references="hideReferences"
|
|
344
|
+
:is-dark-mode="isDarkMode"
|
|
345
|
+
:question-el="questionEl"
|
|
346
|
+
:breakpoints="breakpoints"
|
|
347
|
+
@toggleExplanationImageLongAlt="toggleExplanationImageLongAlt"
|
|
348
|
+
@toggleExplanation="toggleExplanation"
|
|
349
|
+
/>
|
|
456
350
|
</div>
|
|
457
351
|
</div>
|
|
458
352
|
</template>
|
|
@@ -472,6 +366,8 @@ import Paywall from '../Quiz/Question/Paywall.vue'
|
|
|
472
366
|
import Summary from '../Quiz/Question/Summary.vue'
|
|
473
367
|
import ChoicesContainer from '../Quiz/Question/ChoicesContainer.vue'
|
|
474
368
|
import StatsSummary from '../Quiz/Question/StatsSummary.vue'
|
|
369
|
+
import Explanation from '../Quiz/Question/Explanation.vue'
|
|
370
|
+
import PassageAndImage from '../Quiz/Question/PassageAndImage.vue'
|
|
475
371
|
import type { Study } from '@pocketprep/types'
|
|
476
372
|
import { breakpoint, dark } from '../../directives'
|
|
477
373
|
import { studyModes } from '../../utils'
|
|
@@ -490,6 +386,8 @@ import type { Ref, TQuizMode, TChoiceKey, TChoice, TChoiceScores, TNamesRow, TVi
|
|
|
490
386
|
Summary,
|
|
491
387
|
ChoicesContainer,
|
|
492
388
|
StatsSummary,
|
|
389
|
+
Explanation,
|
|
390
|
+
PassageAndImage,
|
|
493
391
|
},
|
|
494
392
|
directives: {
|
|
495
393
|
breakpoint,
|
|
@@ -799,8 +697,14 @@ export default class Question extends Vue {
|
|
|
799
697
|
|
|
800
698
|
moveFocusToPassage () {
|
|
801
699
|
setTimeout(() => {
|
|
802
|
-
const
|
|
803
|
-
|
|
700
|
+
const passageAndImageComp =
|
|
701
|
+
this.$refs['uikit-question__passage-and-image'] as ComponentPublicInstance | undefined
|
|
702
|
+
const passageTitleEl =
|
|
703
|
+
// eslint-disable-next-line max-len
|
|
704
|
+
passageAndImageComp?.$refs['uikit-question-passage-and-image__passage-and-image-title'] as HTMLElement | undefined
|
|
705
|
+
if (passageTitleEl) {
|
|
706
|
+
passageTitleEl?.focus()
|
|
707
|
+
}
|
|
804
708
|
}, 0)
|
|
805
709
|
}
|
|
806
710
|
|
|
@@ -1005,7 +909,11 @@ export default class Question extends Vue {
|
|
|
1005
909
|
const mobileImgDropdownImgDescription =
|
|
1006
910
|
// eslint-disable-next-line max-len
|
|
1007
911
|
mobileLongAltComp?.$refs['uikit-question-passage-and-image-dropdown__img-dropdown-img-description'] as HTMLElement | undefined
|
|
1008
|
-
|
|
912
|
+
|
|
913
|
+
const passageAndImageComp =
|
|
914
|
+
this.$refs['uikit-question__passage-and-image'] as ComponentPublicInstance | undefined
|
|
915
|
+
const longAlt =
|
|
916
|
+
passageAndImageComp?.$refs['uikit-question-passage-and-image__passage-image-description'] as Ref
|
|
1009
917
|
|
|
1010
918
|
// Checking offsetParent tells us which element is visible
|
|
1011
919
|
if (mobileImgDropdownImgDescription?.offsetParent) {
|
|
@@ -1045,7 +953,9 @@ export default class Question extends Vue {
|
|
|
1045
953
|
}
|
|
1046
954
|
}
|
|
1047
955
|
|
|
1048
|
-
const
|
|
956
|
+
const explanationComp =
|
|
957
|
+
this.$refs['uikit-question__explanation'] as ComponentPublicInstance | undefined
|
|
958
|
+
const longAlt = explanationComp?.$refs['uikit-question-explanation__explanation-img-description'] as Ref
|
|
1049
959
|
|
|
1050
960
|
// Checking offsetParent tells us which element is visible
|
|
1051
961
|
if (mcrLongAlt?.offsetParent) {
|
|
@@ -1066,14 +976,17 @@ export default class Question extends Vue {
|
|
|
1066
976
|
const summaryMCRExplanation =
|
|
1067
977
|
// eslint-disable-next-line max-len
|
|
1068
978
|
summaryMCRComp?.$refs['uikit-question-summary__summary-toggle-explanation-text'] as HTMLElement | undefined
|
|
979
|
+
|
|
980
|
+
const choiceContainerComp =
|
|
981
|
+
this.$refs['uikit-question__choices-container'] as ComponentPublicInstance | undefined
|
|
1069
982
|
|
|
1070
983
|
const showExplanationRef = (
|
|
1071
|
-
|
|
984
|
+
choiceContainerComp?.$refs['uikit-question-choices-container__toggle-explanation-text']
|
|
1072
985
|
) as Element[] | Element | undefined
|
|
1073
986
|
|
|
1074
987
|
if (summaryMCRExplanation) {
|
|
1075
988
|
summaryMCRExplanation?.focus()
|
|
1076
|
-
} else {
|
|
989
|
+
} else if (showExplanationRef) {
|
|
1077
990
|
const showExplanationEl = (
|
|
1078
991
|
showExplanationRef instanceof Array
|
|
1079
992
|
? showExplanationRef[0]
|
|
@@ -1084,8 +997,12 @@ export default class Question extends Vue {
|
|
|
1084
997
|
}, 0)
|
|
1085
998
|
} else {
|
|
1086
999
|
setTimeout(() => {
|
|
1087
|
-
const
|
|
1088
|
-
|
|
1000
|
+
const explanationComp =
|
|
1001
|
+
this.$refs['uikit-question__explanation'] as ComponentPublicInstance | undefined
|
|
1002
|
+
const explanationTitle = explanationComp?.$refs['explanation'] as HTMLElement | undefined
|
|
1003
|
+
if (explanationTitle) {
|
|
1004
|
+
explanationTitle?.focus()
|
|
1005
|
+
}
|
|
1089
1006
|
}, 0)
|
|
1090
1007
|
}
|
|
1091
1008
|
}
|
|
@@ -1105,13 +1022,16 @@ export default class Question extends Vue {
|
|
|
1105
1022
|
// eslint-disable-next-line max-len
|
|
1106
1023
|
summaryMCRComp?.$refs['uikit-question-summary__summary-toggle-explanation-text'] as HTMLElement | undefined
|
|
1107
1024
|
|
|
1025
|
+
const choiceContainerComp =
|
|
1026
|
+
this.$refs['uikit-question__choices-container'] as ComponentPublicInstance | undefined
|
|
1027
|
+
|
|
1108
1028
|
const showExplanationRef = (
|
|
1109
|
-
|
|
1029
|
+
choiceContainerComp?.$refs['uikit-question-choices-container__toggle-explanation-text']
|
|
1110
1030
|
) as Element[] | Element | undefined
|
|
1111
1031
|
|
|
1112
1032
|
if (summaryMCRExplanation) {
|
|
1113
1033
|
summaryMCRExplanation?.focus()
|
|
1114
|
-
} else {
|
|
1034
|
+
} else if (showExplanationRef) {
|
|
1115
1035
|
const showExplanationEl = (
|
|
1116
1036
|
showExplanationRef instanceof Array
|
|
1117
1037
|
? showExplanationRef[0]
|
|
@@ -1336,296 +1256,6 @@ export default class Question extends Vue {
|
|
|
1336
1256
|
}
|
|
1337
1257
|
}
|
|
1338
1258
|
|
|
1339
|
-
&__passage-and-image {
|
|
1340
|
-
position: relative;
|
|
1341
|
-
max-width: 566px;
|
|
1342
|
-
padding: 133px 60px 72px 60px;
|
|
1343
|
-
box-sizing: border-box;
|
|
1344
|
-
line-height: 26px;
|
|
1345
|
-
font-size: 16.5px;
|
|
1346
|
-
font-weight: 400;
|
|
1347
|
-
letter-spacing: -0.1px;
|
|
1348
|
-
|
|
1349
|
-
&--tablet-landscape {
|
|
1350
|
-
padding: 115px 41px 42px 30px;
|
|
1351
|
-
font-size: 16.5px;
|
|
1352
|
-
line-height: 26px;
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
&__passage-and-image-title {
|
|
1357
|
-
color: $ash;
|
|
1358
|
-
margin-bottom: 24px;
|
|
1359
|
-
font-weight: 600;
|
|
1360
|
-
font-size: 17.5px;
|
|
1361
|
-
line-height: 25px;
|
|
1362
|
-
letter-spacing: -0.1px;
|
|
1363
|
-
outline: none;
|
|
1364
|
-
|
|
1365
|
-
&--dark {
|
|
1366
|
-
color: rgba($white, 0.86);
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
&__passage {
|
|
1371
|
-
line-height: 26px;
|
|
1372
|
-
font-weight: 400;
|
|
1373
|
-
font-size: 16.5px;
|
|
1374
|
-
letter-spacing: -0.1px;
|
|
1375
|
-
margin-bottom: 24px;
|
|
1376
|
-
|
|
1377
|
-
strong,
|
|
1378
|
-
b {
|
|
1379
|
-
font-weight: 600;
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
&__image {
|
|
1384
|
-
display: block;
|
|
1385
|
-
position: relative;
|
|
1386
|
-
left: 50%;
|
|
1387
|
-
transform: translateX(-50%);
|
|
1388
|
-
width: calc(100% + 24px);
|
|
1389
|
-
border: 1px solid $fog;
|
|
1390
|
-
|
|
1391
|
-
&--dark {
|
|
1392
|
-
border: 1px solid $jet;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
&--tablet-landscape {
|
|
1396
|
-
width: calc(100% + 16px);
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
&__toggle-passage-image-description {
|
|
1401
|
-
margin-top: 16px;
|
|
1402
|
-
margin-bottom: 8px;
|
|
1403
|
-
|
|
1404
|
-
&--tablet-landscape {
|
|
1405
|
-
margin-top: 12px;
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
&__toggle-passage-image-description-text,
|
|
1410
|
-
&__toggle-explanation-img-description-text {
|
|
1411
|
-
outline: none;
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
&__toggle-passage-image-description-icon,
|
|
1415
|
-
&__toggle-explanation-img-description-icon {
|
|
1416
|
-
margin-left: 8px;
|
|
1417
|
-
|
|
1418
|
-
&--up {
|
|
1419
|
-
transform: rotate(180deg);
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
&__passage-image-description {
|
|
1424
|
-
outline: none;
|
|
1425
|
-
color: $ash;
|
|
1426
|
-
font-size: 15px;
|
|
1427
|
-
line-height: 22px;
|
|
1428
|
-
font-weight: 500;
|
|
1429
|
-
letter-spacing: -0.2px;
|
|
1430
|
-
|
|
1431
|
-
&--dark {
|
|
1432
|
-
color: $fog;
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
p {
|
|
1436
|
-
margin: 0;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
&__return-to-prompt {
|
|
1441
|
-
position: absolute;
|
|
1442
|
-
left: -10000px;
|
|
1443
|
-
|
|
1444
|
-
&:focus {
|
|
1445
|
-
left: auto;
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
&__explanation {
|
|
1450
|
-
position: relative;
|
|
1451
|
-
background-color: $white;
|
|
1452
|
-
border: 1px solid rgba($pewter, 0.85);
|
|
1453
|
-
border-bottom: 0;
|
|
1454
|
-
border-radius: 6px 6px 0 0;
|
|
1455
|
-
padding: 42px 60px 72px;
|
|
1456
|
-
box-sizing: border-box;
|
|
1457
|
-
max-width: 565px;
|
|
1458
|
-
min-height: 100%;
|
|
1459
|
-
|
|
1460
|
-
&--tablet-landscape {
|
|
1461
|
-
max-width: 460px;
|
|
1462
|
-
padding: 42px 36px 72px;
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
&--dark {
|
|
1466
|
-
border-color: $slate;
|
|
1467
|
-
background-color: $mariner;
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
&__explanation-close {
|
|
1472
|
-
position: absolute;
|
|
1473
|
-
width: 30px;
|
|
1474
|
-
height: 30px;
|
|
1475
|
-
top: 12px;
|
|
1476
|
-
right: 12px;
|
|
1477
|
-
color: $brand-blue;
|
|
1478
|
-
cursor: pointer;
|
|
1479
|
-
outline: none;
|
|
1480
|
-
|
|
1481
|
-
&:hover {
|
|
1482
|
-
color: $brand-black;
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
&:focus::before {
|
|
1486
|
-
content: '';
|
|
1487
|
-
left: -1px;
|
|
1488
|
-
top: -1px;
|
|
1489
|
-
width: 100%;
|
|
1490
|
-
height: 100%;
|
|
1491
|
-
position: absolute;
|
|
1492
|
-
border: 1px solid $brand-blue;
|
|
1493
|
-
border-radius: 5px;
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
&--dark {
|
|
1497
|
-
color: $banana-bread;
|
|
1498
|
-
|
|
1499
|
-
&:hover {
|
|
1500
|
-
color: $butterscotch;
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
&:focus::before {
|
|
1504
|
-
border-color: $banana-bread;
|
|
1505
|
-
}
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
svg {
|
|
1509
|
-
width: 100%;
|
|
1510
|
-
height: 100%;
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
&__explanation-title {
|
|
1515
|
-
font-weight: 600;
|
|
1516
|
-
font-size: 17.5px;
|
|
1517
|
-
letter-spacing: -0.1px;
|
|
1518
|
-
line-height: 25px;
|
|
1519
|
-
outline: none;
|
|
1520
|
-
|
|
1521
|
-
&--dark {
|
|
1522
|
-
color: $fog;
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
&__explanation-text {
|
|
1527
|
-
font-weight: 400;
|
|
1528
|
-
font-size: 16.5px;
|
|
1529
|
-
letter-spacing: -0.1px;
|
|
1530
|
-
line-height: 26px;
|
|
1531
|
-
margin-bottom: 24px;
|
|
1532
|
-
word-break: break-word;
|
|
1533
|
-
|
|
1534
|
-
&--dark {
|
|
1535
|
-
color: $white;
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
&--tablet-landscape {
|
|
1539
|
-
margin-bottom: 24px;
|
|
1540
|
-
font-size: 16px;
|
|
1541
|
-
line-height: 24px;
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
strong,
|
|
1545
|
-
b {
|
|
1546
|
-
font-weight: 600;
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
&__explanation-image {
|
|
1551
|
-
display: block;
|
|
1552
|
-
position: relative;
|
|
1553
|
-
left: 50%;
|
|
1554
|
-
transform: translateX(-50%);
|
|
1555
|
-
width: calc(100% + 24px);
|
|
1556
|
-
margin-bottom: 24px;
|
|
1557
|
-
border: 1px solid $fog;
|
|
1558
|
-
|
|
1559
|
-
&--long-alt {
|
|
1560
|
-
margin-bottom: 0;
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
&--dark {
|
|
1564
|
-
border: 1px solid $jet;
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
&--tablet-landscape {
|
|
1568
|
-
width: calc(100% + 16px);
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
&__toggle-explanation-img-description {
|
|
1573
|
-
margin-top: 24px;
|
|
1574
|
-
|
|
1575
|
-
&--open {
|
|
1576
|
-
margin-bottom: 6px;
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
&--tablet-landscape {
|
|
1580
|
-
margin-top: 12px;
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
|
-
&__explanation-img-description {
|
|
1585
|
-
outline: none;
|
|
1586
|
-
color: $ash;
|
|
1587
|
-
font-size: 15px;
|
|
1588
|
-
font-weight: 500;
|
|
1589
|
-
letter-spacing: -0.2px;
|
|
1590
|
-
line-height: 22px;
|
|
1591
|
-
margin-bottom: 24px;
|
|
1592
|
-
|
|
1593
|
-
&--dark {
|
|
1594
|
-
color: $fog;
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
p {
|
|
1598
|
-
margin: 0;
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
&__reference {
|
|
1603
|
-
padding-top: 24px;
|
|
1604
|
-
border-top: 1px solid $fog;
|
|
1605
|
-
font-size: 15px;
|
|
1606
|
-
letter-spacing: -0.1px;
|
|
1607
|
-
line-height: 22px;
|
|
1608
|
-
font-weight: 600;
|
|
1609
|
-
word-break: break-word;
|
|
1610
|
-
|
|
1611
|
-
&--dark {
|
|
1612
|
-
color: $white;
|
|
1613
|
-
border-top-color: rgba($fog, 0.28);
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
p {
|
|
1617
|
-
margin: 6px 0 8pt 0;
|
|
1618
|
-
font-size: 15px;
|
|
1619
|
-
letter-spacing: -0.1px;
|
|
1620
|
-
font-weight: 400;
|
|
1621
|
-
font-style: italic;
|
|
1622
|
-
}
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
&__reference-label {
|
|
1626
|
-
font-weight: 600;
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
1259
|
&__tag-mobile {
|
|
1630
1260
|
display: none;
|
|
1631
1261
|
position: absolute;
|
|
@@ -1827,143 +1457,6 @@ export default class Question extends Vue {
|
|
|
1827
1457
|
}
|
|
1828
1458
|
}
|
|
1829
1459
|
|
|
1830
|
-
&__toggle-explanation {
|
|
1831
|
-
margin-top: 8px;
|
|
1832
|
-
margin-bottom: 8px;
|
|
1833
|
-
padding: 0;
|
|
1834
|
-
z-index: 2;
|
|
1835
|
-
|
|
1836
|
-
&--review-mode {
|
|
1837
|
-
display: none;
|
|
1838
|
-
|
|
1839
|
-
&.uikit-question__toggle-explanation--tablet-portrait,
|
|
1840
|
-
&.uikit-question__toggle-explanation--mobile {
|
|
1841
|
-
display: block;
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
&__toggle-explanation-text {
|
|
1847
|
-
outline: none;
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
&__toggle-explanation-icon {
|
|
1851
|
-
margin-left: 5px;
|
|
1852
|
-
display: none;
|
|
1853
|
-
|
|
1854
|
-
&--tablet-portrait {
|
|
1855
|
-
display: initial;
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
&--up {
|
|
1859
|
-
transform: rotate(180deg);
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
&__strikethrough {
|
|
1864
|
-
display: flex;
|
|
1865
|
-
align-items: center;
|
|
1866
|
-
justify-content: center;
|
|
1867
|
-
position: absolute;
|
|
1868
|
-
width: 20px;
|
|
1869
|
-
height: 22px;
|
|
1870
|
-
right: 12px;
|
|
1871
|
-
background-color: $gray-background;
|
|
1872
|
-
border-radius: 2px;
|
|
1873
|
-
z-index: 2;
|
|
1874
|
-
outline: none;
|
|
1875
|
-
opacity: 0;
|
|
1876
|
-
|
|
1877
|
-
&--visible {
|
|
1878
|
-
opacity: 1;
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
&:hover:not(&--active) {
|
|
1882
|
-
background-color: rgba($sky-blue, 0.674);
|
|
1883
|
-
color: $brand-blue;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
&:focus:not(&--active) {
|
|
1887
|
-
background-color: $gray-background;
|
|
1888
|
-
color: $brand-blue;
|
|
1889
|
-
|
|
1890
|
-
&::after {
|
|
1891
|
-
content: '';
|
|
1892
|
-
position: absolute;
|
|
1893
|
-
top: 0;
|
|
1894
|
-
bottom: 0;
|
|
1895
|
-
left: 0;
|
|
1896
|
-
right: 0;
|
|
1897
|
-
border: 1px solid $brand-blue;
|
|
1898
|
-
border-radius: 2px;
|
|
1899
|
-
}
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
&--dark {
|
|
1903
|
-
background-color: $ash;
|
|
1904
|
-
color: $white;
|
|
1905
|
-
|
|
1906
|
-
&:hover:not(&--active) {
|
|
1907
|
-
background-color: rgba($banana-bread, 0.15);
|
|
1908
|
-
color: $banana-bread;
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
&:focus:not(&--active) {
|
|
1912
|
-
background-color: rgba($white, 0.15);
|
|
1913
|
-
color: $banana-bread;
|
|
1914
|
-
|
|
1915
|
-
&::after {
|
|
1916
|
-
border-color: $banana-bread;
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
|
-
&--active {
|
|
1922
|
-
background-color: $brand-blue;
|
|
1923
|
-
color: $white;
|
|
1924
|
-
|
|
1925
|
-
&:hover {
|
|
1926
|
-
background-color: mix($brand-blue, black, 90%);
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
&:focus {
|
|
1930
|
-
&::before {
|
|
1931
|
-
content: '';
|
|
1932
|
-
position: absolute;
|
|
1933
|
-
top: -2px;
|
|
1934
|
-
bottom: -2px;
|
|
1935
|
-
left: -2px;
|
|
1936
|
-
right: -2px;
|
|
1937
|
-
border: 1px solid $brand-blue;
|
|
1938
|
-
border-radius: 2px;
|
|
1939
|
-
}
|
|
1940
|
-
}
|
|
1941
|
-
|
|
1942
|
-
&--dark {
|
|
1943
|
-
background-color: $banana-bread;
|
|
1944
|
-
color: $brand-black;
|
|
1945
|
-
|
|
1946
|
-
&:hover {
|
|
1947
|
-
background-color: $banana-bread;
|
|
1948
|
-
color: $brand-black;
|
|
1949
|
-
}
|
|
1950
|
-
|
|
1951
|
-
&:focus {
|
|
1952
|
-
background-color: $banana-bread !important;
|
|
1953
|
-
color: $brand-black !important;
|
|
1954
|
-
|
|
1955
|
-
&::before {
|
|
1956
|
-
border-color: $banana-bread;
|
|
1957
|
-
}
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
&--tablet-landscape {
|
|
1963
|
-
display: none;
|
|
1964
|
-
}
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
1460
|
&__correct-icon {
|
|
1968
1461
|
position: absolute;
|
|
1969
1462
|
top: 12px;
|