Repository navigation
Expand file tree
/
Copy paththeme.css
More file actions
66 lines (65 loc) · 3.45 KB
/
Copy paththeme.css
File metadata and controls
66 lines (65 loc) · 3.45 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
/* The plain theme: the map filling the window, with small panels over it. See docs/themes.md. */
:root {
color-scheme: light dark;
--bg: #ecebe7;
--fg: #1d1d1f;
--muted: #6e6e73;
--panel: rgb(255 255 255 / 0.92);
--border: rgb(0 0 0 / 0.1);
--hover: rgb(0 0 0 / 0.06);
--shadow: 0 1px 3px rgb(0 0 0 / 0.12);
--accent: #0a66d8;
--gap: 12px;
font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #1c1c1e;
--fg: #f2f2f7;
--muted: #a1a1a6;
--panel: rgb(44 44 46 / 0.92);
--border: rgb(255 255 255 / 0.12);
--hover: rgb(255 255 255 / 0.08);
--shadow: 0 1px 3px rgb(0 0 0 / 0.4);
--accent: #4c9aff;
}
}
html, body { background: var(--bg); color: var(--fg); }
#map:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.plain { position: absolute; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.plain-title { top: var(--gap); left: var(--gap); max-width: calc(100vw - 2 * var(--gap)); padding: 8px 12px; }
.plain-title h1 { margin: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plain-title p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.plain-status {
bottom: var(--gap); left: var(--gap); max-width: calc(100vw - 3 * var(--gap) - 38px);
display: flex; align-items: center; gap: 10px; padding: 6px 10px;
font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* The scale: a bracket a round number of blocks long. */
.plain-status .scale { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.plain-status i { display: block; height: 5px; border: 1.5px solid currentColor; border-top: 0; }
.plain-status .loading { color: var(--muted); }
.plain-status .loading:empty { display: none; }
.plain-zoom { bottom: var(--gap); right: var(--gap); display: flex; flex-direction: column; overflow: hidden; }
.plain-zoom button {
width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
border: 0; background: none; color: var(--fg); cursor: pointer;
}
.plain-zoom button + button { border-top: 1px solid var(--border); }
.plain-zoom button:hover:not(:disabled) { background: var(--hover); }
.plain-zoom button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.plain-zoom button:disabled { opacity: 0.4; cursor: default; }
.plain-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* The views, above the zoom buttons, the one shown highlighted. */
.plain-views { bottom: calc(var(--gap) + 3 * 36px + 2px + 8px); right: var(--gap); display: flex; flex-direction: column; overflow: hidden; }
.plain-views button { padding: 7px 10px; border: 0; background: none; color: var(--fg); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.plain-views button + button { border-top: 1px solid var(--border); }
.plain-views button:hover:not(:disabled) { background: var(--hover); }
.plain-views button[aria-pressed="true"] { color: var(--accent); font-weight: 600; }
.plain-views button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.plain-views button:disabled { opacity: 0.4; cursor: default; }
.plain-message {
top: 50%; left: 50%; transform: translate(-50%, -50%);
width: min(24rem, calc(100vw - 2 * var(--gap))); margin: 0; padding: 16px 20px;
text-align: center; text-wrap: balance;
}