Repository navigation
Expand file tree
/
Copy pathglobal.css
More file actions
71 lines (65 loc) · 3.04 KB
/
Copy pathglobal.css
File metadata and controls
71 lines (65 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Semantic colours, kept in sync with src/theme/palette.ts by src/theme/palette.test.ts. On web ThemeProvider
also sets them inline so an in-app Chiaro/Scuro choice overrides the browser preference. */
:root {
--color-chrome: 255 255 255;
--color-surface: 250 250 250;
--color-surface-raised: 255 255 255;
--color-surface-muted: 244 244 245;
--color-text-primary: 9 9 11;
--color-text-secondary: 82 82 91;
--color-divider: 228 228 231;
--color-action: 9 9 11;
--color-on-action: 250 250 250;
--color-action-subtle: 228 228 231;
--color-caution: 146 64 14;
--color-caution-subtle: 254 243 199;
--color-danger: 185 28 28;
--color-danger-subtle: 254 226 226;
--color-success: 6 111 68;
--color-success-subtle: 220 252 231;
--color-live: 6 111 68;
--color-scheduled: 63 63 70;
--color-stale: 146 64 14;
--color-cancelled: 185 28 28;
}
/* Dark values. On Android/iOS NativeWind binds these root variables to the app colour scheme, which
ThemeProvider sets through Appearance, so every styled view updates on a live switch. */
@media (prefers-color-scheme: dark) {
:root {
--color-chrome: 0 0 0;
--color-surface: 11 11 12;
--color-surface-raised: 17 17 19;
--color-surface-muted: 28 28 31;
--color-text-primary: 250 250 250;
--color-text-secondary: 161 161 170;
--color-divider: 39 39 42;
--color-action: 250 250 250;
--color-on-action: 9 9 11;
--color-action-subtle: 39 39 42;
--color-caution: 251 191 36;
--color-caution-subtle: 42 32 6;
--color-danger: 248 113 113;
--color-danger-subtle: 45 18 19;
--color-success: 61 220 151;
--color-success-subtle: 13 42 30;
--color-live: 61 220 151;
--color-scheduled: 212 212 216;
--color-stale: 251 191 36;
--color-cancelled: 248 113 113;
}
}
/* Attribution stays exposed above the task sheet. */
.maplibregl-map .maplibregl-ctrl-top-left { top: var(--map-attribution-top, 68px); left: var(--map-attribution-left, 8px); }
.maplibregl-map .maplibregl-ctrl-attrib { max-width: calc(100vw - 84px); }
.maplibregl-map .maplibregl-ctrl-attrib.maplibregl-compact { min-height: 44px; min-width: 44px; }
.maplibregl-map .maplibregl-ctrl-attrib-button { width: 44px; height: 44px; background-repeat: no-repeat; background-position: center; }
.maplibregl-map .maplibregl-ctrl-attrib.maplibregl-compact:not([open]) { width: 44px; padding: 0; border-radius: 22px; }
/* Attribution follows the app appearance; the variables come from ThemeProvider. The [data-scheme]
prefix outranks maplibre-gl.css, which loads after this file. */
[data-scheme] .maplibregl-ctrl.maplibregl-ctrl-attrib { background-color: rgb(var(--color-surface-raised) / 0.92); color: rgb(var(--color-text-primary)); }
[data-scheme] .maplibregl-ctrl.maplibregl-ctrl-attrib a { color: rgb(var(--color-text-primary)); }
[data-scheme] .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button { background-color: transparent; }
[data-scheme="dark"] .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button { filter: invert(1); }