Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
191 lines (184 loc) · 16.5 KB
/
Copy pathstyles.css
File metadata and controls
191 lines (184 loc) · 16.5 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
:root {
--ink: #10232c;
--muted: #6d7d80;
--paper: #f4f1e9;
--line: rgba(16, 35, 44, .14);
--teal: #18877b;
--orange: #ef6c3e;
--sidebar: 355px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #e9eee9; color: var(--ink); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100vh; background: var(--paper); }
.topbar { height: 76px; display: grid; grid-template-columns: var(--sidebar) 1fr auto; align-items: center; border-bottom: 1px solid var(--line); padding: 0 34px; background: rgba(247,245,238,.96); position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.7px; }
.brand > span:last-child span { color: var(--teal); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 50%; }
.brand-mark svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.35; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { height: 76px; display: grid; place-items: center; color: #708083; font-size: 13px; text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; }
nav a.active { color: var(--ink); border-color: var(--teal); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.search-wrap { position: relative; width: 254px; }
.search-wrap > svg { position: absolute; left: 13px; top: 12px; width: 17px; fill: none; stroke: #718083; stroke-width: 1.8; z-index: 2; }
.search-wrap input { width: 100%; height: 42px; padding: 0 54px 0 40px; border: 1px solid var(--line); background: #fff; color: var(--ink); outline: none; border-radius: 4px; font-size: 12px; }
.search-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,135,123,.1); }
.shortcut { position: absolute; right: 10px; top: 10px; border: 1px solid var(--line); color: #7b8888; font-size: 10px; padding: 3px 5px; background: #f7f7f3; }
.search-results { position: absolute; inset: 48px 0 auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 35px rgba(16,35,44,.16); z-index: 30; }
.search-result { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #fff; display: flex; justify-content: space-between; padding: 12px 14px; cursor: pointer; color: var(--ink); font-size: 12px; }
.search-result:hover { background: #eef5f2; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.icon-button svg { width: 18px; fill: none; stroke: var(--ink); stroke-width: 1.7; }
main { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: calc(100vh - 76px); }
.sidebar { padding: 41px 34px 25px; border-right: 1px solid var(--line); background: #f7f4ec; display: flex; flex-direction: column; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.4px; font-size: 9px; color: var(--teal); font-weight: 700; }
h1 { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(43px, 3.15vw, 58px); font-weight: 400; line-height: .94; letter-spacing: -1.8px; margin: 18px 0 18px; }
h1 em { color: var(--teal); font-weight: 400; }
.intro { color: #657579; font-family: Georgia, serif; font-size: 13px; line-height: 1.65; margin: 0 0 28px; max-width: 265px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading h2 { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0; }
.section-heading span { font-size: 9px; color: #8a9697; }
.layers { border-top: 1px solid var(--line); padding-top: 17px; }
.layer-button { width: 100%; min-height: 62px; display: grid; grid-template-columns: 39px 1fr 14px; align-items: center; gap: 11px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; padding: 8px 7px 8px 0; cursor: pointer; color: var(--ink); }
.layer-button:hover { background: rgba(255,255,255,.5); }
.layer-icon { width: 36px; height: 36px; display: grid; place-items: center; background: #e5e6df; color: #59686a; }
.layer-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.layer-button strong { display: block; font-family: Georgia, serif; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.layer-button small { display: block; color: #899394; font-size: 9px; }
.layer-radio { width: 12px; height: 12px; border: 1px solid #9aa5a5; border-radius: 50%; position: relative; }
.layer-button.active { background: #fff; padding-left: 8px; border-left: 2px solid var(--orange); }
.layer-button.active .temperature-icon { color: #fff; background: var(--orange); }
.layer-button.active .humidity-icon { color: #fff; background: #1f89a8; }
.layer-button.active .elevation-icon { color: #fff; background: #80735b; }
.layer-button.active .illumination-icon { color: #132a37; background: #f2c750; }
.layer-button.active .layer-radio { border-color: currentColor; }
.layer-button.active .layer-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); }
.illumination-switch { display: grid; grid-template-columns: 1fr auto; align-items: center; position: relative; padding: 13px 6px 2px 0; cursor: pointer; }
.illumination-switch strong, .illumination-switch small { display: block; }
.illumination-switch strong { font: 600 10px Georgia, serif; }
.illumination-switch small { color: #899394; font-size: 8px; margin-top: 3px; }
.illumination-switch input { position: absolute; opacity: 0; pointer-events: none; }
.illumination-switch i { width: 30px; height: 16px; border: 1px solid #98a4a3; background: #dfe2dc; position: relative; transition: .2s ease; }
.illumination-switch i::after { content: ""; position: absolute; width: 10px; height: 10px; left: 2px; top: 2px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s ease; }
.illumination-switch input:checked + i { background: var(--teal); border-color: var(--teal); }
.illumination-switch input:checked + i::after { transform: translateX(14px); }
.illumination-switch input:disabled + i { opacity: .45; }
.snapshot { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.snapshot-value { font-family: "Instrument Serif", Georgia, serif; font-size: 38px; margin: 14px 0 0; letter-spacing: -1px; }
.snapshot-value sup { font-size: 15px; vertical-align: top; position: relative; top: 7px; }
.snapshot > p { font-family: Georgia, serif; color: #657579; font-size: 10px; margin: 1px 0 10px; }
.trend { display: flex; align-items: center; gap: 6px; font-size: 9px; }
.trend span { color: var(--orange); font-size: 14px; }
.trend strong { color: var(--orange); }
.trend small { color: #7e898a; }
.source { margin: auto 0 0; border-top: 1px solid var(--line); padding-top: 14px; font-size: 8px; line-height: 1.6; color: #9aa3a2; }
.map-section { background: #e9efeb; padding: 30px 38px 22px; min-width: 0; overflow: hidden; }
.map-header { height: 58px; display: flex; justify-content: space-between; align-items: flex-start; }
.map-kicker { display: flex; align-items: center; gap: 7px; text-transform: uppercase; letter-spacing: 1.6px; font-size: 8px; color: #768383; }
.map-kicker span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.map-header h2 { font-family: "Instrument Serif", Georgia, serif; margin: 7px 0 0; font-size: 24px; font-weight: 400; letter-spacing: -.3px; }
.year-block { text-align: right; border-left: 1px solid var(--line); padding-left: 17px; }
.year-block span, .year-block strong { display: block; }
.year-block span { font-size: 8px; color: #849190; text-transform: uppercase; letter-spacing: 1.2px; }
.year-block .live-dot { display: inline-block; margin-right: 4px; }
.year-block strong { font-family: Georgia, serif; font-size: 13px; margin-top: 5px; }
.map-card { position: relative; width: 100%; height: auto; min-height: 0; aspect-ratio: 1200 / 580; background: #dfe9e5; border: 1px solid rgba(16,35,44,.13); overflow: hidden; box-shadow: 0 12px 35px rgba(28,54,56,.08); cursor: crosshair; }
#climateCanvas, #boundaryCanvas { position: absolute; width: 100%; height: 100%; inset: 0; }
#climateCanvas { image-rendering: auto; }
#boundaryCanvas { pointer-events: none; }
.map-controls { position: absolute; top: 16px; left: 16px; display: grid; background: rgba(248,248,242,.95); box-shadow: 0 5px 16px rgba(16,35,44,.12); }
.map-controls button { width: 35px; height: 35px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 18px; }
.map-controls button:last-child { border: 0; }
.map-controls svg { width: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; margin-top: 5px; }
.map-controls button.active { background: var(--ink); color: #fff; }
.map-controls button.active svg { stroke: #fff; }
.selection-box { position: absolute; z-index: 8; border: 1px solid #fff; background: rgba(24,135,123,.24); box-shadow: 0 0 0 1px rgba(16,35,44,.45); pointer-events: none; }
.map-card.selecting { cursor: crosshair; }
.map-card.panning { cursor: grabbing; }
.location-card { position: absolute; z-index: 12; top: 20px; right: 20px; width: 228px; max-height: calc(100% - 32px); overflow: auto; background: rgba(250,249,244,.96); padding: 17px; box-shadow: 0 12px 28px rgba(16,35,44,.19); backdrop-filter: blur(8px); touch-action: none; }
.close-card { position: absolute; right: 7px; top: 5px; border: 0; background: transparent; font-size: 18px; color: #7d8989; cursor: pointer; }
.location-label { display: flex; justify-content: space-between; padding-right: 12px; font-size: 7px; letter-spacing: 1.4px; text-transform: uppercase; color: #8a9695; cursor: move; user-select: none; }
.location-label small { font-size: 6px; letter-spacing: .7px; opacity: .7; }
.location-name { display: flex; gap: 7px; align-items: center; font-family: Georgia, serif; font-size: 13px; margin-top: 9px; }
.location-name > span { color: var(--orange); font-size: 8px; }
.location-coords { color: #84908f; font-size: 8px; margin: 4px 0 8px 15px; }
.local-time { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.local-time span { color: #7e8b8a; text-transform: uppercase; letter-spacing: .8px; font-size: 6px; }
.local-time strong { font: 12px Georgia, serif; }
.location-value { border-top: 1px solid var(--line); padding-top: 10px; font-family: "Instrument Serif", Georgia, serif; font-size: 31px; }
.local-time + .location-value { border-top: 0; }
.location-value sup { font-size: 12px; vertical-align: top; top: 6px; position: relative; }
.location-meta { display: flex; justify-content: space-between; align-items: center; font-size: 7px; color: #7f8d8b; }
.location-meta i { font-style: normal; color: var(--orange); font-weight: 700; }
.weather-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-top: 11px; }
.weather-grid > span { color: #83908f; text-transform: uppercase; letter-spacing: .5px; font-size: 6px; border-left: 1px solid var(--line); padding-left: 6px; }
.weather-grid > span:first-child { border: 0; padding-left: 0; }
.weather-grid strong { display: block; color: var(--ink); font: 10px Georgia, serif; text-transform: none; letter-spacing: 0; margin-top: 3px; }
.weather-source { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 6px; color: #7c8888; }
.weather-source .live-dot { width: 4px; height: 4px; flex: 0 0 auto; }
.weather-source.error .live-dot { background: #a5a9a3; }
.mini-scale { height: 3px; margin-top: 13px; background: linear-gradient(90deg,#253f75,#45a0ac,#ead06d,#e85b34,#8c1e31); }
.hover-tip { position: absolute; z-index: 10; pointer-events: none; transform: translate(13px, -48px); background: #10232c; color: #fff; padding: 7px 9px; font-size: 10px; box-shadow: 0 5px 15px rgba(0,0,0,.2); }
.hover-tip strong { display: block; font-family: Georgia, serif; font-size: 13px; }
.hover-tip span { opacity: .65; font-size: 8px; }
.legend-panel { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(330px, 45%); background: rgba(250,249,244,.91); padding: 9px 12px 11px; backdrop-filter: blur(5px); }
.legend-labels { display: flex; justify-content: space-between; font-size: 7px; color: #59696a; margin-bottom: 6px; }
.legend-labels strong { text-transform: uppercase; letter-spacing: 1px; font-size: 7px; }
.legend-gradient { height: 5px; background: linear-gradient(90deg,#243c78,#2f88ad,#67c0a6,#f3dc77,#f49a4d,#d94833,#7c1830); }
.pan-controls { min-height: 48px; display: grid; grid-template-columns: 112px 1fr 1fr auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding: 7px 2px 5px; }
.pan-heading span, .pan-heading small { display: block; }
.pan-heading span { font: 9px Georgia, serif; }
.pan-heading small { color: #879493; font-size: 7px; margin-top: 3px; }
.pan-controls label { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; color: #758484; font-size: 7px; }
.pan-controls input { width: 100%; accent-color: var(--teal); cursor: ew-resize; }
.pan-controls input:disabled { opacity: .35; cursor: default; }
.pan-controls label:nth-of-type(2) input { cursor: ns-resize; }
.details-toggle { min-width: 75px; height: 29px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #f7f5ef; color: #748180; font-size: 7px; cursor: pointer; }
.details-toggle i { width: 5px; height: 5px; border-radius: 50%; background: #9ca6a5; }
.details-toggle.active { color: var(--ink); border-color: rgba(24,135,123,.4); }
.details-toggle.active i { background: var(--teal); }
.timeline { display: grid; grid-template-columns: 38px 1fr 122px; align-items: center; gap: 14px; height: 65px; padding: 5px 2px 0; }
.timeline > button { width: 34px; height: 34px; border: 1px solid var(--line); background: #f7f5ef; display: grid; place-items: center; cursor: pointer; }
.timeline > button svg { width: 14px; fill: var(--ink); stroke: none; }
.timeline-track { position: relative; }
.timeline-track input { width: 100%; height: 2px; accent-color: var(--orange); cursor: pointer; display: block; }
.year-ticks { display: flex; justify-content: space-between; font-size: 7px; color: #82908f; margin-top: 7px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); grid-row: 1 / 3; }
.timeline .now-button { width: 112px; height: 36px; border: 0; border-left: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 9px 1fr; padding: 0 0 0 13px; text-align: left; align-items: center; justify-items: start; }
.now-button strong { font-family: Georgia, serif; font-size: 9px; }
.now-button small { font-size: 7px; color: #889493; }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(8,20,25,.64); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { width: min(500px,100%); background: var(--paper); padding: 38px; position: relative; box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.modal-card > button { position: absolute; right: 15px; top: 10px; border: 0; background: none; font-size: 24px; cursor: pointer; }
.modal-card h2 { font: 400 37px/1.05 "Instrument Serif", Georgia, serif; margin: 14px 0 20px; }
.modal-card p { color: #647376; font: 13px/1.7 Georgia, serif; }
@media (max-width: 980px) {
:root { --sidebar: 285px; }
.topbar { grid-template-columns: 250px 1fr; padding: 0 20px; }
nav { display: none; }
.sidebar { padding: 32px 24px 22px; }
.map-section { padding: 25px 24px; }
.location-card { width: 190px; }
}
@media (max-width: 720px) {
.topbar { height: auto; min-height: 68px; grid-template-columns: 1fr auto; padding: 12px 16px; }
.search-wrap { position: absolute; top: 70px; left: 16px; right: 16px; width: auto; }
.top-actions .icon-button { display: none; }
main { display: block; padding-top: 58px; }
.sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
h1 { font-size: 48px; }
.intro { max-width: none; }
.source { margin-top: 28px; }
.map-section { padding: 24px 15px; }
.map-card { min-height: 0; height: auto; aspect-ratio: 1200 / 580; }
.location-card { top: 8px; right: 8px; width: 178px; max-height: calc(100% - 16px); padding: 11px; }
.legend-panel { width: 70%; }
.pan-controls { grid-template-columns: 78px 1fr auto; gap: 9px; }
.pan-controls label:nth-of-type(2) { display: none; }
.timeline { grid-template-columns: 36px 1fr; }
.timeline .now-button { display: none; }
}