blob: 25da2f2a1e1e10a136921d1352519d90e2e1364c [file] [log] [blame]
Pokey Rulee2a8c2f2025-04-23 15:09:25 +01001html,
2body {
3 height: 100%;
Pokey Rulee2a8c2f2025-04-23 15:09:25 +01004}
5
6body {
Pokey Rulee2a8c2f2025-04-23 15:09:25 +01007 margin: 0;
Pokey Rulee2a8c2f2025-04-23 15:09:25 +01008 display: flex;
Pokey Rulee2a8c2f2025-04-23 15:09:25 +01009}
Philip Zeyliger272a90e2025-05-16 14:49:51 -070010
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;
Autoformatter8c463622025-05-16 21:54:17 +000020 src: url("./monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf")
21 format("truetype");
Philip Zeyliger272a90e2025-05-16 14:49:51 -070022}
philip.zeyligerffa94c62025-06-19 18:43:37 -070023
David Crawshaw255dc432025-07-06 21:58:00 +000024/*
25 * SketchTailwindElement components need explicit host-level styling
26 * since they disable shadow DOM and lose :host CSS selector support
27 */
28sketch-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.zeyligerffa94c62025-06-19 18:43:37 -070038/* 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}