|
9 | 9 | font-display: swap; |
10 | 10 | } |
11 | 11 |
|
12 | | -/* Fix iOS auto-sizing on mobile */ |
13 | | -html { |
14 | | - -webkit-text-size-adjust: 100%; |
15 | | - text-size-adjust: 100%; |
16 | | -} |
17 | | -pre, |
18 | | -code { |
19 | | - -webkit-text-size-adjust: 100%; |
20 | | - text-size-adjust: 100%; |
21 | | -} |
22 | | - |
23 | 12 | /* ============================================================ |
24 | 13 | Tokens (Light) |
25 | 14 | ============================================================ */ |
|
38 | 27 | --ifm-font-family-heading: "Satoshi"; |
39 | 28 | --ifm-heading-font-weight: 450; |
40 | 29 | --ifm-font-weight-bold: 580; |
41 | | - --ifm-font-size-base: 16px; |
42 | 30 | --ifm-code-font-size: 85%; |
43 | 31 |
|
44 | 32 | /* Shape */ |
@@ -512,3 +500,22 @@ div[class^="searchBar_"] div[class*="hitFooter"] a:hover { |
512 | 500 | padding: 6px 10px; |
513 | 501 | } |
514 | 502 | } |
| 503 | + |
| 504 | +/* Fix iOS auto-sizing code blocks on mobile */ |
| 505 | +@supports (-webkit-touch-callout: none) { |
| 506 | + @media (max-width: 600px) { |
| 507 | + .theme-code-block pre.prism-code { |
| 508 | + white-space: pre-wrap !important; |
| 509 | + overflow-wrap: anywhere !important; |
| 510 | + word-break: break-word !important; |
| 511 | + overflow-x: auto !important; |
| 512 | + font-size: 0.85em !important; |
| 513 | + line-height: 1.45 !important; |
| 514 | + } |
| 515 | + |
| 516 | + .theme-code-block pre.prism-code > code, |
| 517 | + .theme-code-block pre.prism-code .token-line { |
| 518 | + white-space: inherit !important; |
| 519 | + } |
| 520 | + } |
| 521 | +} |
0 commit comments