| Philip Zeyliger | e08c7ff | 2025-06-06 13:22:12 -0700 | [diff] [blame] | 1 | html, |
| 2 | body { |
| 3 | height: 100%; |
| 4 | margin: 0; |
| 5 | padding: 0; |
| 6 | font-family: |
| 7 | -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif; |
| 8 | background-color: #ffffff; |
| 9 | } |
| 10 | |
| 11 | /* iOS Safari viewport fix */ |
| 12 | html { |
| 13 | height: -webkit-fill-available; |
| 14 | } |
| 15 | |
| 16 | body { |
| 17 | display: flex; |
| 18 | overflow: hidden; |
| 19 | /* Additional iOS Safari height fix */ |
| 20 | min-height: 100vh; |
| 21 | min-height: -webkit-fill-available; |
| 22 | } |
| 23 | |
| philip.zeyliger | c540e8e | 2025-06-18 21:05:46 +0000 | [diff] [blame] | 24 | /* |
| 25 | * Import Monaco editor's Codicon font - this is critical for icons |
| 26 | * IMPORTANT: This font-face declaration MUST remain in global CSS. |
| 27 | * Chrome does not apply @font-face rules properly when they're inside shadow DOM. |
| 28 | * Do not move this to the sketch-monaco-view component despite it being used there. |
| 29 | */ |
| 30 | @font-face { |
| 31 | font-family: "codicon"; |
| 32 | font-display: block; |
| 33 | src: url("./monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf") |
| 34 | format("truetype"); |
| 35 | } |
| 36 | |
| Philip Zeyliger | e08c7ff | 2025-06-06 13:22:12 -0700 | [diff] [blame] | 37 | /* Mobile viewport optimizations */ |
| 38 | @media screen and (max-width: 768px) { |
| 39 | html { |
| 40 | font-size: 16px; /* Prevent iOS zoom */ |
| 41 | } |
| 42 | } |