@azohra/meteo.station 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +53 -0
- package/dist/air.d.ts +13 -0
- package/dist/air.js +76 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.js +4 -0
- package/dist/client/poll.d.ts +42 -0
- package/dist/client/poll.js +121 -0
- package/dist/client/stores.d.ts +46 -0
- package/dist/client/stores.js +128 -0
- package/dist/client/ticker.d.ts +4 -0
- package/dist/client/ticker.js +19 -0
- package/dist/contract.d.ts +381 -0
- package/dist/contract.js +143 -0
- package/dist/derive.d.ts +54 -0
- package/dist/derive.js +134 -0
- package/dist/display.d.ts +28 -0
- package/dist/display.js +27 -0
- package/dist/elements/elements/AirMatrixElement.d.ts +14 -0
- package/dist/elements/elements/AirMatrixElement.js +83 -0
- package/dist/elements/elements/CurrentConditionsElement.d.ts +9 -0
- package/dist/elements/elements/CurrentConditionsElement.js +52 -0
- package/dist/elements/elements/DailyPatternElement.d.ts +15 -0
- package/dist/elements/elements/DailyPatternElement.js +200 -0
- package/dist/elements/elements/DialElement.d.ts +9 -0
- package/dist/elements/elements/DialElement.js +128 -0
- package/dist/elements/elements/FreshnessBadgeElement.d.ts +8 -0
- package/dist/elements/elements/FreshnessBadgeElement.js +22 -0
- package/dist/elements/elements/SparklineElement.d.ts +9 -0
- package/dist/elements/elements/SparklineElement.js +74 -0
- package/dist/elements/elements/StationCardElement.d.ts +53 -0
- package/dist/elements/elements/StationCardElement.js +211 -0
- package/dist/elements/elements/StationFeedElement.d.ts +32 -0
- package/dist/elements/elements/StationFeedElement.js +215 -0
- package/dist/elements/elements/StationStripElement.d.ts +9 -0
- package/dist/elements/elements/StationStripElement.js +43 -0
- package/dist/elements/elements/StationTableElement.d.ts +18 -0
- package/dist/elements/elements/StationTableElement.js +102 -0
- package/dist/elements/elements/TrendChartElement.d.ts +10 -0
- package/dist/elements/elements/TrendChartElement.js +174 -0
- package/dist/elements/elements/WindArrowElement.d.ts +8 -0
- package/dist/elements/elements/WindArrowElement.js +14 -0
- package/dist/elements/elements/WindHistoryChartElement.d.ts +10 -0
- package/dist/elements/elements/WindHistoryChartElement.js +277 -0
- package/dist/elements/elements/WindRoseElement.d.ts +17 -0
- package/dist/elements/elements/WindRoseElement.js +106 -0
- package/dist/elements/elements/atoms.d.ts +48 -0
- package/dist/elements/elements/atoms.js +131 -0
- package/dist/elements/index.d.ts +48 -0
- package/dist/elements/index.js +57 -0
- package/dist/elements/lib/ambient.d.ts +15 -0
- package/dist/elements/lib/ambient.js +5 -0
- package/dist/elements/lib/attributes.js +21 -0
- package/dist/elements/lib/base.d.ts +45 -0
- package/dist/elements/lib/base.js +152 -0
- package/dist/elements/lib/context.js +28 -0
- package/dist/elements/lib/fragments.js +45 -0
- package/dist/elements/lib/h.js +35 -0
- package/dist/elements/register.d.ts +1 -0
- package/dist/elements/register.js +5 -0
- package/dist/endpoints.d.ts +5 -0
- package/dist/endpoints.js +10 -0
- package/dist/fixtures.d.ts +23 -0
- package/dist/fixtures.js +67 -0
- package/dist/format.d.ts +31 -0
- package/dist/format.js +82 -0
- package/dist/geometry.d.ts +84 -0
- package/dist/geometry.js +333 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +12 -0
- package/dist/instruments.d.ts +75 -0
- package/dist/instruments.js +173 -0
- package/dist/merge-current.d.ts +13 -0
- package/dist/merge-current.js +54 -0
- package/dist/react/components/AirMatrix.d.ts +11 -0
- package/dist/react/components/AirMatrix.js +82 -0
- package/dist/react/components/CurrentConditions.d.ts +17 -0
- package/dist/react/components/CurrentConditions.js +98 -0
- package/dist/react/components/DailyPattern.d.ts +19 -0
- package/dist/react/components/DailyPattern.js +212 -0
- package/dist/react/components/Dial.d.ts +17 -0
- package/dist/react/components/Dial.js +133 -0
- package/dist/react/components/FreshnessBadge.d.ts +10 -0
- package/dist/react/components/FreshnessBadge.js +20 -0
- package/dist/react/components/Sparkline.d.ts +17 -0
- package/dist/react/components/Sparkline.js +60 -0
- package/dist/react/components/StationCard.d.ts +46 -0
- package/dist/react/components/StationCard.js +140 -0
- package/dist/react/components/StationFeedProvider.d.ts +27 -0
- package/dist/react/components/StationFeedProvider.js +40 -0
- package/dist/react/components/StationStrip.d.ts +16 -0
- package/dist/react/components/StationStrip.js +84 -0
- package/dist/react/components/StationTable.d.ts +18 -0
- package/dist/react/components/StationTable.js +115 -0
- package/dist/react/components/TrendChart.d.ts +14 -0
- package/dist/react/components/TrendChart.js +150 -0
- package/dist/react/components/WindArrow.d.ts +7 -0
- package/dist/react/components/WindArrow.js +21 -0
- package/dist/react/components/WindHistoryChart.d.ts +18 -0
- package/dist/react/components/WindHistoryChart.js +278 -0
- package/dist/react/components/WindRose.d.ts +17 -0
- package/dist/react/components/WindRose.js +99 -0
- package/dist/react/components/atoms.d.ts +33 -0
- package/dist/react/components/atoms.js +136 -0
- package/dist/react/hooks/useFreshness.d.ts +6 -0
- package/dist/react/hooks/useFreshness.js +21 -0
- package/dist/react/hooks/usePolledJson.js +17 -0
- package/dist/react/hooks/useStation.d.ts +23 -0
- package/dist/react/hooks/useStation.js +42 -0
- package/dist/react/hooks/useStationCurrent.d.ts +23 -0
- package/dist/react/hooks/useStationCurrent.js +32 -0
- package/dist/react/hooks/useStationFeed.d.ts +22 -0
- package/dist/react/hooks/useStationFeed.js +28 -0
- package/dist/react/index.d.ts +20 -0
- package/dist/react/index.js +21 -0
- package/dist/react/lib/cells.js +29 -0
- package/dist/scene/air-matrix.js +71 -0
- package/dist/scene/atoms.js +102 -0
- package/dist/scene/card.js +54 -0
- package/dist/scene/chart.js +28 -0
- package/dist/scene/current.js +66 -0
- package/dist/scene/daily-pattern.js +81 -0
- package/dist/scene/dial.js +141 -0
- package/dist/scene/glyphs.js +24 -0
- package/dist/scene/rose.js +120 -0
- package/dist/scene/sparkline.js +73 -0
- package/dist/scene/strip.js +63 -0
- package/dist/scene/table.js +76 -0
- package/dist/scene/trend.js +160 -0
- package/dist/scene/wind-history.js +148 -0
- package/dist/scene/wind-plot.js +214 -0
- package/dist/server/adapter.d.ts +28 -0
- package/dist/server/adapter.js +32 -0
- package/dist/server/adapters/campbell.d.ts +112 -0
- package/dist/server/adapters/campbell.js +414 -0
- package/dist/server/adapters/tempest.d.ts +27 -0
- package/dist/server/adapters/tempest.js +137 -0
- package/dist/server/adapters/windnerd.d.ts +39 -0
- package/dist/server/adapters/windnerd.js +159 -0
- package/dist/server/config.d.ts +135 -0
- package/dist/server/config.js +57 -0
- package/dist/server/environment.d.ts +48 -0
- package/dist/server/environment.js +128 -0
- package/dist/server/feed.d.ts +31 -0
- package/dist/server/feed.js +216 -0
- package/dist/server/handler.d.ts +17 -0
- package/dist/server/handler.js +133 -0
- package/dist/server/index.d.ts +10 -0
- package/dist/server/index.js +10 -0
- package/dist/strings.d.ts +118 -0
- package/dist/strings.js +237 -0
- package/dist/windnerd.d.ts +5 -0
- package/dist/windnerd.js +25 -0
- package/package.json +97 -0
- package/schema/README.md +14 -0
- package/schema/example-current.json +48 -0
- package/schema/example-feed.json +147 -0
- package/schema/stationcurrent.schema.json +641 -0
- package/schema/stationfeed.schema.json +656 -0
- package/styles.css +1141 -0
package/styles.css
ADDED
|
@@ -0,0 +1,1141 @@
|
|
|
1
|
+
/* The default skin.
|
|
2
|
+
*
|
|
3
|
+
* Token convention, in two prefixes:
|
|
4
|
+
* - `--meteo-*` is the SHARED skin — surfaces, ink, muted text, borders,
|
|
5
|
+
* grid lines, the accent, the gap hatch, typography, radius, shadow, and
|
|
6
|
+
* the freshness states (live/aging/stale). Any meteo capability's
|
|
7
|
+
* components (wind today, forecast tomorrow) wear these.
|
|
8
|
+
* - `--meteo-wind-*` is genuinely wind-scoped — the lull–gust band fill, the mean
|
|
9
|
+
* trace, vanes, the inspection cursor, the meteo-band-0..4 ramp, and the
|
|
10
|
+
* rose's favorable/unfavorable judgment ring.
|
|
11
|
+
*
|
|
12
|
+
* Every colour rides a token with a light-theme fallback baked into the
|
|
13
|
+
* var() call, so components render sensibly with no wrapper at all. Wrap
|
|
14
|
+
* consumers' markup in .meteo-root to get the token set; override any token
|
|
15
|
+
* on any ancestor to retheme. Tokens are defined ONCE via light-dark(): the
|
|
16
|
+
* root declares `color-scheme: light dark`, so the system preference picks
|
|
17
|
+
* the arm, and a manual toggle is a one-line color-scheme pin via
|
|
18
|
+
* data-theme="dark" (or "light") on .meteo-root.
|
|
19
|
+
*
|
|
20
|
+
* The whole sheet lives in @layer meteo, so any unlayered consumer rule
|
|
21
|
+
* outranks it without specificity games.
|
|
22
|
+
*
|
|
23
|
+
* meteo-band-0..4 is a placeholder ramp — calm blue through green and amber to
|
|
24
|
+
* red. What a band means (flyable, marginal, nuked) and what colour it wears
|
|
25
|
+
* belong to the consumer. */
|
|
26
|
+
|
|
27
|
+
@layer meteo {
|
|
28
|
+
|
|
29
|
+
:where(.meteo-root) {
|
|
30
|
+
color-scheme: light dark;
|
|
31
|
+
--meteo-surface: light-dark(#ffffff, #10161d);
|
|
32
|
+
--meteo-surface-raised: light-dark(#f4f6f9, #212d3a);
|
|
33
|
+
--meteo-ink: light-dark(#17232e, #e7edf3);
|
|
34
|
+
--meteo-muted: light-dark(#62717f, #95a4b3);
|
|
35
|
+
--meteo-border: light-dark(#dbe2e9, #2b3844);
|
|
36
|
+
--meteo-grid: light-dark(#e5eaef, #28333e);
|
|
37
|
+
--meteo-accent: light-dark(#0f7490, #45c3e0);
|
|
38
|
+
--meteo-gap: light-dark(rgba(98, 113, 127, 0.5), rgba(149, 164, 179, 0.45));
|
|
39
|
+
--meteo-freshness-live: light-dark(#12813d, #34d399);
|
|
40
|
+
--meteo-freshness-aging: light-dark(#b45309, #fbbf24);
|
|
41
|
+
--meteo-freshness-stale: light-dark(#bb1d1d, #f87171);
|
|
42
|
+
--meteo-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
43
|
+
--meteo-radius: 12px;
|
|
44
|
+
/* The dark shadow is heavier: a dark card separates by depth, not tint. */
|
|
45
|
+
--meteo-shadow:
|
|
46
|
+
0 1px 2px light-dark(rgb(23 35 46 / 0.06), rgb(0 0 0 / 0.35)),
|
|
47
|
+
0 8px 24px light-dark(rgb(23 35 46 / 0.05), rgb(0 0 0 / 0.3));
|
|
48
|
+
--meteo-wind-band-fill: light-dark(rgba(15, 116, 144, 0.22), rgba(69, 195, 224, 0.22));
|
|
49
|
+
--meteo-wind-mean: light-dark(#0f7490, #45c3e0);
|
|
50
|
+
/* The day-over-day overlay: a muted, desaturated echo of the mean trace's
|
|
51
|
+
* own accent, so "today" always reads as the stronger line. */
|
|
52
|
+
--meteo-wind-compare: light-dark(#8a97a3, #6b7885);
|
|
53
|
+
--meteo-wind-vane: light-dark(#3b4a58, #b8c6d3);
|
|
54
|
+
--meteo-cursor: light-dark(#d97706, #f5a623);
|
|
55
|
+
/* The rose's judgment ring: green for a favorable direction sector, a
|
|
56
|
+
* muted red for the rest — quieter than the band ramp on purpose. */
|
|
57
|
+
--meteo-wind-favorable: light-dark(#2e9e63, #34d17b);
|
|
58
|
+
--meteo-wind-unfavorable: light-dark(#c98a80, #a06058);
|
|
59
|
+
--meteo-band-0: light-dark(#56a2cc, #5fb2e0);
|
|
60
|
+
--meteo-band-1: light-dark(#2e9e63, #34d17b);
|
|
61
|
+
--meteo-band-2: light-dark(#d9a013, #eab308);
|
|
62
|
+
--meteo-band-3: light-dark(#e2662c, #f4732c);
|
|
63
|
+
--meteo-band-4: light-dark(#c22727, #ef4444);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* A manual toggle beats the system preference by pinning the scheme
|
|
67
|
+
* light-dark() resolves against. */
|
|
68
|
+
:where(.meteo-root[data-theme="light"]) {
|
|
69
|
+
color-scheme: light;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where(.meteo-root[data-theme="dark"]) {
|
|
73
|
+
color-scheme: dark;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* ---------- shared ---------- */
|
|
77
|
+
|
|
78
|
+
.meteo-station-card,
|
|
79
|
+
.meteo-current,
|
|
80
|
+
.meteo-wind-chart,
|
|
81
|
+
.meteo-daily-pattern,
|
|
82
|
+
.meteo-daily-pattern-na,
|
|
83
|
+
.meteo-trend,
|
|
84
|
+
.meteo-station-table,
|
|
85
|
+
.meteo-wind-rose,
|
|
86
|
+
.meteo-wind-rose-na {
|
|
87
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
88
|
+
color: var(--meteo-ink, #17232e);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.meteo-wind-arrow {
|
|
92
|
+
display: inline-block;
|
|
93
|
+
vertical-align: -0.08em;
|
|
94
|
+
color: var(--meteo-accent, #0f7490);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* One voice for every caption-grade label: flank labels, summary terms,
|
|
98
|
+
* table headers. */
|
|
99
|
+
.meteo-microlabel {
|
|
100
|
+
font-size: 0.68rem;
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
text-transform: uppercase;
|
|
103
|
+
letter-spacing: 0.08em;
|
|
104
|
+
color: var(--meteo-muted, #62717f);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* ---------- freshness badge ---------- */
|
|
108
|
+
|
|
109
|
+
.meteo-freshness {
|
|
110
|
+
display: inline-flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: 0.4em;
|
|
113
|
+
padding: 0.15em 0.6em;
|
|
114
|
+
border-radius: 999px;
|
|
115
|
+
/* Tinted from the state colour itself so themed states stay paired. */
|
|
116
|
+
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
117
|
+
font-size: 0.75rem;
|
|
118
|
+
font-weight: 600;
|
|
119
|
+
letter-spacing: 0.02em;
|
|
120
|
+
color: var(--meteo-muted, #62717f);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.meteo-freshness-dot {
|
|
124
|
+
width: 8px;
|
|
125
|
+
height: 8px;
|
|
126
|
+
border-radius: 50%;
|
|
127
|
+
background: currentColor;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.meteo-freshness[data-freshness="live"] {
|
|
131
|
+
color: var(--meteo-freshness-live, #12813d);
|
|
132
|
+
}
|
|
133
|
+
.meteo-freshness[data-freshness="aging"] {
|
|
134
|
+
color: var(--meteo-freshness-aging, #b45309);
|
|
135
|
+
}
|
|
136
|
+
.meteo-freshness[data-freshness="stale"] {
|
|
137
|
+
color: var(--meteo-freshness-stale, #bb1d1d);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* ---------- text atoms ---------- */
|
|
141
|
+
|
|
142
|
+
/* Inline reading fragments; no layout opinions beyond inline display. */
|
|
143
|
+
|
|
144
|
+
.meteo-value,
|
|
145
|
+
.meteo-direction,
|
|
146
|
+
.meteo-updated,
|
|
147
|
+
.meteo-band-chip {
|
|
148
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
149
|
+
font-variant-numeric: tabular-nums;
|
|
150
|
+
font-feature-settings: "tnum";
|
|
151
|
+
color: var(--meteo-ink, #17232e);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* The unit hangs quieter beside the number, like the dial hub's unit line. */
|
|
155
|
+
.meteo-value .meteo-unit {
|
|
156
|
+
font-size: 0.72em;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
color: var(--meteo-muted, #62717f);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* A timestamp is context, not a reading — it speaks in the muted voice. */
|
|
162
|
+
.meteo-updated {
|
|
163
|
+
color: var(--meteo-muted, #62717f);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* Chip chrome mirrors the freshness badge: the band colour is the text and
|
|
167
|
+
* the background is tinted from it, so themed bands stay paired. The em-dash
|
|
168
|
+
* and calm chips (no data-band) keep the muted fallback; bands beyond 4 do
|
|
169
|
+
* too — the default ramp defines five colours, a consumer with more bands
|
|
170
|
+
* themes its own via [data-band] selectors. */
|
|
171
|
+
.meteo-band-chip {
|
|
172
|
+
display: inline-flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
padding: 0.15em 0.6em;
|
|
175
|
+
border-radius: 999px;
|
|
176
|
+
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
177
|
+
font-size: 0.75rem;
|
|
178
|
+
font-weight: 600;
|
|
179
|
+
letter-spacing: 0.02em;
|
|
180
|
+
font-variant-numeric: tabular-nums;
|
|
181
|
+
font-feature-settings: "tnum";
|
|
182
|
+
color: var(--meteo-muted, #62717f);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.meteo-band-chip[data-band="0"] { color: var(--meteo-band-0, #56a2cc); }
|
|
186
|
+
.meteo-band-chip[data-band="1"] { color: var(--meteo-band-1, #2e9e63); }
|
|
187
|
+
.meteo-band-chip[data-band="2"] { color: var(--meteo-band-2, #d9a013); }
|
|
188
|
+
.meteo-band-chip[data-band="3"] { color: var(--meteo-band-3, #e2662c); }
|
|
189
|
+
.meteo-band-chip[data-band="4"] { color: var(--meteo-band-4, #c22727); }
|
|
190
|
+
|
|
191
|
+
/* ---------- current conditions: the instrument ---------- */
|
|
192
|
+
|
|
193
|
+
.meteo-current {
|
|
194
|
+
display: flex;
|
|
195
|
+
flex-direction: column;
|
|
196
|
+
align-items: center;
|
|
197
|
+
gap: 0.35rem;
|
|
198
|
+
padding: 1rem;
|
|
199
|
+
background: var(--meteo-surface, #ffffff);
|
|
200
|
+
border: 1px solid var(--meteo-border, #dbe2e9);
|
|
201
|
+
border-radius: var(--meteo-radius, 12px);
|
|
202
|
+
box-shadow: var(--meteo-shadow, 0 1px 2px rgb(23 35 46 / 0.06), 0 8px 24px rgb(23 35 46 / 0.05));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* Wraps rather than overflows: LULL/dial/GUST needs more width than a
|
|
206
|
+
* narrow card can promise, and a flank spilling into whatever sits beside
|
|
207
|
+
* the card reads as a broken layout, not a compact one. */
|
|
208
|
+
.meteo-current-instrument {
|
|
209
|
+
display: flex;
|
|
210
|
+
flex-wrap: wrap;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
align-items: center;
|
|
213
|
+
gap: 1.1rem;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.meteo-current-flank {
|
|
217
|
+
display: flex;
|
|
218
|
+
flex-direction: column;
|
|
219
|
+
align-items: center;
|
|
220
|
+
gap: 0.15rem;
|
|
221
|
+
min-width: 3ch;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.meteo-current-flank strong {
|
|
225
|
+
font-size: 1.35rem;
|
|
226
|
+
font-weight: 700;
|
|
227
|
+
font-variant-numeric: tabular-nums;
|
|
228
|
+
font-feature-settings: "tnum";
|
|
229
|
+
color: var(--meteo-ink, #17232e);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.meteo-wind-dial-face {
|
|
233
|
+
fill: var(--meteo-surface-raised, #f4f6f9);
|
|
234
|
+
stroke: none;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* Radial shading over the face; the stop colours carry the tokens. */
|
|
238
|
+
.meteo-wind-dial-bezel-in {
|
|
239
|
+
stop-color: var(--meteo-surface-raised, #f4f6f9);
|
|
240
|
+
stop-opacity: 0;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.meteo-wind-dial-bezel-out {
|
|
244
|
+
stop-color: var(--meteo-ink, #17232e);
|
|
245
|
+
stop-opacity: 0.1;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.meteo-wind-dial-ring {
|
|
249
|
+
fill: none;
|
|
250
|
+
stroke: var(--meteo-border, #dbe2e9);
|
|
251
|
+
stroke-width: 1.5;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* The speed arc: the current reading's share of the dial scale, wearing the
|
|
255
|
+
* reading's band when thresholds grade it. */
|
|
256
|
+
.meteo-wind-dial-arc {
|
|
257
|
+
fill: none;
|
|
258
|
+
stroke: var(--meteo-accent, #0f7490);
|
|
259
|
+
stroke-width: 5.5;
|
|
260
|
+
stroke-linecap: round;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.meteo-wind-dial-arc.meteo-band-0 { stroke: var(--meteo-band-0, #56a2cc); }
|
|
264
|
+
.meteo-wind-dial-arc.meteo-band-1 { stroke: var(--meteo-band-1, #2e9e63); }
|
|
265
|
+
.meteo-wind-dial-arc.meteo-band-2 { stroke: var(--meteo-band-2, #d9a013); }
|
|
266
|
+
.meteo-wind-dial-arc.meteo-band-3 { stroke: var(--meteo-band-3, #e2662c); }
|
|
267
|
+
.meteo-wind-dial-arc.meteo-band-4 { stroke: var(--meteo-band-4, #c22727); }
|
|
268
|
+
|
|
269
|
+
.meteo-wind-dial-tick {
|
|
270
|
+
stroke: var(--meteo-muted, #62717f);
|
|
271
|
+
stroke-width: 1;
|
|
272
|
+
opacity: 0.55;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.meteo-wind-dial-tick-cardinal {
|
|
276
|
+
stroke: var(--meteo-ink, #17232e);
|
|
277
|
+
stroke-width: 2;
|
|
278
|
+
opacity: 0.9;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.meteo-wind-dial-letter {
|
|
282
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
283
|
+
font-size: 11px;
|
|
284
|
+
font-weight: 600;
|
|
285
|
+
fill: var(--meteo-muted, #62717f);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.meteo-wind-needle-blade {
|
|
289
|
+
fill: var(--meteo-accent, #0f7490);
|
|
290
|
+
stroke: none;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.meteo-wind-needle-counterweight {
|
|
294
|
+
fill: var(--meteo-accent, #0f7490);
|
|
295
|
+
stroke: none;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.meteo-wind-dial-hub {
|
|
299
|
+
fill: var(--meteo-surface-raised, #f4f6f9);
|
|
300
|
+
stroke: var(--meteo-border, #dbe2e9);
|
|
301
|
+
stroke-width: 1.5;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.meteo-wind-dial-speed {
|
|
305
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
306
|
+
font-size: 37px;
|
|
307
|
+
font-weight: 750;
|
|
308
|
+
font-variant-numeric: tabular-nums;
|
|
309
|
+
font-feature-settings: "tnum";
|
|
310
|
+
fill: var(--meteo-ink, #17232e);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.meteo-wind-dial-unit {
|
|
314
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
315
|
+
font-size: 10px;
|
|
316
|
+
fill: var(--meteo-muted, #62717f);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.meteo-wind-dial-reason {
|
|
320
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
321
|
+
font-size: 10.5px;
|
|
322
|
+
fill: var(--meteo-muted, #62717f);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.meteo-wind-dial-unavailable {
|
|
326
|
+
filter: grayscale(1);
|
|
327
|
+
opacity: 0.55;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.meteo-current-direction {
|
|
331
|
+
margin: 0;
|
|
332
|
+
font-size: 0.95rem;
|
|
333
|
+
font-variant-numeric: tabular-nums;
|
|
334
|
+
font-feature-settings: "tnum";
|
|
335
|
+
color: var(--meteo-ink, #17232e);
|
|
336
|
+
min-height: 1.4em;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.meteo-current[data-status="unavailable"] .meteo-current-direction {
|
|
340
|
+
color: var(--meteo-muted, #62717f);
|
|
341
|
+
font-style: italic;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.meteo-current-from-label {
|
|
345
|
+
color: var(--meteo-muted, #62717f);
|
|
346
|
+
font-size: 0.8em;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.meteo-current-temp {
|
|
350
|
+
margin: 0;
|
|
351
|
+
font-size: 0.85rem;
|
|
352
|
+
font-variant-numeric: tabular-nums;
|
|
353
|
+
font-feature-settings: "tnum";
|
|
354
|
+
color: var(--meteo-muted, #62717f);
|
|
355
|
+
min-height: 1.3em;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.meteo-current-footer {
|
|
359
|
+
margin: 0;
|
|
360
|
+
display: flex;
|
|
361
|
+
align-items: center;
|
|
362
|
+
gap: 0.6em;
|
|
363
|
+
font-size: 0.78rem;
|
|
364
|
+
color: var(--meteo-muted, #62717f);
|
|
365
|
+
font-variant-numeric: tabular-nums;
|
|
366
|
+
font-feature-settings: "tnum";
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* ---------- history chart ---------- */
|
|
370
|
+
|
|
371
|
+
.meteo-wind-chart,
|
|
372
|
+
.meteo-daily-pattern {
|
|
373
|
+
width: 100%;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.meteo-wind-chart-na,
|
|
377
|
+
.meteo-daily-pattern-na,
|
|
378
|
+
.meteo-trend-na,
|
|
379
|
+
.meteo-wind-rose-na {
|
|
380
|
+
padding: 0.75rem 1rem;
|
|
381
|
+
font-size: 0.85rem;
|
|
382
|
+
font-style: italic;
|
|
383
|
+
color: var(--meteo-muted, #62717f);
|
|
384
|
+
background: var(--meteo-surface-raised, #f4f6f9);
|
|
385
|
+
border: 1px dashed var(--meteo-border, #dbe2e9);
|
|
386
|
+
border-radius: var(--meteo-radius, 12px);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* Fixed minimum height so pinning and unpinning never moves the chart. The
|
|
390
|
+
* daily-pattern caption is static — no pin state — but shares the line so
|
|
391
|
+
* it never wears a different rhythm than the chart above it. */
|
|
392
|
+
.meteo-wind-chart-readout,
|
|
393
|
+
.meteo-daily-pattern-caption,
|
|
394
|
+
.meteo-trend-readout {
|
|
395
|
+
display: flex;
|
|
396
|
+
flex-wrap: wrap;
|
|
397
|
+
align-items: baseline;
|
|
398
|
+
gap: 0.35em 0.7em;
|
|
399
|
+
min-height: 1.5em;
|
|
400
|
+
margin-bottom: 0.35rem;
|
|
401
|
+
font-size: 0.82rem;
|
|
402
|
+
color: var(--meteo-muted, #62717f);
|
|
403
|
+
font-variant-numeric: tabular-nums;
|
|
404
|
+
font-feature-settings: "tnum";
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.meteo-wind-chart-readout strong,
|
|
408
|
+
.meteo-trend-readout strong {
|
|
409
|
+
color: var(--meteo-accent, #0f7490);
|
|
410
|
+
font-weight: 700;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.meteo-wind-chart-svg,
|
|
414
|
+
.meteo-daily-pattern-svg,
|
|
415
|
+
.meteo-trend-svg {
|
|
416
|
+
display: block;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.meteo-wind-chart-svg text,
|
|
420
|
+
.meteo-daily-pattern-svg text,
|
|
421
|
+
.meteo-trend-svg text {
|
|
422
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
423
|
+
font-size: 10.5px;
|
|
424
|
+
fill: var(--meteo-muted, #62717f);
|
|
425
|
+
font-variant-numeric: tabular-nums;
|
|
426
|
+
font-feature-settings: "tnum";
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.meteo-grid-line {
|
|
430
|
+
stroke: var(--meteo-grid, #e5eaef);
|
|
431
|
+
stroke-width: 1;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* Band zones: each band's territory tinted at a whisper behind the plot. */
|
|
435
|
+
.meteo-wind-zone {
|
|
436
|
+
stroke: none;
|
|
437
|
+
fill-opacity: 0.05;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.meteo-wind-zone.meteo-band-0 { fill: var(--meteo-band-0, #56a2cc); }
|
|
441
|
+
.meteo-wind-zone.meteo-band-1 { fill: var(--meteo-band-1, #2e9e63); }
|
|
442
|
+
.meteo-wind-zone.meteo-band-2 { fill: var(--meteo-band-2, #d9a013); }
|
|
443
|
+
.meteo-wind-zone.meteo-band-3 { fill: var(--meteo-band-3, #e2662c); }
|
|
444
|
+
.meteo-wind-zone.meteo-band-4 { fill: var(--meteo-band-4, #c22727); }
|
|
445
|
+
|
|
446
|
+
/* Threshold guides wear the band they open. */
|
|
447
|
+
.meteo-wind-threshold {
|
|
448
|
+
stroke: var(--meteo-muted, #62717f);
|
|
449
|
+
stroke-width: 1;
|
|
450
|
+
stroke-dasharray: 2 5;
|
|
451
|
+
opacity: 0.7;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.meteo-wind-threshold.meteo-band-0 { stroke: var(--meteo-band-0, #56a2cc); }
|
|
455
|
+
.meteo-wind-threshold.meteo-band-1 { stroke: var(--meteo-band-1, #2e9e63); }
|
|
456
|
+
.meteo-wind-threshold.meteo-band-2 { stroke: var(--meteo-band-2, #d9a013); }
|
|
457
|
+
.meteo-wind-threshold.meteo-band-3 { stroke: var(--meteo-band-3, #e2662c); }
|
|
458
|
+
.meteo-wind-threshold.meteo-band-4 { stroke: var(--meteo-band-4, #c22727); }
|
|
459
|
+
|
|
460
|
+
.meteo-wind-chart-svg text.meteo-wind-threshold-label {
|
|
461
|
+
font-size: 9px;
|
|
462
|
+
font-weight: 650;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.meteo-wind-threshold-label.meteo-band-0 { fill: var(--meteo-band-0, #56a2cc); }
|
|
466
|
+
.meteo-wind-threshold-label.meteo-band-1 { fill: var(--meteo-band-1, #2e9e63); }
|
|
467
|
+
.meteo-wind-threshold-label.meteo-band-2 { fill: var(--meteo-band-2, #d9a013); }
|
|
468
|
+
.meteo-wind-threshold-label.meteo-band-3 { fill: var(--meteo-band-3, #e2662c); }
|
|
469
|
+
.meteo-wind-threshold-label.meteo-band-4 { fill: var(--meteo-band-4, #c22727); }
|
|
470
|
+
|
|
471
|
+
.meteo-wind-guide {
|
|
472
|
+
stroke: var(--meteo-grid, #e5eaef);
|
|
473
|
+
stroke-width: 1;
|
|
474
|
+
stroke-dasharray: 1 4;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.meteo-wind-gap-hatch {
|
|
478
|
+
stroke: var(--meteo-gap, rgba(98, 113, 127, 0.5));
|
|
479
|
+
stroke-width: 1.25;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.meteo-wind-band {
|
|
483
|
+
fill: var(--meteo-wind-band-fill, rgba(15, 116, 144, 0.22));
|
|
484
|
+
stroke: none;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.meteo-wind-mean {
|
|
488
|
+
fill: none;
|
|
489
|
+
stroke: var(--meteo-wind-mean, #0f7490);
|
|
490
|
+
stroke-width: 3.5;
|
|
491
|
+
stroke-linejoin: round;
|
|
492
|
+
stroke-linecap: round;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.meteo-wind-mean-segment {
|
|
496
|
+
fill: none;
|
|
497
|
+
stroke-width: 3.5;
|
|
498
|
+
stroke-linecap: round;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.meteo-wind-mean-segment.meteo-band-0 { stroke: var(--meteo-band-0, #56a2cc); }
|
|
502
|
+
.meteo-wind-mean-segment.meteo-band-1 { stroke: var(--meteo-band-1, #2e9e63); }
|
|
503
|
+
.meteo-wind-mean-segment.meteo-band-2 { stroke: var(--meteo-band-2, #d9a013); }
|
|
504
|
+
.meteo-wind-mean-segment.meteo-band-3 { stroke: var(--meteo-band-3, #e2662c); }
|
|
505
|
+
.meteo-wind-mean-segment.meteo-band-4 { stroke: var(--meteo-band-4, #c22727); }
|
|
506
|
+
|
|
507
|
+
/* The day-over-day overlay: dashed and behind the main trace on purpose —
|
|
508
|
+
* "today" reads as the stronger, unbroken line. */
|
|
509
|
+
.meteo-wind-compare {
|
|
510
|
+
fill: none;
|
|
511
|
+
stroke: var(--meteo-wind-compare, #8a97a3);
|
|
512
|
+
stroke-width: 2;
|
|
513
|
+
stroke-linecap: round;
|
|
514
|
+
stroke-linejoin: round;
|
|
515
|
+
stroke-dasharray: 4 3;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.meteo-wind-calm-note {
|
|
519
|
+
font-size: 12px;
|
|
520
|
+
font-style: italic;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.meteo-wind-row-label {
|
|
524
|
+
font-size: 9px;
|
|
525
|
+
letter-spacing: 0.08em;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.meteo-wind-vane {
|
|
529
|
+
fill: none;
|
|
530
|
+
stroke: var(--meteo-wind-vane, #3b4a58);
|
|
531
|
+
stroke-width: 1.6;
|
|
532
|
+
stroke-linecap: round;
|
|
533
|
+
stroke-linejoin: round;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/* The persistent compass letter above every vane, and the persistent Avg
|
|
537
|
+
* number below it — both small, tabular, and quieter than the vane row's
|
|
538
|
+
* own "TO" caption; text.meteo-wind-chart-svg's base rule already sets
|
|
539
|
+
* font-family/fill, so these only carry the size and number-friendly tabular
|
|
540
|
+
* figures the value row wants. */
|
|
541
|
+
.meteo-wind-vane-label {
|
|
542
|
+
font-size: 9px;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.meteo-wind-vane-value {
|
|
546
|
+
font-size: 9px;
|
|
547
|
+
font-variant-numeric: tabular-nums;
|
|
548
|
+
font-feature-settings: "tnum";
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.meteo-cursor {
|
|
552
|
+
stroke: var(--meteo-cursor, #d97706);
|
|
553
|
+
stroke-width: 1;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.meteo-cursor-dot {
|
|
557
|
+
fill: var(--meteo-cursor, #d97706);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.meteo-hit {
|
|
561
|
+
cursor: crosshair;
|
|
562
|
+
/* A vertical swipe over the chart must stay a scroll. */
|
|
563
|
+
touch-action: pan-y;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/* ---------- sparkline ---------- */
|
|
567
|
+
|
|
568
|
+
/* The history chart at word size. Inline content (a table cell, a
|
|
569
|
+
* sentence), so it carries display/vertical-align; the trace is a 1.5px
|
|
570
|
+
* whisper where the big chart's mean is a 3.5px voice, so it cannot reuse
|
|
571
|
+
* .meteo-wind-mean / .meteo-wind-mean-segment. Colours all ride the existing tokens. */
|
|
572
|
+
|
|
573
|
+
.meteo-sparkline {
|
|
574
|
+
display: inline-block;
|
|
575
|
+
vertical-align: middle;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/* The em-dash placeholder holds the exact box the glyph would, so a station
|
|
579
|
+
* going quiet never twitches the row's layout. */
|
|
580
|
+
.meteo-sparkline-na {
|
|
581
|
+
display: inline-flex;
|
|
582
|
+
align-items: center;
|
|
583
|
+
justify-content: center;
|
|
584
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
585
|
+
font-size: 0.85rem;
|
|
586
|
+
color: var(--meteo-muted, #62717f);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* The lull–gust band behind the trace, in the big chart's fill. */
|
|
590
|
+
.meteo-sparkline-band {
|
|
591
|
+
fill: var(--meteo-wind-band-fill, rgba(15, 116, 144, 0.22));
|
|
592
|
+
stroke: none;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/* The average trace: the mean line's colour at sparkline weight. */
|
|
596
|
+
.meteo-sparkline-line {
|
|
597
|
+
fill: none;
|
|
598
|
+
stroke: var(--meteo-wind-mean, #0f7490);
|
|
599
|
+
stroke-width: 1.5;
|
|
600
|
+
stroke-linejoin: round;
|
|
601
|
+
stroke-linecap: round;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/* A one-sample run between gaps: still a measurement, drawn as a dot. */
|
|
605
|
+
.meteo-sparkline-dot {
|
|
606
|
+
fill: var(--meteo-wind-mean, #0f7490);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.meteo-sparkline-dot.meteo-band-0 { fill: var(--meteo-band-0, #56a2cc); }
|
|
610
|
+
.meteo-sparkline-dot.meteo-band-1 { fill: var(--meteo-band-1, #2e9e63); }
|
|
611
|
+
.meteo-sparkline-dot.meteo-band-2 { fill: var(--meteo-band-2, #d9a013); }
|
|
612
|
+
.meteo-sparkline-dot.meteo-band-3 { fill: var(--meteo-band-3, #e2662c); }
|
|
613
|
+
.meteo-sparkline-dot.meteo-band-4 { fill: var(--meteo-band-4, #c22727); }
|
|
614
|
+
|
|
615
|
+
/* Per-segment grading when thresholds are given — the meteo-band-N pattern
|
|
616
|
+
* at sparkline weight. */
|
|
617
|
+
.meteo-sparkline-segment {
|
|
618
|
+
fill: none;
|
|
619
|
+
stroke: var(--meteo-wind-mean, #0f7490);
|
|
620
|
+
stroke-width: 1.5;
|
|
621
|
+
stroke-linecap: round;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.meteo-sparkline-segment.meteo-band-0 { stroke: var(--meteo-band-0, #56a2cc); }
|
|
625
|
+
.meteo-sparkline-segment.meteo-band-1 { stroke: var(--meteo-band-1, #2e9e63); }
|
|
626
|
+
.meteo-sparkline-segment.meteo-band-2 { stroke: var(--meteo-band-2, #d9a013); }
|
|
627
|
+
.meteo-sparkline-segment.meteo-band-3 { stroke: var(--meteo-band-3, #e2662c); }
|
|
628
|
+
.meteo-sparkline-segment.meteo-band-4 { stroke: var(--meteo-band-4, #c22727); }
|
|
629
|
+
|
|
630
|
+
/* ---------- trend chart ---------- */
|
|
631
|
+
|
|
632
|
+
.meteo-trend {
|
|
633
|
+
width: 100%;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/* The trace speaks in the mean line's voice, a step quieter — a trend is a
|
|
637
|
+
* background fact, not the wind. */
|
|
638
|
+
.meteo-trend-line {
|
|
639
|
+
fill: none;
|
|
640
|
+
stroke: var(--meteo-wind-mean, #0f7490);
|
|
641
|
+
stroke-width: 2.5;
|
|
642
|
+
stroke-linejoin: round;
|
|
643
|
+
stroke-linecap: round;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
/* A one-sample run between gaps: still a measurement, drawn as a dot. */
|
|
647
|
+
.meteo-trend-dot {
|
|
648
|
+
fill: var(--meteo-wind-mean, #0f7490);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/* ---------- rose ---------- */
|
|
652
|
+
|
|
653
|
+
/* flex, not inline-flex: the rose's own SVG is fixed-size, but the rose
|
|
654
|
+
* sits in a card sized by its consumer, same as .meteo-current. inline-flex
|
|
655
|
+
* shrank this to the SVG's width and left it hugging the card's left edge,
|
|
656
|
+
* with the rest of the card empty. */
|
|
657
|
+
.meteo-wind-rose {
|
|
658
|
+
display: flex;
|
|
659
|
+
flex-direction: column;
|
|
660
|
+
align-items: center;
|
|
661
|
+
gap: 0.15rem;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.meteo-wind-rose-svg {
|
|
665
|
+
display: block;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.meteo-wind-rose-grid {
|
|
669
|
+
fill: none;
|
|
670
|
+
stroke: var(--meteo-grid, #e5eaef);
|
|
671
|
+
stroke-width: 1;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/* The judgment ring: favorable arcs paint over the unfavorable circle. The
|
|
675
|
+
* ring judges direction; the petals report distribution. */
|
|
676
|
+
.meteo-wind-rose-ring-unfavorable {
|
|
677
|
+
fill: none;
|
|
678
|
+
stroke: var(--meteo-wind-unfavorable, #c98a80);
|
|
679
|
+
stroke-width: 3;
|
|
680
|
+
opacity: 0.55;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.meteo-wind-rose-ring-favorable {
|
|
684
|
+
fill: none;
|
|
685
|
+
stroke: var(--meteo-wind-favorable, #2e9e63);
|
|
686
|
+
stroke-width: 3;
|
|
687
|
+
stroke-linecap: butt;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.meteo-wind-rose-tick {
|
|
691
|
+
stroke: var(--meteo-muted, #62717f);
|
|
692
|
+
stroke-width: 1;
|
|
693
|
+
opacity: 0.35;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.meteo-wind-rose-letter {
|
|
697
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
698
|
+
font-size: 12.5px;
|
|
699
|
+
font-weight: 650;
|
|
700
|
+
fill: var(--meteo-ink, #17232e);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.meteo-wind-rose-ring-label {
|
|
704
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
705
|
+
font-size: 8.5px;
|
|
706
|
+
fill: var(--meteo-muted, #62717f);
|
|
707
|
+
font-variant-numeric: tabular-nums;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.meteo-wind-rose-petal {
|
|
711
|
+
fill: var(--meteo-accent, #0f7490);
|
|
712
|
+
fill-opacity: 0.85;
|
|
713
|
+
stroke: color-mix(in srgb, var(--meteo-accent, #0f7490) 72%, black);
|
|
714
|
+
stroke-width: 1;
|
|
715
|
+
stroke-linejoin: round;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.meteo-wind-rose-petal.meteo-band-0 {
|
|
719
|
+
fill: var(--meteo-band-0, #56a2cc);
|
|
720
|
+
stroke: color-mix(in srgb, var(--meteo-band-0, #56a2cc) 72%, black);
|
|
721
|
+
}
|
|
722
|
+
.meteo-wind-rose-petal.meteo-band-1 {
|
|
723
|
+
fill: var(--meteo-band-1, #2e9e63);
|
|
724
|
+
stroke: color-mix(in srgb, var(--meteo-band-1, #2e9e63) 72%, black);
|
|
725
|
+
}
|
|
726
|
+
.meteo-wind-rose-petal.meteo-band-2 {
|
|
727
|
+
fill: var(--meteo-band-2, #d9a013);
|
|
728
|
+
stroke: color-mix(in srgb, var(--meteo-band-2, #d9a013) 72%, black);
|
|
729
|
+
}
|
|
730
|
+
.meteo-wind-rose-petal.meteo-band-3 {
|
|
731
|
+
fill: var(--meteo-band-3, #e2662c);
|
|
732
|
+
stroke: color-mix(in srgb, var(--meteo-band-3, #e2662c) 72%, black);
|
|
733
|
+
}
|
|
734
|
+
.meteo-wind-rose-petal.meteo-band-4 {
|
|
735
|
+
fill: var(--meteo-band-4, #c22727);
|
|
736
|
+
stroke: color-mix(in srgb, var(--meteo-band-4, #c22727) 72%, black);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.meteo-wind-rose-hub {
|
|
740
|
+
fill: var(--meteo-surface, #ffffff);
|
|
741
|
+
stroke: var(--meteo-border, #dbe2e9);
|
|
742
|
+
stroke-width: 1;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.meteo-wind-rose-dot {
|
|
746
|
+
fill: var(--meteo-muted, #62717f);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/* The calm share is a caption, not hub fine print. */
|
|
750
|
+
.meteo-wind-rose-calm {
|
|
751
|
+
margin: 0;
|
|
752
|
+
font-size: 0.8rem;
|
|
753
|
+
font-weight: 600;
|
|
754
|
+
color: var(--meteo-muted, #62717f);
|
|
755
|
+
font-variant-numeric: tabular-nums;
|
|
756
|
+
font-feature-settings: "tnum";
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/* ---------- station table ---------- */
|
|
760
|
+
|
|
761
|
+
.meteo-station-table {
|
|
762
|
+
background: var(--meteo-surface, #ffffff);
|
|
763
|
+
border: 1px solid var(--meteo-border, #dbe2e9);
|
|
764
|
+
border-radius: var(--meteo-radius, 12px);
|
|
765
|
+
overflow: hidden;
|
|
766
|
+
font-size: 0.88rem;
|
|
767
|
+
box-shadow: var(--meteo-shadow, 0 1px 2px rgb(23 35 46 / 0.06), 0 8px 24px rgb(23 35 46 / 0.05));
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.meteo-station-table-row {
|
|
771
|
+
display: grid;
|
|
772
|
+
grid-template-columns: minmax(140px, 1.7fr) 0.9fr 0.7fr 0.7fr 1.2fr 1fr 1.2fr;
|
|
773
|
+
gap: 0.5rem;
|
|
774
|
+
align-items: center;
|
|
775
|
+
padding: 0.55rem 0.9rem;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.meteo-station-table-head {
|
|
779
|
+
background: var(--meteo-surface-raised, #f4f6f9);
|
|
780
|
+
border-bottom: 1px solid var(--meteo-border, #dbe2e9);
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.meteo-station-table-body .meteo-station-table-row + .meteo-station-table-row {
|
|
784
|
+
border-top: 1px solid var(--meteo-grid, #e5eaef);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.meteo-station-table-station {
|
|
788
|
+
display: flex;
|
|
789
|
+
flex-direction: column;
|
|
790
|
+
gap: 0.1rem;
|
|
791
|
+
min-width: 0;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.meteo-station-table-station strong {
|
|
795
|
+
font-weight: 650;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.meteo-station-table-station a {
|
|
799
|
+
color: var(--meteo-accent, #0f7490);
|
|
800
|
+
text-decoration: none;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
.meteo-station-table-station a:hover {
|
|
804
|
+
text-decoration: underline;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.meteo-station-table-station small {
|
|
808
|
+
font-size: 0.72rem;
|
|
809
|
+
color: var(--meteo-muted, #62717f);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.meteo-station-table-wind strong {
|
|
813
|
+
font-size: 1.4rem;
|
|
814
|
+
font-weight: 750;
|
|
815
|
+
font-variant-numeric: tabular-nums;
|
|
816
|
+
font-feature-settings: "tnum";
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.meteo-station-table-wind small {
|
|
820
|
+
margin-left: 0.3em;
|
|
821
|
+
font-size: 0.7rem;
|
|
822
|
+
color: var(--meteo-muted, #62717f);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.meteo-station-table-lull,
|
|
826
|
+
.meteo-station-table-gust,
|
|
827
|
+
.meteo-station-table-from,
|
|
828
|
+
.meteo-station-table-temp {
|
|
829
|
+
font-variant-numeric: tabular-nums;
|
|
830
|
+
font-feature-settings: "tnum";
|
|
831
|
+
font-weight: 600;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.meteo-station-table-updated {
|
|
835
|
+
display: flex;
|
|
836
|
+
flex-direction: column;
|
|
837
|
+
align-items: flex-start;
|
|
838
|
+
gap: 0.15rem;
|
|
839
|
+
font-variant-numeric: tabular-nums;
|
|
840
|
+
font-feature-settings: "tnum";
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
/* Reason words span every data column so the row keeps its geometry. */
|
|
844
|
+
.meteo-station-table-reason {
|
|
845
|
+
grid-column: 2 / -1;
|
|
846
|
+
color: var(--meteo-muted, #62717f);
|
|
847
|
+
font-style: italic;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
@media (max-width: 560px) {
|
|
851
|
+
.meteo-station-table-row {
|
|
852
|
+
grid-template-columns: minmax(110px, 1.4fr) 0.9fr 0.7fr 0.7fr 1.1fr;
|
|
853
|
+
}
|
|
854
|
+
.meteo-station-table-temp,
|
|
855
|
+
.meteo-station-table-updated,
|
|
856
|
+
.meteo-station-table-head span:nth-child(6),
|
|
857
|
+
.meteo-station-table-head span:nth-child(7) {
|
|
858
|
+
display: none;
|
|
859
|
+
}
|
|
860
|
+
.meteo-station-table-reason {
|
|
861
|
+
display: block;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
/* ---------- station card ---------- */
|
|
866
|
+
|
|
867
|
+
.meteo-station-card {
|
|
868
|
+
display: flex;
|
|
869
|
+
flex-direction: column;
|
|
870
|
+
gap: 0.9rem;
|
|
871
|
+
padding: 1.1rem 1.25rem 1.25rem;
|
|
872
|
+
background: var(--meteo-surface, #ffffff);
|
|
873
|
+
border: 1px solid var(--meteo-border, #dbe2e9);
|
|
874
|
+
border-radius: var(--meteo-radius, 12px);
|
|
875
|
+
box-shadow: var(--meteo-shadow, 0 1px 2px rgb(23 35 46 / 0.06), 0 8px 24px rgb(23 35 46 / 0.05));
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/* The card supplies the chrome; the instrument inside sheds its own. */
|
|
879
|
+
.meteo-station-card .meteo-current {
|
|
880
|
+
border: none;
|
|
881
|
+
padding: 0.25rem 0 0;
|
|
882
|
+
background: transparent;
|
|
883
|
+
box-shadow: none;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/* The header is a raised strip across the card's full width. */
|
|
887
|
+
.meteo-station-card-header {
|
|
888
|
+
display: flex;
|
|
889
|
+
align-items: flex-start;
|
|
890
|
+
justify-content: space-between;
|
|
891
|
+
gap: 0.75rem;
|
|
892
|
+
margin: -1.1rem -1.25rem 0;
|
|
893
|
+
padding: 0.8rem 1.25rem;
|
|
894
|
+
background: var(--meteo-surface-raised, #f4f6f9);
|
|
895
|
+
border-bottom: 1px solid var(--meteo-border, #dbe2e9);
|
|
896
|
+
border-radius: var(--meteo-radius, 12px) var(--meteo-radius, 12px) 0 0;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.meteo-station-card-name {
|
|
900
|
+
margin: 0;
|
|
901
|
+
font-size: 1.3rem;
|
|
902
|
+
font-weight: 700;
|
|
903
|
+
letter-spacing: -0.01em;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.meteo-station-card-name a {
|
|
907
|
+
color: inherit;
|
|
908
|
+
text-decoration: none;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.meteo-station-card-name a:hover {
|
|
912
|
+
color: var(--meteo-accent, #0f7490);
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.meteo-station-card-meta {
|
|
916
|
+
margin: 0.15rem 0 0;
|
|
917
|
+
font-size: 0.78rem;
|
|
918
|
+
color: var(--meteo-muted, #62717f);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
.meteo-summary {
|
|
922
|
+
display: flex;
|
|
923
|
+
flex-wrap: wrap;
|
|
924
|
+
gap: 0.4rem 1.4rem;
|
|
925
|
+
margin: 0;
|
|
926
|
+
padding-top: 0.7rem;
|
|
927
|
+
border-top: 1px solid var(--meteo-grid, #e5eaef);
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.meteo-summary-item dd {
|
|
931
|
+
margin: 0.1rem 0 0;
|
|
932
|
+
font-size: 0.88rem;
|
|
933
|
+
font-weight: 700;
|
|
934
|
+
font-variant-numeric: tabular-nums;
|
|
935
|
+
font-feature-settings: "tnum";
|
|
936
|
+
color: var(--meteo-ink, #17232e);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/* ---------- air matrix ---------- */
|
|
940
|
+
|
|
941
|
+
.meteo-air {
|
|
942
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
943
|
+
color: var(--meteo-ink, #17232e);
|
|
944
|
+
background: var(--meteo-surface, #ffffff);
|
|
945
|
+
border: 1px solid var(--meteo-border, #dbe2e9);
|
|
946
|
+
border-radius: var(--meteo-radius, 12px);
|
|
947
|
+
overflow: hidden;
|
|
948
|
+
box-shadow: var(--meteo-shadow, 0 1px 2px rgb(23 35 46 / 0.06), 0 8px 24px rgb(23 35 46 / 0.05));
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/* The trigger is the whole top strip; the live summary rides beside the
|
|
952
|
+
* title so the fold never hides whether anything is happening. */
|
|
953
|
+
.meteo-air-trigger {
|
|
954
|
+
display: flex;
|
|
955
|
+
flex-wrap: wrap;
|
|
956
|
+
align-items: baseline;
|
|
957
|
+
gap: 0.35em 0.9em;
|
|
958
|
+
width: 100%;
|
|
959
|
+
padding: 0.7rem 0.9rem;
|
|
960
|
+
border: none;
|
|
961
|
+
background: var(--meteo-surface-raised, #f4f6f9);
|
|
962
|
+
color: inherit;
|
|
963
|
+
font: inherit;
|
|
964
|
+
text-align: left;
|
|
965
|
+
cursor: pointer;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.meteo-air[data-expanded="true"] .meteo-air-trigger {
|
|
969
|
+
border-bottom: 1px solid var(--meteo-border, #dbe2e9);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/* Disclosure caret drawn from the border colour; rotates open. */
|
|
973
|
+
.meteo-air-trigger::before {
|
|
974
|
+
content: "";
|
|
975
|
+
align-self: center;
|
|
976
|
+
width: 0.45em;
|
|
977
|
+
height: 0.45em;
|
|
978
|
+
border-right: 2px solid var(--meteo-muted, #62717f);
|
|
979
|
+
border-bottom: 2px solid var(--meteo-muted, #62717f);
|
|
980
|
+
transform: rotate(-45deg);
|
|
981
|
+
transition: transform 120ms ease;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.meteo-air[data-expanded="true"] .meteo-air-trigger::before {
|
|
985
|
+
transform: rotate(45deg);
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.meteo-air-title {
|
|
989
|
+
font-size: 0.82rem;
|
|
990
|
+
font-weight: 700;
|
|
991
|
+
letter-spacing: 0.01em;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.meteo-air-summary {
|
|
995
|
+
font-size: 0.78rem;
|
|
996
|
+
color: var(--meteo-muted, #62717f);
|
|
997
|
+
font-variant-numeric: tabular-nums;
|
|
998
|
+
font-feature-settings: "tnum";
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
.meteo-air-panel {
|
|
1002
|
+
padding: 0.25rem 0.9rem 0.7rem;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.meteo-air-row {
|
|
1006
|
+
display: grid;
|
|
1007
|
+
gap: 0.5rem;
|
|
1008
|
+
align-items: baseline;
|
|
1009
|
+
padding: 0.35rem 0;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.meteo-air-matrix .meteo-air-row + .meteo-air-row {
|
|
1013
|
+
border-top: 1px solid var(--meteo-grid, #e5eaef);
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.meteo-air-head {
|
|
1017
|
+
padding-top: 0.5rem;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
/* Row labels speak in the shared micro-label voice; the unit hangs off the
|
|
1021
|
+
* label so cells hold bare numbers. */
|
|
1022
|
+
.meteo-air-label {
|
|
1023
|
+
font-size: 0.78rem;
|
|
1024
|
+
font-weight: 600;
|
|
1025
|
+
color: var(--meteo-ink, #17232e);
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
.meteo-air-label small {
|
|
1029
|
+
margin-left: 0.4em;
|
|
1030
|
+
font-size: 0.68rem;
|
|
1031
|
+
font-weight: 500;
|
|
1032
|
+
color: var(--meteo-muted, #62717f);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
.meteo-air-cell {
|
|
1036
|
+
font-size: 0.85rem;
|
|
1037
|
+
font-weight: 600;
|
|
1038
|
+
font-variant-numeric: tabular-nums;
|
|
1039
|
+
font-feature-settings: "tnum";
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
.meteo-air-note {
|
|
1043
|
+
margin: 0.6rem 0 0;
|
|
1044
|
+
font-size: 0.76rem;
|
|
1045
|
+
font-style: italic;
|
|
1046
|
+
color: var(--meteo-muted, #62717f);
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
/* ---------- station strip ---------- */
|
|
1050
|
+
|
|
1051
|
+
/* One station, one line. Geometry is fixed per station: absent values print
|
|
1052
|
+
* the em dash in place and only a capability the station lacks omits a cell
|
|
1053
|
+
* — a strip stands alone, with no fleet column grid to hold. min-height
|
|
1054
|
+
* keeps the unavailable arm the same height as a reading. */
|
|
1055
|
+
.meteo-strip {
|
|
1056
|
+
display: flex;
|
|
1057
|
+
align-items: center;
|
|
1058
|
+
gap: 1.1rem;
|
|
1059
|
+
min-height: 2.6rem;
|
|
1060
|
+
padding: 0.4rem 0.9rem;
|
|
1061
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
1062
|
+
font-size: 0.88rem;
|
|
1063
|
+
color: var(--meteo-ink, #17232e);
|
|
1064
|
+
background: var(--meteo-surface, #ffffff);
|
|
1065
|
+
border: 1px solid var(--meteo-border, #dbe2e9);
|
|
1066
|
+
border-radius: var(--meteo-radius, 12px);
|
|
1067
|
+
box-shadow: var(--meteo-shadow, 0 1px 2px rgb(23 35 46 / 0.06), 0 8px 24px rgb(23 35 46 / 0.05));
|
|
1068
|
+
font-variant-numeric: tabular-nums;
|
|
1069
|
+
font-feature-settings: "tnum";
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/* The name is the one cell allowed to give ground: it ellipsizes so the
|
|
1073
|
+
* reading cells never wrap the line. */
|
|
1074
|
+
.meteo-strip-station {
|
|
1075
|
+
flex: 1;
|
|
1076
|
+
min-width: 0;
|
|
1077
|
+
overflow: hidden;
|
|
1078
|
+
text-overflow: ellipsis;
|
|
1079
|
+
white-space: nowrap;
|
|
1080
|
+
font-weight: 650;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
.meteo-strip-station a {
|
|
1084
|
+
color: var(--meteo-accent, #0f7490);
|
|
1085
|
+
text-decoration: none;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.meteo-strip-station a:hover {
|
|
1089
|
+
text-decoration: underline;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.meteo-strip-wind {
|
|
1093
|
+
white-space: nowrap;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
.meteo-strip-wind strong {
|
|
1097
|
+
font-size: 1.15rem;
|
|
1098
|
+
font-weight: 750;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.meteo-strip-wind small {
|
|
1102
|
+
margin-left: 0.3em;
|
|
1103
|
+
font-size: 0.7rem;
|
|
1104
|
+
color: var(--meteo-muted, #62717f);
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/* Lull and gust wear the shared micro-label voice: on a headerless line the
|
|
1108
|
+
* bare numbers would be ambiguous. */
|
|
1109
|
+
.meteo-strip-lull,
|
|
1110
|
+
.meteo-strip-gust {
|
|
1111
|
+
display: inline-flex;
|
|
1112
|
+
align-items: baseline;
|
|
1113
|
+
gap: 0.35em;
|
|
1114
|
+
font-weight: 600;
|
|
1115
|
+
white-space: nowrap;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.meteo-strip-from,
|
|
1119
|
+
.meteo-strip-temp {
|
|
1120
|
+
font-weight: 600;
|
|
1121
|
+
white-space: nowrap;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
.meteo-strip-updated {
|
|
1125
|
+
display: inline-flex;
|
|
1126
|
+
align-items: center;
|
|
1127
|
+
gap: 0.5em;
|
|
1128
|
+
margin-left: auto;
|
|
1129
|
+
font-size: 0.78rem;
|
|
1130
|
+
color: var(--meteo-muted, #62717f);
|
|
1131
|
+
white-space: nowrap;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/* Reason words stand in for the reading cells; the held min-height keeps an
|
|
1135
|
+
* outage the same size as a reading. */
|
|
1136
|
+
.meteo-strip-reason {
|
|
1137
|
+
color: var(--meteo-muted, #62717f);
|
|
1138
|
+
font-style: italic;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
} /* @layer meteo */
|