|
1 | 1 | // ISAAC
|
2 | 2 |
|
3 | 3 | $cloze-dropdown-height: 300px;
|
4 |
| -$cloze-scrollbar-height: 0px; |
| 4 | +$cloze-scrollbar-height: 4px; |
5 | 5 |
|
6 | 6 | .question-panel, .question-panel > .examboard-special-tabs {
|
7 | 7 | > .content-chunk > .content-value {
|
@@ -379,38 +379,28 @@ $cloze-scrollbar-height: 0px;
|
379 | 379 | white-space: nowrap !important;
|
380 | 380 | padding-top: 0.25rem !important;
|
381 | 381 | padding-bottom: 0.25rem !important;
|
382 |
| - display: inline-flex; |
| 382 | + display: inline-table; |
383 | 383 | }
|
384 | 384 |
|
385 | 385 | // cloze dropdowns inside katex are normally cut off due to content-driven overflows we cannot control easily. this:
|
386 | 386 | // a) enforces that dropdowns are provided $cloze-dropdown-height of space (maximum height before scrolling);
|
387 | 387 | // b) sets the correct overflow behaviour for the parent of the katex containing the dropdown;
|
388 | 388 | // c) if webkit exists, recreates the scrollbar to forcibly display it on OSX.
|
389 | 389 |
|
390 |
| -p:has(> .katex.katex .cloze-dropdown.show) { |
391 |
| - padding-bottom: calc(1rem + $cloze-dropdown-height + $cloze-scrollbar-height) !important; |
392 |
| - margin-bottom: -$cloze-dropdown-height !important; |
393 |
| - overflow-x: hidden !important; |
394 |
| -} |
395 |
| - |
396 |
| -.katex-display:has(.cloze-dropdown.show) { |
397 |
| - padding-bottom: calc(0.25rem + $cloze-dropdown-height + $cloze-scrollbar-height) !important; |
| 390 | +p > .katex:has(.cloze-dropdown.show), .katex-display:has(.cloze-dropdown.show) { |
| 391 | + padding-bottom: calc(0.25rem + $cloze-dropdown-height) !important; |
398 | 392 | margin-bottom: -$cloze-dropdown-height !important;
|
399 | 393 | overflow-x: hidden !important;
|
400 | 394 | }
|
401 | 395 |
|
402 |
| -p:has(> .katex.katex), .katex-display { |
| 396 | +p > .katex, .katex-display { |
403 | 397 | overflow: auto hidden;
|
404 | 398 |
|
405 | 399 | .katex .vlist-t2 {
|
406 | 400 | margin-right: 0 !important;
|
407 | 401 | }
|
408 | 402 |
|
409 | 403 | &::-webkit-scrollbar {
|
410 |
| - // if the webkit scrollbar exists we can customise it; |
411 |
| - // so enable the offset to include our scrollbar padding in calculations |
412 |
| - $cloze-scrollbar-height: 4px !important; |
413 |
| - |
414 | 404 | -webkit-appearance: none;
|
415 | 405 | height: $cloze-scrollbar-height;
|
416 | 406 | }
|
|
0 commit comments