@pocketprep/ui-kit 3.4.4 → 3.4.6
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 +8187 -7921
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +9 -9
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/Quiz/Question/DropdownExplanation.vue +250 -0
- package/lib/components/Quiz/Question/PassageAndImageDropdown.vue +6 -7
- package/lib/components/Quiz/Question/Summary.vue +375 -0
- package/lib/components/Quiz/Question.vue +103 -391
- package/package.json +1 -1
|
@@ -84,11 +84,12 @@
|
|
|
84
84
|
:is-dark-mode="isDarkMode"
|
|
85
85
|
:review-mode="reviewMode"
|
|
86
86
|
:image-url-prefix="imageUrlPrefix"
|
|
87
|
+
:show-passage-image-long-alt="showPassageImageLongAlt"
|
|
87
88
|
:passage-image-url="passageImageUrl"
|
|
88
89
|
:passage-image-long-alt="passageImageLongAlt"
|
|
89
90
|
:passage-image-alt="passageImageAlt"
|
|
90
91
|
:passage-and-image-title="passageAndImageTitle"
|
|
91
|
-
@
|
|
92
|
+
@togglePassageImageLongAltDropdown="togglePassageImageLongAlt"
|
|
92
93
|
/>
|
|
93
94
|
<Paywall
|
|
94
95
|
v-if="showPaywall"
|
|
@@ -290,72 +291,27 @@
|
|
|
290
291
|
type="accordionArrow"
|
|
291
292
|
/>
|
|
292
293
|
</PocketButton>
|
|
293
|
-
<
|
|
294
|
+
<DropdownExplanation
|
|
294
295
|
v-if="!isMCR && showAnswers && answerKeys.includes(choice.key) && showExplanation"
|
|
295
|
-
|
|
296
|
+
ref="uikit-question__dropdown-explanation"
|
|
296
297
|
class="uikit-question__dropdown-explanation"
|
|
297
|
-
:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
v-if="explanationImageLongAlt"
|
|
315
|
-
v-breakpoint:questionEl="breakpoints"
|
|
316
|
-
type="tertiary-small"
|
|
317
|
-
class="uikit-question__toggle-dropdown-explanation-img-description"
|
|
318
|
-
:class="{
|
|
319
|
-
'uikit-question__toggle-dropdown-explanation-img-description--open':
|
|
320
|
-
showExplanationImageLongAlt,
|
|
321
|
-
'uikit-question__toggle-dropdown-explanation-img-description--no-reference':
|
|
322
|
-
!reference || hideReferences,
|
|
323
|
-
}"
|
|
324
|
-
:is-dark-mode="isDarkMode"
|
|
325
|
-
:aria-expanded="showExplanationImageLongAlt ? 'true' : 'false'"
|
|
326
|
-
@click.stop="toggleExplanationImageLongAlt"
|
|
327
|
-
@mousedown.prevent
|
|
328
|
-
>
|
|
329
|
-
<span class="uikit-question__toggle-dropdown-explanation-img-description-text">
|
|
330
|
-
Image Description
|
|
331
|
-
</span>
|
|
332
|
-
<Icon
|
|
333
|
-
class="uikit-question__toggle-dropdown-explanation-img-description-icon"
|
|
334
|
-
:class="{
|
|
335
|
-
'uikit-question__toggle-dropdown-explanation-img-description-icon--up':
|
|
336
|
-
showExplanationImageLongAlt,
|
|
337
|
-
}"
|
|
338
|
-
type="accordionArrow"
|
|
339
|
-
/>
|
|
340
|
-
</PocketButton>
|
|
341
|
-
<div
|
|
342
|
-
v-if="showExplanationImageLongAlt"
|
|
343
|
-
ref="uikit-question__dropdown-explanation-img-description"
|
|
344
|
-
v-dark="isDarkMode"
|
|
345
|
-
v-breakpoint:questionEl="breakpoints"
|
|
346
|
-
class="uikit-question__dropdown-explanation-img-description"
|
|
347
|
-
tabindex="-1"
|
|
348
|
-
v-html="explanationImageLongAlt"
|
|
349
|
-
/>
|
|
350
|
-
<div
|
|
351
|
-
v-if="reference && !hideReferences"
|
|
352
|
-
v-dark="isDarkMode"
|
|
353
|
-
class="uikit-question__dropdown-reference"
|
|
354
|
-
>
|
|
355
|
-
<span class="uikit-question__dropdown-reference-label">Reference: </span>
|
|
356
|
-
<div v-html="reference" />
|
|
357
|
-
</div>
|
|
358
|
-
</div>
|
|
298
|
+
:question="question"
|
|
299
|
+
:answer-keys="answerKeys"
|
|
300
|
+
:choice="choice"
|
|
301
|
+
:global-metrics="globalMetrics"
|
|
302
|
+
:show-answers="showAnswers"
|
|
303
|
+
:is-MCR="isMCR"
|
|
304
|
+
:show-explanation-image-long-alt="showExplanationImageLongAlt"
|
|
305
|
+
:explanation-image-url="explanationImageUrl"
|
|
306
|
+
:explanation-image-alt="explanationImageAlt"
|
|
307
|
+
:explanation-image-long-alt="explanationImageLongAlt"
|
|
308
|
+
:reference="reference"
|
|
309
|
+
:hide-references="hideReferences"
|
|
310
|
+
:is-dark-mode="isDarkMode"
|
|
311
|
+
:question-el="questionEl"
|
|
312
|
+
:breakpoints="breakpoints"
|
|
313
|
+
@toggleDropdownExplanationImageLongAlt="toggleExplanationImageLongAlt"
|
|
314
|
+
/>
|
|
359
315
|
</div>
|
|
360
316
|
<template v-if="!globalMetrics">
|
|
361
317
|
<div
|
|
@@ -460,115 +416,27 @@
|
|
|
460
416
|
</div>
|
|
461
417
|
<slot name="unansweredFlaggedNamesTable" />
|
|
462
418
|
</div>
|
|
463
|
-
<
|
|
419
|
+
<Summary
|
|
464
420
|
v-if="isMCR && showAnswers && !showPaywall"
|
|
465
|
-
|
|
466
|
-
v-breakpoint:questionEl="breakpoints"
|
|
421
|
+
ref="uikit-question__summary"
|
|
467
422
|
class="uikit-question__summary"
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
tabindex="-1"
|
|
486
|
-
>{{ showExplanation ? 'Hide' : 'Show' }} Explanation</span>
|
|
487
|
-
<Icon
|
|
488
|
-
v-breakpoint:questionEl="breakpoints"
|
|
489
|
-
type="accordionArrow"
|
|
490
|
-
class="uikit-question__summary-toggle-explanation-icon"
|
|
491
|
-
:class="{
|
|
492
|
-
'uikit-question__summary-toggle-explanation-icon--up': showExplanation,
|
|
493
|
-
}"
|
|
494
|
-
/>
|
|
495
|
-
</PocketButton>
|
|
496
|
-
<div
|
|
497
|
-
v-if="showExplanation"
|
|
498
|
-
v-breakpoint:questionEl="breakpoints"
|
|
499
|
-
class="uikit-question__summary-dropdown-explanation"
|
|
500
|
-
>
|
|
501
|
-
<div
|
|
502
|
-
v-dark="isDarkMode"
|
|
503
|
-
class="uikit-question__summary-dropdown-explanation-text"
|
|
504
|
-
v-html="question.explanation"
|
|
505
|
-
/>
|
|
506
|
-
<img
|
|
507
|
-
v-if="explanationImageUrl"
|
|
508
|
-
v-dark="isDarkMode"
|
|
509
|
-
class="uikit-question__summary-dropdown-explanation-image"
|
|
510
|
-
:src="explanationImageUrl"
|
|
511
|
-
:alt="`${explanationImageAlt}. Extended image description below.`"
|
|
512
|
-
>
|
|
513
|
-
<PocketButton
|
|
514
|
-
v-if="explanationImageLongAlt"
|
|
515
|
-
v-breakpoint:questionEl="breakpoints"
|
|
516
|
-
type="tertiary-small"
|
|
517
|
-
class="uikit-question__toggle-summary-dropdown-explanation-img-description"
|
|
518
|
-
:class="{
|
|
519
|
-
'uikit-question__toggle-summary-dropdown-explanation-img-description--open':
|
|
520
|
-
showExplanationImageLongAlt,
|
|
521
|
-
'uikit-question__toggle-summary-dropdown-explanation-img-description--no-reference':
|
|
522
|
-
!reference || hideReferences,
|
|
523
|
-
}"
|
|
524
|
-
:is-dark-mode="isDarkMode"
|
|
525
|
-
:aria-expanded="showExplanationImageLongAlt ? 'true' : 'false'"
|
|
526
|
-
@click.stop="toggleExplanationImageLongAlt"
|
|
527
|
-
@mousedown.prevent
|
|
528
|
-
>
|
|
529
|
-
<span class="uikit-question__toggle-summary-dropdown-explanation-img-description-text">
|
|
530
|
-
Image Description
|
|
531
|
-
</span>
|
|
532
|
-
<Icon
|
|
533
|
-
class="uikit-question__toggle-summary-dropdown-explanation-img-description-icon"
|
|
534
|
-
:class="{
|
|
535
|
-
'uikit-question__toggle-summary-dropdown-explanation-img-description-icon--up':
|
|
536
|
-
showExplanationImageLongAlt,
|
|
537
|
-
}"
|
|
538
|
-
type="accordionArrow"
|
|
539
|
-
/>
|
|
540
|
-
</PocketButton>
|
|
541
|
-
<div
|
|
542
|
-
v-if="showExplanationImageLongAlt"
|
|
543
|
-
ref="uikit-question__summary-dropdown-explanation-img-description"
|
|
544
|
-
v-dark="isDarkMode"
|
|
545
|
-
v-breakpoint:questionEl="breakpoints"
|
|
546
|
-
class="uikit-question__summary-dropdown-explanation-img-description"
|
|
547
|
-
tabindex="-1"
|
|
548
|
-
v-html="explanationImageLongAlt"
|
|
549
|
-
/>
|
|
550
|
-
<div
|
|
551
|
-
v-if="reference && !hideReferences"
|
|
552
|
-
v-dark="isDarkMode"
|
|
553
|
-
class="uikit-question__summary-dropdown-reference"
|
|
554
|
-
>
|
|
555
|
-
<span class="uikit-question__summary-dropdown-reference-label">Reference: </span>
|
|
556
|
-
<div v-html="reference" />
|
|
557
|
-
</div>
|
|
558
|
-
</div>
|
|
559
|
-
<Icon
|
|
560
|
-
v-if="isCorrect"
|
|
561
|
-
v-dark="isDarkMode"
|
|
562
|
-
type="correct"
|
|
563
|
-
class="uikit-question__summary-correct-icon"
|
|
564
|
-
/>
|
|
565
|
-
<Icon
|
|
566
|
-
v-else
|
|
567
|
-
v-dark="isDarkMode"
|
|
568
|
-
type="incorrect"
|
|
569
|
-
class="uikit-question__summary-incorrect-icon"
|
|
570
|
-
/>
|
|
571
|
-
</div>
|
|
423
|
+
:question="question"
|
|
424
|
+
:show-explanation="showExplanation"
|
|
425
|
+
:show-explanation-image-long-alt="showExplanationImageLongAlt"
|
|
426
|
+
:explanation-image-url="explanationImageUrl"
|
|
427
|
+
:explanation-image-alt="explanationImageAlt"
|
|
428
|
+
:explanation-image-long-alt="explanationImageLongAlt"
|
|
429
|
+
:reference="reference"
|
|
430
|
+
:hide-references="hideReferences"
|
|
431
|
+
:is-correct="isCorrect"
|
|
432
|
+
:is-unanswered="isUnanswered"
|
|
433
|
+
:review-mode="reviewMode"
|
|
434
|
+
:is-dark-mode="isDarkMode"
|
|
435
|
+
:question-el="questionEl"
|
|
436
|
+
:breakpoints="breakpoints"
|
|
437
|
+
@toggleSummaryExplanation="toggleExplanation"
|
|
438
|
+
@toggleSummaryExplanationImageLongAlt="toggleExplanationImageLongAlt"
|
|
439
|
+
/>
|
|
572
440
|
<slot name="metricsTiles">
|
|
573
441
|
<div
|
|
574
442
|
v-if="globalMetrics"
|
|
@@ -817,7 +685,9 @@ import Table from '../Tables/Table.vue'
|
|
|
817
685
|
import OverflowTooltip from '../Tooltips/OverflowTooltip.vue'
|
|
818
686
|
import QuestionContext from '../Quiz/Question/QuestionContext.vue'
|
|
819
687
|
import PassageAndImageDropdown from '../Quiz/Question/PassageAndImageDropdown.vue'
|
|
688
|
+
import DropdownExplanation from '../Quiz/Question/DropdownExplanation.vue'
|
|
820
689
|
import Paywall from '../Quiz/Question/Paywall.vue'
|
|
690
|
+
import Summary from '../Quiz/Question/Summary.vue'
|
|
821
691
|
import type { Study } from '@pocketprep/types'
|
|
822
692
|
import { breakpoint, dark } from '../../directives'
|
|
823
693
|
import { studyModes } from '../../utils'
|
|
@@ -832,6 +702,8 @@ import type { Ref, TQuizMode, TChoiceKey, TChoice, TChoiceScores, TNamesRow, TVi
|
|
|
832
702
|
QuestionContext,
|
|
833
703
|
PassageAndImageDropdown,
|
|
834
704
|
Paywall,
|
|
705
|
+
DropdownExplanation,
|
|
706
|
+
Summary,
|
|
835
707
|
},
|
|
836
708
|
directives: {
|
|
837
709
|
breakpoint,
|
|
@@ -869,7 +741,6 @@ export default class Question extends Vue {
|
|
|
869
741
|
selectedChoices: TChoiceKey[] = []
|
|
870
742
|
showAnswers = false
|
|
871
743
|
showExplanation = false
|
|
872
|
-
showPassageImageDropdown = false
|
|
873
744
|
showPassageImageLongAlt = false
|
|
874
745
|
showExplanationImageDropdown = false
|
|
875
746
|
showExplanationImageLongAlt = false
|
|
@@ -1337,7 +1208,6 @@ export default class Question extends Vue {
|
|
|
1337
1208
|
const mobileImgDropdownImgDescription =
|
|
1338
1209
|
// eslint-disable-next-line max-len
|
|
1339
1210
|
mobileLongAltComp?.$refs['uikit-question-passage-and-image-dropdown__img-dropdown-img-description'] as HTMLElement | undefined
|
|
1340
|
-
|
|
1341
1211
|
const longAlt = this.$refs['uikit-question__passage-image-description'] as Ref
|
|
1342
1212
|
|
|
1343
1213
|
// Checking offsetParent tells us which element is visible
|
|
@@ -1352,18 +1222,33 @@ export default class Question extends Vue {
|
|
|
1352
1222
|
|
|
1353
1223
|
toggleExplanationImageLongAlt () {
|
|
1354
1224
|
this.showExplanationImageLongAlt = !this.showExplanationImageLongAlt
|
|
1355
|
-
|
|
1356
1225
|
if (this.showExplanationImageLongAlt) {
|
|
1357
1226
|
setTimeout(() => {
|
|
1358
|
-
|
|
1359
|
-
const
|
|
1227
|
+
// checks for mobile / tablet portrait uikit-question-summary
|
|
1228
|
+
const mcrLongAltComp = this.$refs['uikit-question__summary'] as ComponentPublicInstance | undefined
|
|
1229
|
+
const mcrLongAlt =
|
|
1230
|
+
// eslint-disable-next-line max-len
|
|
1231
|
+
mcrLongAltComp?.$refs['uikit-question-summary__summary-dropdown-explanation-img-description'] as HTMLElement | undefined
|
|
1232
|
+
|
|
1233
|
+
const mobileDropdownExplanation =
|
|
1234
|
+
this.$refs['uikit-question__dropdown-explanation'] as Ref[]
|
|
1235
|
+
if (mobileDropdownExplanation) {
|
|
1236
|
+
const mobileDropdownExplanationComp =
|
|
1237
|
+
mobileDropdownExplanation[0] as ComponentPublicInstance | undefined
|
|
1238
|
+
const mobileImgDropdownImgDescription =
|
|
1239
|
+
// eslint-disable-next-line max-len
|
|
1240
|
+
mobileDropdownExplanationComp?.$refs['uikit-question-dropdown-explanation__dropdown-explanation-img-description'] as HTMLElement | undefined
|
|
1241
|
+
|
|
1242
|
+
if (mobileImgDropdownImgDescription?.offsetParent) {
|
|
1243
|
+
mobileImgDropdownImgDescription.focus()
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1360
1247
|
const longAlt = this.$refs['uikit-question__explanation-img-description'] as Ref
|
|
1361
1248
|
|
|
1362
1249
|
// Checking offsetParent tells us which element is visible
|
|
1363
1250
|
if (mcrLongAlt?.offsetParent) {
|
|
1364
1251
|
mcrLongAlt.focus()
|
|
1365
|
-
} else if (mobileLongAlt?.[0]?.offsetParent) {
|
|
1366
|
-
mobileLongAlt[0].focus()
|
|
1367
1252
|
} else if (longAlt?.offsetParent) {
|
|
1368
1253
|
longAlt.focus()
|
|
1369
1254
|
}
|
|
@@ -1375,16 +1260,26 @@ export default class Question extends Vue {
|
|
|
1375
1260
|
this.showExplanation = !this.showExplanation
|
|
1376
1261
|
if (!this.showExplanation) {
|
|
1377
1262
|
setTimeout(() => {
|
|
1263
|
+
const summaryMCRComp =
|
|
1264
|
+
this.$refs['uikit-question__summary'] as ComponentPublicInstance | undefined
|
|
1265
|
+
const summaryMCRExplanation =
|
|
1266
|
+
// eslint-disable-next-line max-len
|
|
1267
|
+
summaryMCRComp?.$refs['uikit-question-summary__summary-toggle-explanation-text'] as HTMLElement | undefined
|
|
1268
|
+
|
|
1378
1269
|
const showExplanationRef = (
|
|
1379
1270
|
this.$refs['uikit-question__toggle-explanation-text']
|
|
1380
|
-
|| this.$refs['uikit-question__summary-toggle-explanation-text']
|
|
1381
1271
|
) as Element[] | Element | undefined
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1272
|
+
|
|
1273
|
+
if (summaryMCRExplanation) {
|
|
1274
|
+
summaryMCRExplanation?.focus()
|
|
1275
|
+
} else {
|
|
1276
|
+
const showExplanationEl = (
|
|
1277
|
+
showExplanationRef instanceof Array
|
|
1278
|
+
? showExplanationRef[0]
|
|
1279
|
+
: showExplanationRef
|
|
1280
|
+
) as HTMLElement | undefined
|
|
1281
|
+
showExplanationEl?.focus()
|
|
1282
|
+
}
|
|
1388
1283
|
}, 0)
|
|
1389
1284
|
} else {
|
|
1390
1285
|
setTimeout(() => {
|
|
@@ -1403,16 +1298,26 @@ export default class Question extends Vue {
|
|
|
1403
1298
|
questionSerial: this.question.serial,
|
|
1404
1299
|
})
|
|
1405
1300
|
setTimeout(() => {
|
|
1301
|
+
const summaryMCRComp =
|
|
1302
|
+
this.$refs['uikit-question__summary'] as ComponentPublicInstance | undefined
|
|
1303
|
+
const summaryMCRExplanation =
|
|
1304
|
+
// eslint-disable-next-line max-len
|
|
1305
|
+
summaryMCRComp?.$refs['uikit-question-summary__summary-toggle-explanation-text'] as HTMLElement | undefined
|
|
1306
|
+
|
|
1406
1307
|
const showExplanationRef = (
|
|
1407
1308
|
this.$refs['uikit-question__toggle-explanation-text']
|
|
1408
|
-
|| this.$refs['uikit-question__summary-toggle-explanation-text']
|
|
1409
1309
|
) as Element[] | Element | undefined
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1310
|
+
|
|
1311
|
+
if (summaryMCRExplanation) {
|
|
1312
|
+
summaryMCRExplanation?.focus()
|
|
1313
|
+
} else {
|
|
1314
|
+
const showExplanationEl = (
|
|
1315
|
+
showExplanationRef instanceof Array
|
|
1316
|
+
? showExplanationRef[0]
|
|
1317
|
+
: showExplanationRef
|
|
1318
|
+
) as HTMLElement | undefined
|
|
1319
|
+
showExplanationEl?.focus()
|
|
1320
|
+
}
|
|
1416
1321
|
}, 500)
|
|
1417
1322
|
}
|
|
1418
1323
|
}
|
|
@@ -1701,16 +1606,12 @@ export default class Question extends Vue {
|
|
|
1701
1606
|
}
|
|
1702
1607
|
|
|
1703
1608
|
&__toggle-passage-image-description-text,
|
|
1704
|
-
&__toggle-explanation-img-description-text
|
|
1705
|
-
&__toggle-dropdown-explanation-img-description-text,
|
|
1706
|
-
&__toggle-summary-dropdown-explanation-img-description-text {
|
|
1609
|
+
&__toggle-explanation-img-description-text {
|
|
1707
1610
|
outline: none;
|
|
1708
1611
|
}
|
|
1709
1612
|
|
|
1710
1613
|
&__toggle-passage-image-description-icon,
|
|
1711
|
-
&__toggle-explanation-img-description-icon
|
|
1712
|
-
&__toggle-dropdown-explanation-img-description-icon,
|
|
1713
|
-
&__toggle-summary-dropdown-explanation-img-description-icon {
|
|
1614
|
+
&__toggle-explanation-img-description-icon {
|
|
1714
1615
|
margin-left: 8px;
|
|
1715
1616
|
|
|
1716
1617
|
&--up {
|
|
@@ -1920,9 +1821,7 @@ export default class Question extends Vue {
|
|
|
1920
1821
|
}
|
|
1921
1822
|
}
|
|
1922
1823
|
|
|
1923
|
-
&__reference-label
|
|
1924
|
-
&__dropdown-reference-label,
|
|
1925
|
-
&__summary-dropdown-reference-label {
|
|
1824
|
+
&__reference-label {
|
|
1926
1825
|
font-weight: 600;
|
|
1927
1826
|
}
|
|
1928
1827
|
|
|
@@ -2478,13 +2377,11 @@ export default class Question extends Vue {
|
|
|
2478
2377
|
}
|
|
2479
2378
|
}
|
|
2480
2379
|
|
|
2481
|
-
&__toggle-explanation-text
|
|
2482
|
-
&__summary-toggle-explanation-text {
|
|
2380
|
+
&__toggle-explanation-text {
|
|
2483
2381
|
outline: none;
|
|
2484
2382
|
}
|
|
2485
2383
|
|
|
2486
|
-
&__toggle-explanation-icon
|
|
2487
|
-
&__summary-toggle-explanation-icon {
|
|
2384
|
+
&__toggle-explanation-icon {
|
|
2488
2385
|
margin-left: 5px;
|
|
2489
2386
|
display: none;
|
|
2490
2387
|
|
|
@@ -2497,123 +2394,6 @@ export default class Question extends Vue {
|
|
|
2497
2394
|
}
|
|
2498
2395
|
}
|
|
2499
2396
|
|
|
2500
|
-
&__dropdown-explanation,
|
|
2501
|
-
&__summary-dropdown-explanation {
|
|
2502
|
-
display: none;
|
|
2503
|
-
|
|
2504
|
-
&--tablet-portrait {
|
|
2505
|
-
display: block;
|
|
2506
|
-
}
|
|
2507
|
-
}
|
|
2508
|
-
|
|
2509
|
-
&__dropdown-explanation-text,
|
|
2510
|
-
&__summary-dropdown-explanation-text {
|
|
2511
|
-
font-size: 16px;
|
|
2512
|
-
letter-spacing: -0.1px;
|
|
2513
|
-
line-height: 24px;
|
|
2514
|
-
font-weight: 400;
|
|
2515
|
-
padding-bottom: 6px;
|
|
2516
|
-
|
|
2517
|
-
p {
|
|
2518
|
-
margin: 10px 0;
|
|
2519
|
-
|
|
2520
|
-
&:first-child {
|
|
2521
|
-
margin: 0;
|
|
2522
|
-
}
|
|
2523
|
-
}
|
|
2524
|
-
}
|
|
2525
|
-
|
|
2526
|
-
&__dropdown-explanation-image,
|
|
2527
|
-
&__summary-dropdown-explanation-image {
|
|
2528
|
-
display: block;
|
|
2529
|
-
box-sizing: border-box;
|
|
2530
|
-
width: 100%;
|
|
2531
|
-
border: 1px solid $fog;
|
|
2532
|
-
|
|
2533
|
-
&--dark {
|
|
2534
|
-
border: 1px solid $jet;
|
|
2535
|
-
}
|
|
2536
|
-
}
|
|
2537
|
-
|
|
2538
|
-
&__toggle-dropdown-explanation-img-description,
|
|
2539
|
-
&__toggle-summary-dropdown-explanation-img-description {
|
|
2540
|
-
margin-top: 12px;
|
|
2541
|
-
margin-bottom: 20px;
|
|
2542
|
-
|
|
2543
|
-
&--open {
|
|
2544
|
-
margin-bottom: 6px;
|
|
2545
|
-
}
|
|
2546
|
-
|
|
2547
|
-
&--tablet-portrait {
|
|
2548
|
-
&.uikit-question__toggle-dropdown-explanation-img-description--no-reference,
|
|
2549
|
-
&.uikit-question__toggle-summary-dropdown-explanation-img-description--no-reference {
|
|
2550
|
-
margin-bottom: 4px;
|
|
2551
|
-
}
|
|
2552
|
-
|
|
2553
|
-
&.uikit-question__toggle-dropdown-explanation-img-description--open,
|
|
2554
|
-
&.uikit-question__toggle-summary-dropdown-explanation-img-description--open {
|
|
2555
|
-
margin-bottom: 6px;
|
|
2556
|
-
}
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
&--mobile {
|
|
2560
|
-
margin-top: 16px;
|
|
2561
|
-
margin-bottom: 16px;
|
|
2562
|
-
|
|
2563
|
-
&.uikit-question__toggle-dropdown-explanation-img-description--no-reference,
|
|
2564
|
-
&.uikit-question__toggle-summary-dropdown-explanation-img-description--no-reference {
|
|
2565
|
-
margin-bottom: 7px;
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
|
-
&.uikit-question__toggle-dropdown-explanation-img-description--open,
|
|
2569
|
-
&.uikit-question__toggle-summary-dropdown-explanation-img-description--open {
|
|
2570
|
-
margin-bottom: 4px;
|
|
2571
|
-
}
|
|
2572
|
-
}
|
|
2573
|
-
}
|
|
2574
|
-
|
|
2575
|
-
&__dropdown-explanation-img-description,
|
|
2576
|
-
&__summary-dropdown-explanation-img-description {
|
|
2577
|
-
outline: none;
|
|
2578
|
-
color: $ash;
|
|
2579
|
-
font-size: 15px;
|
|
2580
|
-
line-height: 22px;
|
|
2581
|
-
margin-bottom: 20px;
|
|
2582
|
-
|
|
2583
|
-
&--dark {
|
|
2584
|
-
color: $fog;
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
|
-
&--mobile {
|
|
2588
|
-
margin-bottom: 16px;
|
|
2589
|
-
}
|
|
2590
|
-
|
|
2591
|
-
p {
|
|
2592
|
-
margin: 0;
|
|
2593
|
-
}
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
&__dropdown-reference,
|
|
2597
|
-
&__summary-dropdown-reference {
|
|
2598
|
-
padding-top: 24px;
|
|
2599
|
-
border-top: 1px solid $fog;
|
|
2600
|
-
font-size: 15px;
|
|
2601
|
-
letter-spacing: -0.1px;
|
|
2602
|
-
line-height: 22px;
|
|
2603
|
-
font-weight: 400;
|
|
2604
|
-
word-break: break-word;
|
|
2605
|
-
margin-bottom: -7px;
|
|
2606
|
-
|
|
2607
|
-
&--dark {
|
|
2608
|
-
color: $white;
|
|
2609
|
-
border-top-color: rgba($fog, 0.28);
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
p {
|
|
2613
|
-
margin: 6px 0 8pt 0;
|
|
2614
|
-
}
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
2397
|
&__strikethrough {
|
|
2618
2398
|
display: flex;
|
|
2619
2399
|
align-items: center;
|
|
@@ -2853,74 +2633,6 @@ export default class Question extends Vue {
|
|
|
2853
2633
|
}
|
|
2854
2634
|
}
|
|
2855
2635
|
|
|
2856
|
-
&__summary {
|
|
2857
|
-
position: relative;
|
|
2858
|
-
background-color: $white;
|
|
2859
|
-
width: 100%;
|
|
2860
|
-
max-width: 492px;
|
|
2861
|
-
margin-top: 24px;
|
|
2862
|
-
padding: 11px 46px 11px 15px;
|
|
2863
|
-
box-sizing: border-box;
|
|
2864
|
-
border-radius: 5px;
|
|
2865
|
-
box-shadow: 0 1px 6px 0 rgba($fog, 0.6);
|
|
2866
|
-
|
|
2867
|
-
&--dark {
|
|
2868
|
-
background: $brand-black;
|
|
2869
|
-
border: 1px solid $slate;
|
|
2870
|
-
box-shadow: 0 1px 4px 0 rgba($jet, 0.3);
|
|
2871
|
-
}
|
|
2872
|
-
|
|
2873
|
-
&--tablet-portrait {
|
|
2874
|
-
display: inline-block;
|
|
2875
|
-
}
|
|
2876
|
-
}
|
|
2877
|
-
|
|
2878
|
-
&__summary-title {
|
|
2879
|
-
font-weight: 600;
|
|
2880
|
-
font-size: 15.5px;
|
|
2881
|
-
line-height: 22px;
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
&__summary-toggle-explanation {
|
|
2885
|
-
margin-top: 8px;
|
|
2886
|
-
margin-bottom: 8px;
|
|
2887
|
-
padding: 0;
|
|
2888
|
-
|
|
2889
|
-
&--review-mode {
|
|
2890
|
-
display: none;
|
|
2891
|
-
|
|
2892
|
-
&.uikit-question__summary-toggle-explanation--tablet-portrait {
|
|
2893
|
-
display: block;
|
|
2894
|
-
}
|
|
2895
|
-
}
|
|
2896
|
-
}
|
|
2897
|
-
|
|
2898
|
-
&__summary-correct-icon {
|
|
2899
|
-
position: absolute;
|
|
2900
|
-
top: 12px;
|
|
2901
|
-
right: 10px;
|
|
2902
|
-
width: 22px;
|
|
2903
|
-
height: 22px;
|
|
2904
|
-
color: $cadaverous;
|
|
2905
|
-
|
|
2906
|
-
&--dark {
|
|
2907
|
-
color: $jungle-green;
|
|
2908
|
-
}
|
|
2909
|
-
}
|
|
2910
|
-
|
|
2911
|
-
&__summary-incorrect-icon {
|
|
2912
|
-
position: absolute;
|
|
2913
|
-
top: 12px;
|
|
2914
|
-
right: 10px;
|
|
2915
|
-
width: 22px;
|
|
2916
|
-
height: 22px;
|
|
2917
|
-
color: $pepper;
|
|
2918
|
-
|
|
2919
|
-
&--dark {
|
|
2920
|
-
color: $rosa;
|
|
2921
|
-
}
|
|
2922
|
-
}
|
|
2923
|
-
|
|
2924
2636
|
&__stats-summary {
|
|
2925
2637
|
margin-top: 24px;
|
|
2926
2638
|
display: flex;
|