|
70 | 70 | }
|
71 | 71 |
|
72 | 72 | // Inline math should have the same font-size as the surrounding text.
|
73 |
| - // There is no wrapping element around .katex to indicate that it is |
| 73 | + // There is no wrapping element around TeX to indicate that it is |
74 | 74 | // inline, so we rely on the "actual paragraph" check above
|
75 | 75 | // (a .paragraph that contains another .paragraph instead of a
|
76 | 76 | // .perseus-block-math).
|
77 |
| - .katex, |
78 | 77 | mjx-container {
|
79 | 78 | font-size: 100%;
|
80 | 79 | }
|
|
242 | 241 | .paragraph {
|
243 | 242 | .text(@choiceTextSize, @choiceLineHeight, @gray17);
|
244 | 243 |
|
245 |
| - .katex, |
246 | 244 | mjx-container {
|
247 | 245 | color: @gray17;
|
248 | 246 | }
|
|
392 | 390 | .paragraph {
|
393 | 391 | .text(@choiceTextSize, @choiceLineHeight, @gray17);
|
394 | 392 |
|
395 |
| - .katex, |
396 | 393 | mjx-container {
|
397 | 394 | color: @gray17;
|
398 | 395 | }
|
|
420 | 417 |
|
421 | 418 | .math(@blockMathTextSize; @blockMathLineHeight;
|
422 | 419 | @inlineMathTextSize; @inlineMathLineHeight) {
|
423 |
| - :is(.katex, mjx-container):not(.mafs-graph *) { |
| 420 | + mjx-container:not(.mafs-graph *) { |
424 | 421 | font-size: @inlineMathTextSize;
|
425 | 422 | line-height: @inlineMathLineHeight;
|
426 | 423 | color: @gray17;
|
427 | 424 | }
|
428 | 425 |
|
429 |
| - .perseus-block-math .katex, |
430 | 426 | .perseus-block-math mjx-container {
|
431 | 427 | font-size: @blockMathTextSize;
|
432 | 428 | line-height: @blockMathLineHeight;
|
433 | 429 | }
|
434 | 430 |
|
435 |
| - // HACK(charlie): I am ashamed. This seems to be the only way to revert |
436 |
| - // KaTeX rendered as Graphie labels to the KaTeX defaults, taken from: |
437 |
| - // https://github.com/Khan/KaTeX/blob/965b8a6164ee54212bf382108f256c6920eb7a70/static/katex.less#L18. |
438 |
| - // It's dangerous to resize labels, since they're deliberately |
439 |
| - // positioned relative to their background images. |
440 |
| - .graphie-label .katex, |
441 | 431 | .graphie-label mjx-container {
|
442 | 432 | font-size: 1.21em;
|
443 | 433 | line-height: 1.2;
|
|
0 commit comments