| Pokey Rule | e2a8c2f | 2025-04-23 15:09:25 +0100 | [diff] [blame] | 1 | html, |
| 2 | body { |
| 3 | height: 100%; |
| Pokey Rule | e2a8c2f | 2025-04-23 15:09:25 +0100 | [diff] [blame] | 4 | } |
| 5 | |
| 6 | body { |
| Pokey Rule | e2a8c2f | 2025-04-23 15:09:25 +0100 | [diff] [blame] | 7 | margin: 0; |
| Pokey Rule | e2a8c2f | 2025-04-23 15:09:25 +0100 | [diff] [blame] | 8 | display: flex; |
| Pokey Rule | e2a8c2f | 2025-04-23 15:09:25 +0100 | [diff] [blame] | 9 | } |
| Philip Zeyliger | 272a90e | 2025-05-16 14:49:51 -0700 | [diff] [blame] | 10 | |
| 11 | /* |
| 12 | * Import Monaco editor's Codicon font - this is critical for icons |
| 13 | * IMPORTANT: This font-face declaration MUST remain in global CSS. |
| 14 | * Chrome does not apply @font-face rules properly when they're inside shadow DOM. |
| 15 | * Do not move this to the sketch-monaco-view component despite it being used there. |
| 16 | */ |
| 17 | @font-face { |
| 18 | font-family: "codicon"; |
| 19 | font-display: block; |
| Autoformatter | 8c46362 | 2025-05-16 21:54:17 +0000 | [diff] [blame] | 20 | src: url("./monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf") |
| 21 | format("truetype"); |
| Philip Zeyliger | 272a90e | 2025-05-16 14:49:51 -0700 | [diff] [blame] | 22 | } |
| philip.zeyliger | ffa94c6 | 2025-06-19 18:43:37 -0700 | [diff] [blame] | 23 | |
| David Crawshaw | 255dc43 | 2025-07-06 21:58:00 +0000 | [diff] [blame] | 24 | /* |
| 25 | * SketchTailwindElement components need explicit host-level styling |
| 26 | * since they disable shadow DOM and lose :host CSS selector support |
| 27 | */ |
| 28 | sketch-diff2-view { |
| 29 | display: flex; |
| 30 | height: 100%; |
| 31 | flex: 1; |
| 32 | flex-direction: column; |
| 33 | min-height: 0; /* Critical for flex child behavior */ |
| 34 | overflow: hidden; |
| 35 | position: relative; /* Establish positioning context */ |
| 36 | } |
| 37 | |
| philip.zeyliger | ffa94c6 | 2025-06-19 18:43:37 -0700 | [diff] [blame] | 38 | /* Print styles for full chat printing */ |
| 39 | @media print { |
| 40 | html, |
| 41 | body { |
| 42 | height: auto !important; |
| 43 | overflow: visible !important; |
| 44 | } |
| 45 | |
| 46 | body { |
| 47 | margin: 0; |
| 48 | padding: 0; |
| 49 | } |
| 50 | } |