blob: a229ef0f583d17d26d82270ef98ec7ef12903656 [file] [log] [blame]
Philip Zeyligere08c7ff2025-06-06 13:22:12 -07001html,
2body {
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 */
12html {
13 height: -webkit-fill-available;
14}
15
16body {
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.zeyligerc540e8e2025-06-18 21:05:46 +000024/*
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 Zeyligere08c7ff2025-06-06 13:22:12 -070037/* Mobile viewport optimizations */
38@media screen and (max-width: 768px) {
39 html {
40 font-size: 16px; /* Prevent iOS zoom */
41 }
42}