|
| 1 | +:root { |
| 2 | + color-scheme: light; |
| 3 | + accent-color: var(--md-primary); |
| 4 | + --device-min-tap: 2.75rem; |
| 5 | +} |
| 6 | + |
| 7 | +@media (prefers-color-scheme: dark) { |
| 8 | + :root { |
| 9 | + color-scheme: dark; |
| 10 | + } |
| 11 | +} |
| 12 | + |
| 13 | +html { |
| 14 | + font-size: 100%; |
| 15 | + -webkit-text-size-adjust: 100%; |
| 16 | + text-size-adjust: 100%; |
| 17 | + scrollbar-color: var(--md-outline) var(--md-bg); |
| 18 | +} |
| 19 | + |
| 20 | +body { |
| 21 | + text-rendering: optimizeLegibility; |
| 22 | +} |
| 23 | + |
| 24 | +button, |
| 25 | +input, |
| 26 | +select, |
| 27 | +textarea { |
| 28 | + color-scheme: inherit; |
| 29 | + font: inherit; |
| 30 | +} |
| 31 | + |
| 32 | +::selection { |
| 33 | + background: color-mix(in srgb, var(--md-primary) 28%, transparent); |
| 34 | +} |
| 35 | + |
| 36 | +:where(a, button, input, select, textarea):focus-visible { |
| 37 | + outline: 0.1875rem solid color-mix(in srgb, var(--md-primary) 80%, var(--md-on-surface)); |
| 38 | + outline-offset: 0.1875rem; |
| 39 | +} |
| 40 | + |
| 41 | +@supports not (color: color-mix(in srgb, red, white)) { |
| 42 | + :where(a, button, input, select, textarea):focus-visible { |
| 43 | + outline-color: var(--md-primary); |
| 44 | + } |
| 45 | +} |
| 46 | + |
| 47 | +h1, |
| 48 | +.sec-head h2, |
| 49 | +.stat-num, |
| 50 | +.stat-label, |
| 51 | +.count-num, |
| 52 | +.btn-filled, |
| 53 | +.btn-tonal, |
| 54 | +.filter-label { |
| 55 | + letter-spacing: 0; |
| 56 | +} |
| 57 | + |
| 58 | +h1 { |
| 59 | + font-size: 2.75rem; |
| 60 | +} |
| 61 | + |
| 62 | +.sec-head h2 { |
| 63 | + font-size: 1.75rem; |
| 64 | +} |
| 65 | + |
| 66 | +.count-num { |
| 67 | + font-size: 7rem; |
| 68 | +} |
| 69 | + |
| 70 | +@media (max-width: 37.5rem) { |
| 71 | + h1 { |
| 72 | + font-size: 2.1rem; |
| 73 | + } |
| 74 | + |
| 75 | + .sec-head h2 { |
| 76 | + font-size: 1.45rem; |
| 77 | + } |
| 78 | + |
| 79 | + .count-num { |
| 80 | + font-size: 5rem; |
| 81 | + } |
| 82 | +} |
| 83 | + |
| 84 | +@media (pointer: coarse) { |
| 85 | + :where(.btn-filled, .btn-tonal, .chip, .nav-gh, .time-input) { |
| 86 | + min-height: var(--device-min-tap); |
| 87 | + } |
| 88 | + |
| 89 | + :where(.nav-sponsor, .header-sponsor, .header-back, .time-reset) { |
| 90 | + min-width: var(--device-min-tap); |
| 91 | + min-height: var(--device-min-tap); |
| 92 | + } |
| 93 | +} |
| 94 | + |
| 95 | +@media (hover: none) { |
| 96 | + .nav-sponsor:hover, |
| 97 | + .card-link:hover, |
| 98 | + .room-card:hover, |
| 99 | + .header-sponsor:hover { |
| 100 | + transform: none; |
| 101 | + } |
| 102 | +} |
| 103 | + |
| 104 | +@media (prefers-reduced-motion: reduce) { |
| 105 | + html { |
| 106 | + scroll-behavior: auto; |
| 107 | + } |
| 108 | + |
| 109 | + *, |
| 110 | + *::before, |
| 111 | + *::after { |
| 112 | + animation-delay: 0ms !important; |
| 113 | + animation-duration: 1ms !important; |
| 114 | + animation-iteration-count: 1 !important; |
| 115 | + scroll-behavior: auto !important; |
| 116 | + transition-duration: 1ms !important; |
| 117 | + } |
| 118 | +} |
| 119 | + |
| 120 | +@media (prefers-contrast: more) { |
| 121 | + :root { |
| 122 | + --md-outline: #2E3138; |
| 123 | + --md-outline-variant: #61656F; |
| 124 | + --md-shadow-1: none; |
| 125 | + --md-shadow-2: none; |
| 126 | + } |
| 127 | + |
| 128 | + :where(.card, .summary-card, .room-card, .info-card, .schedule-card, .status-card, .install-panel) { |
| 129 | + border: 1px solid var(--md-outline); |
| 130 | + } |
| 131 | + |
| 132 | + :where(.btn-filled, .btn-tonal, .chip, .badge, .time-input, .time-custom-badge) { |
| 133 | + border: 1px solid currentColor; |
| 134 | + } |
| 135 | +} |
| 136 | + |
| 137 | +@media (prefers-color-scheme: dark) and (prefers-contrast: more) { |
| 138 | + :root { |
| 139 | + --md-outline: #DEE3EA; |
| 140 | + --md-outline-variant: #AAB0BA; |
| 141 | + } |
| 142 | +} |
| 143 | + |
| 144 | +@media (forced-colors: active) { |
| 145 | + :root { |
| 146 | + color-scheme: light dark; |
| 147 | + --md-primary: Highlight; |
| 148 | + --md-on-primary: HighlightText; |
| 149 | + --md-primary-container: Highlight; |
| 150 | + --md-on-primary-container: HighlightText; |
| 151 | + --md-secondary: ButtonText; |
| 152 | + --md-on-secondary: ButtonFace; |
| 153 | + --md-secondary-container: ButtonFace; |
| 154 | + --md-on-secondary-container: ButtonText; |
| 155 | + --md-tertiary: Highlight; |
| 156 | + --md-on-tertiary: HighlightText; |
| 157 | + --md-tertiary-container: Highlight; |
| 158 | + --md-on-tertiary-container: HighlightText; |
| 159 | + --md-error: Highlight; |
| 160 | + --md-on-error: HighlightText; |
| 161 | + --md-error-container: Highlight; |
| 162 | + --md-on-error-container: HighlightText; |
| 163 | + --md-surface: Canvas; |
| 164 | + --md-surface-variant: Canvas; |
| 165 | + --md-on-surface: CanvasText; |
| 166 | + --md-on-surface-variant: CanvasText; |
| 167 | + --md-outline: CanvasText; |
| 168 | + --md-outline-variant: CanvasText; |
| 169 | + --md-bg: Canvas; |
| 170 | + --md-surface-1: Canvas; |
| 171 | + --sponsor: LinkText; |
| 172 | + --sponsor-container: Canvas; |
| 173 | + --md-shadow-1: none; |
| 174 | + --md-shadow-2: none; |
| 175 | + } |
| 176 | + |
| 177 | + :where(.card, .summary-card, .room-card, .info-card, .schedule-card, .status-card, .install-panel) { |
| 178 | + border: 1px solid CanvasText; |
| 179 | + } |
| 180 | + |
| 181 | + :where(.btn-filled, .chip.active, .badge-free, .badge-allday, .status-card.free) { |
| 182 | + background: Highlight; |
| 183 | + border-color: Highlight; |
| 184 | + color: HighlightText; |
| 185 | + forced-color-adjust: none; |
| 186 | + } |
| 187 | + |
| 188 | + :where(.btn-tonal, .chip, .time-input, .time-custom-badge) { |
| 189 | + background: ButtonFace; |
| 190 | + border-color: ButtonText; |
| 191 | + color: ButtonText; |
| 192 | + } |
| 193 | + |
| 194 | + a { |
| 195 | + color: LinkText; |
| 196 | + } |
| 197 | +} |
0 commit comments