@pocketprep/ui-kit 3.4.12 → 3.4.14
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 +2 -1
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/Quiz/Question/DropdownExplanation.vue +4 -30
- package/lib/components/Quiz/Question/Explanation.vue +4 -6
- package/lib/components/Quiz/Question/PassageAndImage.vue +1 -5
- package/lib/components/Quiz/Question.vue +3 -97
- package/package.json +1 -1
|
@@ -136,34 +136,12 @@ export default class DropdownExplanation extends Vue {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
&__toggle-dropdown-explanation-img-description {
|
|
139
|
-
margin-top:
|
|
140
|
-
margin-bottom:
|
|
139
|
+
margin-top: 14px;
|
|
140
|
+
margin-bottom: 16px;
|
|
141
141
|
|
|
142
142
|
&--open {
|
|
143
|
-
margin-bottom: 6px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&--tablet-portrait {
|
|
147
|
-
&.uikit-question-dropdown-explanation__toggle-dropdown-explanation-img-description--no-reference {
|
|
148
|
-
margin-bottom: 4px;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&.uikit-question-dropdown-explanation__toggle-dropdown-explanation-img-description--open {
|
|
152
|
-
margin-bottom: 6px;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
&--mobile {
|
|
157
143
|
margin-top: 16px;
|
|
158
|
-
margin-bottom:
|
|
159
|
-
|
|
160
|
-
&.uikit-question-dropdown-explanation__toggle-dropdown-explanation-img-description--no-reference {
|
|
161
|
-
margin-bottom: 7px;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&.uikit-question-dropdown-explanation__toggle-dropdown-explanation-img-description--open {
|
|
165
|
-
margin-bottom: 4px;
|
|
166
|
-
}
|
|
144
|
+
margin-bottom: 6px;
|
|
167
145
|
}
|
|
168
146
|
}
|
|
169
147
|
|
|
@@ -200,16 +178,12 @@ export default class DropdownExplanation extends Vue {
|
|
|
200
178
|
color: $ash;
|
|
201
179
|
font-size: 15px;
|
|
202
180
|
line-height: 22px;
|
|
203
|
-
margin-bottom:
|
|
181
|
+
margin-bottom: 16px;
|
|
204
182
|
|
|
205
183
|
&--dark {
|
|
206
184
|
color: $fog;
|
|
207
185
|
}
|
|
208
186
|
|
|
209
|
-
&--mobile {
|
|
210
|
-
margin-bottom: 16px;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
187
|
p {
|
|
214
188
|
margin: 0;
|
|
215
189
|
}
|
|
@@ -261,15 +261,13 @@ export default class Explanation extends Vue {
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
&__toggle-explanation-img-description {
|
|
264
|
-
margin-top:
|
|
264
|
+
margin-top: 14px;
|
|
265
|
+
margin-bottom: 16px;
|
|
265
266
|
|
|
266
267
|
&--open {
|
|
268
|
+
margin-top: 16px;
|
|
267
269
|
margin-bottom: 6px;
|
|
268
270
|
}
|
|
269
|
-
|
|
270
|
-
&--tablet-landscape {
|
|
271
|
-
margin-top: 12px;
|
|
272
|
-
}
|
|
273
271
|
}
|
|
274
272
|
|
|
275
273
|
&__explanation-img-description {
|
|
@@ -279,7 +277,7 @@ export default class Explanation extends Vue {
|
|
|
279
277
|
font-weight: 500;
|
|
280
278
|
letter-spacing: -0.2px;
|
|
281
279
|
line-height: 22px;
|
|
282
|
-
margin-bottom:
|
|
280
|
+
margin-bottom: 16px;
|
|
283
281
|
|
|
284
282
|
&--dark {
|
|
285
283
|
color: $fog;
|
|
@@ -178,11 +178,7 @@ export default class PassageAndImage extends Vue {
|
|
|
178
178
|
|
|
179
179
|
&__toggle-passage-image-description {
|
|
180
180
|
margin-top: 16px;
|
|
181
|
-
margin-bottom:
|
|
182
|
-
|
|
183
|
-
&--tablet-landscape {
|
|
184
|
-
margin-top: 12px;
|
|
185
|
-
}
|
|
181
|
+
margin-bottom: 6px;
|
|
186
182
|
}
|
|
187
183
|
|
|
188
184
|
&__toggle-passage-image-description-text {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
:quiz-length="quizLength"
|
|
43
43
|
:quiz-mode="quizMode"
|
|
44
44
|
:question-number="questionNumber"
|
|
45
|
+
:is-correct="isCorrect"
|
|
45
46
|
:is-dark-mode="isDarkMode"
|
|
46
47
|
:context-icon-type="contextIconType"
|
|
47
48
|
:show-answers="showAnswers"
|
|
@@ -944,8 +945,8 @@ export default class Question extends Vue {
|
|
|
944
945
|
if (dropdownExplanationComp) {
|
|
945
946
|
const dropdownEl = dropdownExplanationComp[0] as ComponentPublicInstance | undefined
|
|
946
947
|
const mobileImgDropdownImgDescription =
|
|
947
|
-
|
|
948
|
-
|
|
948
|
+
// eslint-disable-next-line max-len
|
|
949
|
+
dropdownEl?.$refs['uikit-question-dropdown-explanation__dropdown-explanation-img-description'] as HTMLElement | undefined
|
|
949
950
|
|
|
950
951
|
if (mobileImgDropdownImgDescription?.offsetParent) {
|
|
951
952
|
mobileImgDropdownImgDescription.focus()
|
|
@@ -1457,101 +1458,6 @@ export default class Question extends Vue {
|
|
|
1457
1458
|
}
|
|
1458
1459
|
}
|
|
1459
1460
|
|
|
1460
|
-
&__correct-icon {
|
|
1461
|
-
position: absolute;
|
|
1462
|
-
top: 12px;
|
|
1463
|
-
right: 15px;
|
|
1464
|
-
width: 22px;
|
|
1465
|
-
height: 22px;
|
|
1466
|
-
color: $cadaverous;
|
|
1467
|
-
|
|
1468
|
-
&--dark {
|
|
1469
|
-
color: $jungle-green;
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
&--review-mode {
|
|
1473
|
-
top: 11px;
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
&__incorrect-icon {
|
|
1478
|
-
position: absolute;
|
|
1479
|
-
top: 12px;
|
|
1480
|
-
right: 10px;
|
|
1481
|
-
width: 22px;
|
|
1482
|
-
height: 22px;
|
|
1483
|
-
color: $pepper;
|
|
1484
|
-
|
|
1485
|
-
&--mcr {
|
|
1486
|
-
top: 11px;
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
|
-
&--dark {
|
|
1490
|
-
color: $rosa;
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
&__choice-stats-pct {
|
|
1495
|
-
position: absolute;
|
|
1496
|
-
top: 50%;
|
|
1497
|
-
right: 10px;
|
|
1498
|
-
transform: translateY(-50%);
|
|
1499
|
-
color: $ash;
|
|
1500
|
-
font-size: 15.5px;
|
|
1501
|
-
letter-spacing: -0.2px;
|
|
1502
|
-
line-height: 19px;
|
|
1503
|
-
font-weight: 600;
|
|
1504
|
-
transition: 0.1s right ease;
|
|
1505
|
-
|
|
1506
|
-
&--dark {
|
|
1507
|
-
color: $fog;
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
&--big {
|
|
1511
|
-
right: 15px;
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
&__choice-stats-bar {
|
|
1516
|
-
position: absolute;
|
|
1517
|
-
bottom: 0;
|
|
1518
|
-
width: 100%;
|
|
1519
|
-
height: 12px;
|
|
1520
|
-
box-sizing: border-box;
|
|
1521
|
-
background-color: $fog;
|
|
1522
|
-
border-radius: 0 0 5px 5px;
|
|
1523
|
-
overflow: hidden;
|
|
1524
|
-
|
|
1525
|
-
&--dark {
|
|
1526
|
-
background-color: $ash;
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
&__choice-stats-bar-fill {
|
|
1531
|
-
background-color: $slate-01;
|
|
1532
|
-
height: 100%;
|
|
1533
|
-
|
|
1534
|
-
&--dark {
|
|
1535
|
-
background-color: $pewter;
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
&--correct {
|
|
1539
|
-
background-color: $cadaverous;
|
|
1540
|
-
|
|
1541
|
-
&--dark {
|
|
1542
|
-
background-color: $jungle-green;
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
&--incorrect {
|
|
1547
|
-
background-color: $pepper;
|
|
1548
|
-
|
|
1549
|
-
&--dark {
|
|
1550
|
-
background-color: $rosa;
|
|
1551
|
-
}
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
1461
|
&__motivational-moment {
|
|
1556
1462
|
position: absolute;
|
|
1557
1463
|
right: -150px;
|