contour-ds 1.7.2 → 1.9.0
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/README.md +244 -326
- package/dist/agent-cookbook.json +960 -0
- package/dist/agent-examples.json +65 -0
- package/dist/agent-map-wiring.json +152 -0
- package/dist/agent-rules.json +16 -0
- package/dist/build-manifest.json +344 -126
- package/dist/contour-wc-content.esm.js +1939 -0
- package/dist/contour-wc-content.esm.min.js +1 -0
- package/dist/contour-wc-core.esm.js +3724 -0
- package/dist/contour-wc-core.esm.min.js +1 -0
- package/dist/contour-wc-dashboard.esm.js +6986 -0
- package/dist/contour-wc-dashboard.esm.min.js +1 -0
- package/dist/contour-wc-data.esm.js +6572 -0
- package/dist/contour-wc-data.esm.min.js +1 -0
- package/dist/contour-wc-docs.esm.js +976 -0
- package/dist/contour-wc-docs.esm.min.js +1 -0
- package/dist/contour-wc-feedback.esm.js +1742 -0
- package/dist/contour-wc-feedback.esm.min.js +1 -0
- package/dist/contour-wc-forms.esm.js +2437 -0
- package/dist/contour-wc-forms.esm.min.js +1 -0
- package/dist/contour-wc-interaction.esm.js +1343 -0
- package/dist/contour-wc-interaction.esm.min.js +1 -0
- package/dist/contour-wc-layout.esm.js +845 -0
- package/dist/contour-wc-layout.esm.min.js +1 -0
- package/dist/contour-wc-map.esm.js +2411 -0
- package/dist/contour-wc-map.esm.min.js +1 -0
- package/dist/contour-wc-misc.esm.js +945 -0
- package/dist/contour-wc-misc.esm.min.js +1 -0
- package/dist/contour-wc-navigation.esm.js +2842 -0
- package/dist/contour-wc-navigation.esm.min.js +1 -0
- package/dist/contour-wc-ui.esm.js +6519 -0
- package/dist/contour-wc-ui.esm.min.js +1 -0
- package/dist/contour-wc.esm.js +14435 -5723
- package/dist/contour-wc.esm.min.js +1 -1
- package/dist/contour-wc.js +14436 -5725
- package/dist/contour-wc.min.js +1 -1
- package/dist/contour.a11y.json +402 -0
- package/dist/contour.code-snippets +4534 -0
- package/dist/contour.components.json +4870 -1222
- package/dist/contour.css +6672 -4711
- package/dist/contour.d.ts +753 -1085
- package/dist/contour.esm.js +440 -18
- package/dist/contour.esm.min.js +1 -1
- package/dist/contour.html-data.json +11343 -0
- package/dist/contour.js +440 -18
- package/dist/contour.min.css +1 -1
- package/dist/contour.min.js +1 -1
- package/dist/contour.react.d.ts +422 -0
- package/dist/contour.single.html +17 -0
- package/dist/contour.single.min.css +1 -0
- package/dist/contour.themes.json +56 -12
- package/dist/contour.tokens.json +1318 -1053
- package/dist/contour.vue.d.ts +420 -0
- package/dist/contour.web-types.json +11703 -0
- package/dist/custom-elements.json +36120 -0
- package/dist/docs/actions.md +16 -6
- package/dist/docs/affordances.md +21 -85
- package/dist/docs/apireference.md +9 -5
- package/dist/docs/colour.md +10 -4
- package/dist/docs/componentindex.md +9 -22
- package/dist/docs/data.md +39 -58
- package/dist/docs/docs.md +12 -7
- package/dist/docs/feedback.md +30 -12
- package/dist/docs/field.md +28 -13
- package/dist/docs/forms.md +35 -19
- package/dist/docs/index.json +70 -61
- package/dist/docs/install.md +12 -7
- package/dist/docs/landing.md +7 -4
- package/dist/docs/mapengine.md +30 -8
- package/dist/docs/motion.md +12 -6
- package/dist/docs/navigation.md +31 -7
- package/dist/docs/overlays.md +32 -25
- package/dist/docs/overview.md +3 -2
- package/dist/docs/patterns.md +20 -10
- package/dist/docs/playground.md +11 -4
- package/dist/docs/principles.md +8 -6
- package/dist/docs/recipes.md +117 -13
- package/dist/docs/space.md +10 -6
- package/dist/docs/status.md +13 -14
- package/dist/docs/surfaces.md +17 -22
- package/dist/docs/theming.md +18 -32
- package/dist/docs/type.md +12 -5
- package/dist/docs/webcomponents.md +75 -33
- package/dist/hljs.css +1 -20
- package/dist/map-chrome.mapbox.css +68 -92
- package/dist/map-chrome.maplibre.css +68 -92
- package/dist/registry/items/contour-core.json +2 -2
- package/dist/registry/items/contour-data.json +2 -2
- package/dist/registry/items/contour-docs.json +2 -2
- package/dist/registry/items/contour-landing.json +2 -2
- package/dist/registry/registry.json +8 -8
- package/dist/surfaces/contour-core.min.css +1 -1
- package/dist/surfaces/contour-data.min.css +1 -1
- package/dist/surfaces/contour-docs.min.css +1 -1
- package/dist/surfaces/contour-landing.min.css +1 -1
- package/dist/svg/icons.svg +367 -0
- package/dist/wc/behaviours.mjs +222 -192
- package/dist/wc/content.mjs +486 -142
- package/dist/wc/core.mjs +917 -395
- package/dist/wc/dashboard.mjs +252 -25
- package/dist/wc/data-chart.mjs +1333 -0
- package/dist/wc/data-export.mjs +391 -0
- package/dist/wc/data-gauge.mjs +779 -0
- package/dist/wc/data-geo.mjs +696 -0
- package/dist/wc/data-glyphs.mjs +133 -0
- package/dist/wc/data-legend.mjs +431 -0
- package/dist/wc/data-readout.mjs +227 -0
- package/dist/wc/data-series.mjs +1004 -0
- package/dist/wc/data-table.mjs +751 -0
- package/dist/wc/data.mjs +15 -3707
- package/dist/wc/docs.mjs +113 -19
- package/dist/wc/feedback.mjs +320 -116
- package/dist/wc/forms-controls.mjs +635 -0
- package/dist/wc/forms-field.mjs +547 -0
- package/dist/wc/forms-groups.mjs +347 -0
- package/dist/wc/forms-input.mjs +292 -0
- package/dist/wc/forms.mjs +10 -1122
- package/dist/wc/glyph.mjs +204 -0
- package/dist/wc/index.mjs +16 -7
- package/dist/wc/interaction.mjs +322 -75
- package/dist/wc/layout.mjs +100 -29
- package/dist/wc/map.mjs +888 -285
- package/dist/wc/misc.mjs +137 -26
- package/dist/wc/navigation-menu.mjs +735 -0
- package/dist/wc/navigation-shell.mjs +495 -0
- package/dist/wc/navigation-tree.mjs +995 -0
- package/dist/wc/navigation.mjs +9 -1636
- package/dist/wc/registration.mjs +1 -8
- package/dist/wc/shadow.mjs +285 -113
- package/dist/wc/states.mjs +75 -78
- package/dist/wc/svg.mjs +209 -34
- package/dist/wc/ui-atoms.mjs +608 -0
- package/dist/wc/ui-data.mjs +1404 -0
- package/dist/wc/ui-feedback.mjs +419 -0
- package/dist/wc/ui-inputs.mjs +1570 -0
- package/dist/wc/ui-menus.mjs +307 -0
- package/dist/wc/ui-overlays.mjs +1605 -0
- package/integrations/README.md +25 -5
- package/integrations/ai/CLAUDE.md +6 -3
- package/integrations/ai/COPILOT.md +14 -0
- package/integrations/ai/GEMINI.md +14 -0
- package/integrations/ai/WINDSURF.md +14 -0
- package/integrations/ai/v0-prompt.md +13 -1
- package/integrations/frameworks/README.md +235 -0
- package/integrations/native/README.md +0 -3
- package/integrations/native/style-dictionary.config.json +1 -1
- package/integrations/tailwind/contour-theme.css +71 -13
- package/integrations/validate-markup.mjs +172 -0
- package/package.json +103 -39
- package/dist/wc/ui.mjs +0 -3560
|
@@ -1,59 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
`.c-map-slot` themes the chrome Contour owns. A map engine paints a second
|
|
5
|
-
set of chrome over its own canvas — the zoom, compass and fullscreen cluster
|
|
6
|
-
— and that markup belongs to the engine, so it is not yours to rebuild. This
|
|
7
|
-
profile re-keys it onto Contour tokens instead, which is how one theme covers
|
|
8
|
-
both the system's controls and the engine's.
|
|
9
|
-
|
|
10
|
-
Load it after the system *and* after the engine's own stylesheet:
|
|
11
|
-
|
|
12
|
-
<link rel="stylesheet" href="src/css/ds.css" />
|
|
13
|
-
<link rel="stylesheet" href="…/maplibre-gl.css" />
|
|
14
|
-
<link rel="stylesheet" href="src/css/map-chrome.css" />
|
|
15
|
-
|
|
16
|
-
This file is deliberately the only one in `src/css/` that is **not** in a
|
|
17
|
-
cascade layer, and not `@import`ed by `ds.css`: the engine's sheet is
|
|
18
|
-
unlayered too, so a layered rule would lose to it whatever the link order,
|
|
19
|
-
and a sheet that must out-rule the engine cannot be baked into a bundle whose
|
|
20
|
-
layer order is fixed. It is also optional — a page with no map engine has no
|
|
21
|
-
reason to load it.
|
|
22
|
-
|
|
23
|
-
It sets surface, edge, radius and glyph colour, and never geometry or layout:
|
|
24
|
-
the cluster's size and position are the engine's business, and moving them is
|
|
25
|
-
how a re-key breaks a map.
|
|
26
|
-
|
|
27
|
-
Both vendor namespaces are selected here because the two engines emit the same
|
|
28
|
-
shape. MapLibre GL and Mapbox GL JS both wrap a control cluster in
|
|
29
|
-
`.…-ctrl`, and both nest its buttons in `.…-ctrl-group`; the prefixes differ
|
|
30
|
-
by history alone — MapLibre forked Mapbox GL JS and renamed the namespace. One
|
|
31
|
-
file therefore serves either engine. `build.mjs` publishes it under both engine
|
|
32
|
-
names (`map-chrome.maplibre.css`, `map-chrome.mapbox.css`) as byte-for-byte
|
|
33
|
-
copies, so a host links the name its map library answers to; they are copies
|
|
34
|
-
rather than two hand-kept files because there is exactly one thing to say here
|
|
35
|
-
and two names to say it under.
|
|
36
|
-
|
|
37
|
-
What this file must never reach is the Mapbox logo. The logo is
|
|
38
|
-
`a.mapboxgl-ctrl-logo` and carries no `.mapboxgl-ctrl` class, so the cluster
|
|
39
|
-
rule here cannot paint it — which is as well, because Mapbox's terms forbid
|
|
40
|
-
styling the logo at all. The attribution wrapper *is* a cluster
|
|
41
|
-
(`.mapboxgl-ctrl.mapboxgl-ctrl-attrib`), so it does take the theme: Mapbox
|
|
42
|
-
permits adjusting the attribution's colour and size and requires it to stay
|
|
43
|
-
legible, which is why the text token below is `--color-text` on
|
|
44
|
-
`--color-surface-1` — the same pair the system uses for body text everywhere
|
|
45
|
-
else, not a colour chosen for the map.
|
|
46
|
-
|
|
47
|
-
The tokens this re-key is made of, and the control names each engine ships,
|
|
48
|
-
are listed in `map-chrome-contract.json`. Its `gap` entry belongs to Contour's
|
|
49
|
-
own cluster — `.c-map-slot__controls` spaces its controls with
|
|
50
|
-
`--space-3xs` — and is not applied here, because a vendor cluster already lays
|
|
51
|
-
itself out and this profile does not move anything.
|
|
52
|
-
========================================================================= */
|
|
53
|
-
|
|
54
|
-
/* Cluster surface + edge. The wrapper and the group both carry a background in
|
|
55
|
-
the vendor sheet, so both are re-keyed; the group's ring shadow is re-keyed
|
|
56
|
-
to the border token rather than removed, keeping the engine's depth cue. */
|
|
1
|
+
/* CONTOUR — map chrome: re-key engine chrome onto Contour tokens; optional, loads after ds.css and the engine sheet. */
|
|
2
|
+
|
|
3
|
+
/* Cluster surface + edge: wrapper and group re-keyed; group ring shadow kept as border token for depth cue. */
|
|
57
4
|
.maplibregl-ctrl,
|
|
58
5
|
.mapboxgl-ctrl,
|
|
59
6
|
.maplibregl-ctrl-group,
|
|
@@ -80,19 +27,16 @@
|
|
|
80
27
|
box-shadow: var(--shadow-xs);
|
|
81
28
|
}
|
|
82
29
|
|
|
83
|
-
/* Button separators */
|
|
84
30
|
.maplibregl-ctrl-group button + button,
|
|
85
31
|
.mapboxgl-ctrl-group button + button {
|
|
86
32
|
border-top-color: var(--color-border);
|
|
87
33
|
}
|
|
88
34
|
|
|
89
|
-
/* Pressed state */
|
|
90
35
|
.maplibregl-ctrl button:not(:disabled):active,
|
|
91
36
|
.mapboxgl-ctrl button:not(:disabled):active {
|
|
92
37
|
background: var(--color-surface-2);
|
|
93
38
|
}
|
|
94
39
|
|
|
95
|
-
/* Buttons */
|
|
96
40
|
.maplibregl-ctrl button,
|
|
97
41
|
.mapboxgl-ctrl button {
|
|
98
42
|
color: var(--color-text-muted);
|
|
@@ -125,7 +69,6 @@
|
|
|
125
69
|
outline: none;
|
|
126
70
|
}
|
|
127
71
|
|
|
128
|
-
/* Popups */
|
|
129
72
|
.maplibregl-popup-content,
|
|
130
73
|
.mapboxgl-popup-content {
|
|
131
74
|
background: var(--color-surface-1);
|
|
@@ -230,7 +173,6 @@
|
|
|
230
173
|
font-size: var(--type-micro);
|
|
231
174
|
}
|
|
232
175
|
|
|
233
|
-
/* Markers */
|
|
234
176
|
.maplibregl-marker,
|
|
235
177
|
.mapboxgl-marker {
|
|
236
178
|
color: var(--color-primary);
|
|
@@ -238,24 +180,8 @@
|
|
|
238
180
|
|
|
239
181
|
/* User location dot stays the engine's accent; nothing to re-key. */
|
|
240
182
|
|
|
241
|
-
/* Neutral icons
|
|
242
|
-
colour follows the theme (text-muted at rest, text-strong on hover) instead
|
|
243
|
-
of the engine's hardcoded #333/#fff fills. State-coloured icons (geolocate
|
|
244
|
-
active/error, globe-enabled, terrain-enabled) keep their vendor background
|
|
245
|
-
image and its state colour. */
|
|
183
|
+
/* Neutral icons re-keyed via mask (theme text colour); state icons use Contour semantic colours (primary/danger) so states stay distinguishable. globe/terrain keep vendor background. */
|
|
246
184
|
/* maplibre neutral icons — re-keyed to Contour tokens via mask */
|
|
247
|
-
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
|
|
248
|
-
background-image: none;
|
|
249
|
-
background-color: var(--color-text-muted);
|
|
250
|
-
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E");
|
|
251
|
-
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E");
|
|
252
|
-
-webkit-mask-size: contain;
|
|
253
|
-
mask-size: contain;
|
|
254
|
-
-webkit-mask-repeat: no-repeat;
|
|
255
|
-
mask-repeat: no-repeat;
|
|
256
|
-
-webkit-mask-position: 50%;
|
|
257
|
-
mask-position: 50%;
|
|
258
|
-
}
|
|
259
185
|
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out:hover .maplibregl-ctrl-icon {
|
|
260
186
|
background-color: var(--color-text-strong);
|
|
261
187
|
}
|
|
@@ -376,13 +302,13 @@
|
|
|
376
302
|
.maplibregl-ctrl button.maplibregl-ctrl-geolocate:hover .maplibregl-ctrl-icon {
|
|
377
303
|
background-color: var(--color-text-strong);
|
|
378
304
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
.
|
|
305
|
+
/* Geolocate states — re-keyed to Contour's semantic colours so the active
|
|
306
|
+
and error states stay distinguishable without the vendor's blue/red. */
|
|
307
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon {
|
|
382
308
|
background-image: none;
|
|
383
|
-
background-color: var(--color-
|
|
384
|
-
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg
|
|
385
|
-
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg
|
|
309
|
+
background-color: var(--color-primary);
|
|
310
|
+
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
311
|
+
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
386
312
|
-webkit-mask-size: contain;
|
|
387
313
|
mask-size: contain;
|
|
388
314
|
-webkit-mask-repeat: no-repeat;
|
|
@@ -390,6 +316,56 @@
|
|
|
390
316
|
-webkit-mask-position: 50%;
|
|
391
317
|
mask-position: 50%;
|
|
392
318
|
}
|
|
319
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active:hover .maplibregl-ctrl-icon {
|
|
320
|
+
background-color: var(--color-primary-hover);
|
|
321
|
+
}
|
|
322
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon {
|
|
323
|
+
background-image: none;
|
|
324
|
+
background-color: var(--color-danger);
|
|
325
|
+
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
326
|
+
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
327
|
+
-webkit-mask-size: contain;
|
|
328
|
+
mask-size: contain;
|
|
329
|
+
-webkit-mask-repeat: no-repeat;
|
|
330
|
+
mask-repeat: no-repeat;
|
|
331
|
+
-webkit-mask-position: 50%;
|
|
332
|
+
mask-position: 50%;
|
|
333
|
+
}
|
|
334
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error:hover .maplibregl-ctrl-icon {
|
|
335
|
+
background-color: var(--color-danger-hover);
|
|
336
|
+
}
|
|
337
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon {
|
|
338
|
+
background-image: none;
|
|
339
|
+
background-color: var(--color-primary);
|
|
340
|
+
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
341
|
+
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
342
|
+
-webkit-mask-size: contain;
|
|
343
|
+
mask-size: contain;
|
|
344
|
+
-webkit-mask-repeat: no-repeat;
|
|
345
|
+
mask-repeat: no-repeat;
|
|
346
|
+
-webkit-mask-position: 50%;
|
|
347
|
+
mask-position: 50%;
|
|
348
|
+
}
|
|
349
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background:hover .maplibregl-ctrl-icon {
|
|
350
|
+
background-color: var(--color-primary-hover);
|
|
351
|
+
}
|
|
352
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon {
|
|
353
|
+
background-image: none;
|
|
354
|
+
background-color: var(--color-danger);
|
|
355
|
+
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
356
|
+
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
357
|
+
-webkit-mask-size: contain;
|
|
358
|
+
mask-size: contain;
|
|
359
|
+
-webkit-mask-repeat: no-repeat;
|
|
360
|
+
mask-repeat: no-repeat;
|
|
361
|
+
-webkit-mask-position: 50%;
|
|
362
|
+
mask-position: 50%;
|
|
363
|
+
}
|
|
364
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error:hover .maplibregl-ctrl-icon {
|
|
365
|
+
background-color: var(--color-danger-hover);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* mapbox neutral icons — re-keyed to Contour tokens via mask */
|
|
393
369
|
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out:hover .mapboxgl-ctrl-icon {
|
|
394
370
|
background-color: var(--color-text-strong);
|
|
395
371
|
}
|
|
@@ -527,7 +503,7 @@
|
|
|
527
503
|
}
|
|
528
504
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon {
|
|
529
505
|
background-image: none;
|
|
530
|
-
background-color: var(--color-
|
|
506
|
+
background-color: var(--color-primary);
|
|
531
507
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%2333b5e5%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
532
508
|
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%2333b5e5%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
533
509
|
-webkit-mask-size: contain;
|
|
@@ -538,11 +514,11 @@
|
|
|
538
514
|
mask-position: 50%;
|
|
539
515
|
}
|
|
540
516
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active:hover .mapboxgl-ctrl-icon {
|
|
541
|
-
background-color: var(--color-
|
|
517
|
+
background-color: var(--color-primary-hover);
|
|
542
518
|
}
|
|
543
519
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon {
|
|
544
520
|
background-image: none;
|
|
545
|
-
background-color: var(--color-
|
|
521
|
+
background-color: var(--color-danger);
|
|
546
522
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23e58978%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
547
523
|
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23e58978%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
548
524
|
-webkit-mask-size: contain;
|
|
@@ -553,11 +529,11 @@
|
|
|
553
529
|
mask-position: 50%;
|
|
554
530
|
}
|
|
555
531
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error:hover .mapboxgl-ctrl-icon {
|
|
556
|
-
background-color: var(--color-
|
|
532
|
+
background-color: var(--color-danger-hover);
|
|
557
533
|
}
|
|
558
534
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon {
|
|
559
535
|
background-image: none;
|
|
560
|
-
background-color: var(--color-
|
|
536
|
+
background-color: var(--color-primary);
|
|
561
537
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%2333b5e5%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%20display%3D%22none%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
562
538
|
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%2333b5e5%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%20display%3D%22none%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
563
539
|
-webkit-mask-size: contain;
|
|
@@ -568,11 +544,11 @@
|
|
|
568
544
|
mask-position: 50%;
|
|
569
545
|
}
|
|
570
546
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background:hover .mapboxgl-ctrl-icon {
|
|
571
|
-
background-color: var(--color-
|
|
547
|
+
background-color: var(--color-primary-hover);
|
|
572
548
|
}
|
|
573
549
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon {
|
|
574
550
|
background-image: none;
|
|
575
|
-
background-color: var(--color-
|
|
551
|
+
background-color: var(--color-danger);
|
|
576
552
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23e54e33%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%20display%3D%22none%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
577
553
|
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23e54e33%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%20display%3D%22none%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
578
554
|
-webkit-mask-size: contain;
|
|
@@ -583,7 +559,7 @@
|
|
|
583
559
|
mask-position: 50%;
|
|
584
560
|
}
|
|
585
561
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error:hover .mapboxgl-ctrl-icon {
|
|
586
|
-
background-color: var(--color-
|
|
562
|
+
background-color: var(--color-danger-hover);
|
|
587
563
|
}
|
|
588
564
|
|
|
589
565
|
.maplibregl-ctrl-attrib-button {
|
|
@@ -1,59 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
`.c-map-slot` themes the chrome Contour owns. A map engine paints a second
|
|
5
|
-
set of chrome over its own canvas — the zoom, compass and fullscreen cluster
|
|
6
|
-
— and that markup belongs to the engine, so it is not yours to rebuild. This
|
|
7
|
-
profile re-keys it onto Contour tokens instead, which is how one theme covers
|
|
8
|
-
both the system's controls and the engine's.
|
|
9
|
-
|
|
10
|
-
Load it after the system *and* after the engine's own stylesheet:
|
|
11
|
-
|
|
12
|
-
<link rel="stylesheet" href="src/css/ds.css" />
|
|
13
|
-
<link rel="stylesheet" href="…/maplibre-gl.css" />
|
|
14
|
-
<link rel="stylesheet" href="src/css/map-chrome.css" />
|
|
15
|
-
|
|
16
|
-
This file is deliberately the only one in `src/css/` that is **not** in a
|
|
17
|
-
cascade layer, and not `@import`ed by `ds.css`: the engine's sheet is
|
|
18
|
-
unlayered too, so a layered rule would lose to it whatever the link order,
|
|
19
|
-
and a sheet that must out-rule the engine cannot be baked into a bundle whose
|
|
20
|
-
layer order is fixed. It is also optional — a page with no map engine has no
|
|
21
|
-
reason to load it.
|
|
22
|
-
|
|
23
|
-
It sets surface, edge, radius and glyph colour, and never geometry or layout:
|
|
24
|
-
the cluster's size and position are the engine's business, and moving them is
|
|
25
|
-
how a re-key breaks a map.
|
|
26
|
-
|
|
27
|
-
Both vendor namespaces are selected here because the two engines emit the same
|
|
28
|
-
shape. MapLibre GL and Mapbox GL JS both wrap a control cluster in
|
|
29
|
-
`.…-ctrl`, and both nest its buttons in `.…-ctrl-group`; the prefixes differ
|
|
30
|
-
by history alone — MapLibre forked Mapbox GL JS and renamed the namespace. One
|
|
31
|
-
file therefore serves either engine. `build.mjs` publishes it under both engine
|
|
32
|
-
names (`map-chrome.maplibre.css`, `map-chrome.mapbox.css`) as byte-for-byte
|
|
33
|
-
copies, so a host links the name its map library answers to; they are copies
|
|
34
|
-
rather than two hand-kept files because there is exactly one thing to say here
|
|
35
|
-
and two names to say it under.
|
|
36
|
-
|
|
37
|
-
What this file must never reach is the Mapbox logo. The logo is
|
|
38
|
-
`a.mapboxgl-ctrl-logo` and carries no `.mapboxgl-ctrl` class, so the cluster
|
|
39
|
-
rule here cannot paint it — which is as well, because Mapbox's terms forbid
|
|
40
|
-
styling the logo at all. The attribution wrapper *is* a cluster
|
|
41
|
-
(`.mapboxgl-ctrl.mapboxgl-ctrl-attrib`), so it does take the theme: Mapbox
|
|
42
|
-
permits adjusting the attribution's colour and size and requires it to stay
|
|
43
|
-
legible, which is why the text token below is `--color-text` on
|
|
44
|
-
`--color-surface-1` — the same pair the system uses for body text everywhere
|
|
45
|
-
else, not a colour chosen for the map.
|
|
46
|
-
|
|
47
|
-
The tokens this re-key is made of, and the control names each engine ships,
|
|
48
|
-
are listed in `map-chrome-contract.json`. Its `gap` entry belongs to Contour's
|
|
49
|
-
own cluster — `.c-map-slot__controls` spaces its controls with
|
|
50
|
-
`--space-3xs` — and is not applied here, because a vendor cluster already lays
|
|
51
|
-
itself out and this profile does not move anything.
|
|
52
|
-
========================================================================= */
|
|
53
|
-
|
|
54
|
-
/* Cluster surface + edge. The wrapper and the group both carry a background in
|
|
55
|
-
the vendor sheet, so both are re-keyed; the group's ring shadow is re-keyed
|
|
56
|
-
to the border token rather than removed, keeping the engine's depth cue. */
|
|
1
|
+
/* CONTOUR — map chrome: re-key engine chrome onto Contour tokens; optional, loads after ds.css and the engine sheet. */
|
|
2
|
+
|
|
3
|
+
/* Cluster surface + edge: wrapper and group re-keyed; group ring shadow kept as border token for depth cue. */
|
|
57
4
|
.maplibregl-ctrl,
|
|
58
5
|
.mapboxgl-ctrl,
|
|
59
6
|
.maplibregl-ctrl-group,
|
|
@@ -80,19 +27,16 @@
|
|
|
80
27
|
box-shadow: var(--shadow-xs);
|
|
81
28
|
}
|
|
82
29
|
|
|
83
|
-
/* Button separators */
|
|
84
30
|
.maplibregl-ctrl-group button + button,
|
|
85
31
|
.mapboxgl-ctrl-group button + button {
|
|
86
32
|
border-top-color: var(--color-border);
|
|
87
33
|
}
|
|
88
34
|
|
|
89
|
-
/* Pressed state */
|
|
90
35
|
.maplibregl-ctrl button:not(:disabled):active,
|
|
91
36
|
.mapboxgl-ctrl button:not(:disabled):active {
|
|
92
37
|
background: var(--color-surface-2);
|
|
93
38
|
}
|
|
94
39
|
|
|
95
|
-
/* Buttons */
|
|
96
40
|
.maplibregl-ctrl button,
|
|
97
41
|
.mapboxgl-ctrl button {
|
|
98
42
|
color: var(--color-text-muted);
|
|
@@ -125,7 +69,6 @@
|
|
|
125
69
|
outline: none;
|
|
126
70
|
}
|
|
127
71
|
|
|
128
|
-
/* Popups */
|
|
129
72
|
.maplibregl-popup-content,
|
|
130
73
|
.mapboxgl-popup-content {
|
|
131
74
|
background: var(--color-surface-1);
|
|
@@ -230,7 +173,6 @@
|
|
|
230
173
|
font-size: var(--type-micro);
|
|
231
174
|
}
|
|
232
175
|
|
|
233
|
-
/* Markers */
|
|
234
176
|
.maplibregl-marker,
|
|
235
177
|
.mapboxgl-marker {
|
|
236
178
|
color: var(--color-primary);
|
|
@@ -238,24 +180,8 @@
|
|
|
238
180
|
|
|
239
181
|
/* User location dot stays the engine's accent; nothing to re-key. */
|
|
240
182
|
|
|
241
|
-
/* Neutral icons
|
|
242
|
-
colour follows the theme (text-muted at rest, text-strong on hover) instead
|
|
243
|
-
of the engine's hardcoded #333/#fff fills. State-coloured icons (geolocate
|
|
244
|
-
active/error, globe-enabled, terrain-enabled) keep their vendor background
|
|
245
|
-
image and its state colour. */
|
|
183
|
+
/* Neutral icons re-keyed via mask (theme text colour); state icons use Contour semantic colours (primary/danger) so states stay distinguishable. globe/terrain keep vendor background. */
|
|
246
184
|
/* maplibre neutral icons — re-keyed to Contour tokens via mask */
|
|
247
|
-
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
|
|
248
|
-
background-image: none;
|
|
249
|
-
background-color: var(--color-text-muted);
|
|
250
|
-
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E");
|
|
251
|
-
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E");
|
|
252
|
-
-webkit-mask-size: contain;
|
|
253
|
-
mask-size: contain;
|
|
254
|
-
-webkit-mask-repeat: no-repeat;
|
|
255
|
-
mask-repeat: no-repeat;
|
|
256
|
-
-webkit-mask-position: 50%;
|
|
257
|
-
mask-position: 50%;
|
|
258
|
-
}
|
|
259
185
|
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out:hover .maplibregl-ctrl-icon {
|
|
260
186
|
background-color: var(--color-text-strong);
|
|
261
187
|
}
|
|
@@ -376,13 +302,13 @@
|
|
|
376
302
|
.maplibregl-ctrl button.maplibregl-ctrl-geolocate:hover .maplibregl-ctrl-icon {
|
|
377
303
|
background-color: var(--color-text-strong);
|
|
378
304
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
.
|
|
305
|
+
/* Geolocate states — re-keyed to Contour's semantic colours so the active
|
|
306
|
+
and error states stay distinguishable without the vendor's blue/red. */
|
|
307
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon {
|
|
382
308
|
background-image: none;
|
|
383
|
-
background-color: var(--color-
|
|
384
|
-
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg
|
|
385
|
-
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg
|
|
309
|
+
background-color: var(--color-primary);
|
|
310
|
+
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
311
|
+
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
386
312
|
-webkit-mask-size: contain;
|
|
387
313
|
mask-size: contain;
|
|
388
314
|
-webkit-mask-repeat: no-repeat;
|
|
@@ -390,6 +316,56 @@
|
|
|
390
316
|
-webkit-mask-position: 50%;
|
|
391
317
|
mask-position: 50%;
|
|
392
318
|
}
|
|
319
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active:hover .maplibregl-ctrl-icon {
|
|
320
|
+
background-color: var(--color-primary-hover);
|
|
321
|
+
}
|
|
322
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon {
|
|
323
|
+
background-image: none;
|
|
324
|
+
background-color: var(--color-danger);
|
|
325
|
+
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
326
|
+
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
327
|
+
-webkit-mask-size: contain;
|
|
328
|
+
mask-size: contain;
|
|
329
|
+
-webkit-mask-repeat: no-repeat;
|
|
330
|
+
mask-repeat: no-repeat;
|
|
331
|
+
-webkit-mask-position: 50%;
|
|
332
|
+
mask-position: 50%;
|
|
333
|
+
}
|
|
334
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error:hover .maplibregl-ctrl-icon {
|
|
335
|
+
background-color: var(--color-danger-hover);
|
|
336
|
+
}
|
|
337
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon {
|
|
338
|
+
background-image: none;
|
|
339
|
+
background-color: var(--color-primary);
|
|
340
|
+
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
341
|
+
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
342
|
+
-webkit-mask-size: contain;
|
|
343
|
+
mask-size: contain;
|
|
344
|
+
-webkit-mask-repeat: no-repeat;
|
|
345
|
+
mask-repeat: no-repeat;
|
|
346
|
+
-webkit-mask-position: 50%;
|
|
347
|
+
mask-position: 50%;
|
|
348
|
+
}
|
|
349
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background:hover .maplibregl-ctrl-icon {
|
|
350
|
+
background-color: var(--color-primary-hover);
|
|
351
|
+
}
|
|
352
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon {
|
|
353
|
+
background-image: none;
|
|
354
|
+
background-color: var(--color-danger);
|
|
355
|
+
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
356
|
+
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E");
|
|
357
|
+
-webkit-mask-size: contain;
|
|
358
|
+
mask-size: contain;
|
|
359
|
+
-webkit-mask-repeat: no-repeat;
|
|
360
|
+
mask-repeat: no-repeat;
|
|
361
|
+
-webkit-mask-position: 50%;
|
|
362
|
+
mask-position: 50%;
|
|
363
|
+
}
|
|
364
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error:hover .maplibregl-ctrl-icon {
|
|
365
|
+
background-color: var(--color-danger-hover);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* mapbox neutral icons — re-keyed to Contour tokens via mask */
|
|
393
369
|
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out:hover .mapboxgl-ctrl-icon {
|
|
394
370
|
background-color: var(--color-text-strong);
|
|
395
371
|
}
|
|
@@ -527,7 +503,7 @@
|
|
|
527
503
|
}
|
|
528
504
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon {
|
|
529
505
|
background-image: none;
|
|
530
|
-
background-color: var(--color-
|
|
506
|
+
background-color: var(--color-primary);
|
|
531
507
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%2333b5e5%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
532
508
|
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%2333b5e5%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
533
509
|
-webkit-mask-size: contain;
|
|
@@ -538,11 +514,11 @@
|
|
|
538
514
|
mask-position: 50%;
|
|
539
515
|
}
|
|
540
516
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active:hover .mapboxgl-ctrl-icon {
|
|
541
|
-
background-color: var(--color-
|
|
517
|
+
background-color: var(--color-primary-hover);
|
|
542
518
|
}
|
|
543
519
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon {
|
|
544
520
|
background-image: none;
|
|
545
|
-
background-color: var(--color-
|
|
521
|
+
background-color: var(--color-danger);
|
|
546
522
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23e58978%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
547
523
|
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23e58978%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
548
524
|
-webkit-mask-size: contain;
|
|
@@ -553,11 +529,11 @@
|
|
|
553
529
|
mask-position: 50%;
|
|
554
530
|
}
|
|
555
531
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error:hover .mapboxgl-ctrl-icon {
|
|
556
|
-
background-color: var(--color-
|
|
532
|
+
background-color: var(--color-danger-hover);
|
|
557
533
|
}
|
|
558
534
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon {
|
|
559
535
|
background-image: none;
|
|
560
|
-
background-color: var(--color-
|
|
536
|
+
background-color: var(--color-primary);
|
|
561
537
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%2333b5e5%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%20display%3D%22none%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
562
538
|
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%2333b5e5%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%20display%3D%22none%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
563
539
|
-webkit-mask-size: contain;
|
|
@@ -568,11 +544,11 @@
|
|
|
568
544
|
mask-position: 50%;
|
|
569
545
|
}
|
|
570
546
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background:hover .mapboxgl-ctrl-icon {
|
|
571
|
-
background-color: var(--color-
|
|
547
|
+
background-color: var(--color-primary-hover);
|
|
572
548
|
}
|
|
573
549
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon {
|
|
574
550
|
background-image: none;
|
|
575
|
-
background-color: var(--color-
|
|
551
|
+
background-color: var(--color-danger);
|
|
576
552
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23e54e33%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%20display%3D%22none%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
577
553
|
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23e54e33%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1zm0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7z%22%2F%3E%3Ccircle%20id%3D%22dot%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%20display%3D%22none%22%2F%3E%3Cpath%20id%3D%22stroke%22%20d%3D%22M14%205l1%201-9%209-1-1%209-9z%22%20display%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
|
578
554
|
-webkit-mask-size: contain;
|
|
@@ -583,7 +559,7 @@
|
|
|
583
559
|
mask-position: 50%;
|
|
584
560
|
}
|
|
585
561
|
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error:hover .mapboxgl-ctrl-icon {
|
|
586
|
-
background-color: var(--color-
|
|
562
|
+
background-color: var(--color-danger-hover);
|
|
587
563
|
}
|
|
588
564
|
|
|
589
565
|
.maplibregl-ctrl-attrib-button {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "contour-core",
|
|
4
4
|
"type": "registry:style",
|
|
5
5
|
"title": "Contour core",
|
|
6
|
-
"description": "Contour core surface:
|
|
6
|
+
"description": "Contour core surface: 200.3 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
|
|
7
7
|
"registryDependencies": [],
|
|
8
8
|
"files": [
|
|
9
9
|
{
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"meta": {
|
|
36
36
|
"distribution": "pointer",
|
|
37
37
|
"selfContained": true,
|
|
38
|
-
"bundleBytes":
|
|
38
|
+
"bundleBytes": 205077,
|
|
39
39
|
"shared": [
|
|
40
40
|
{
|
|
41
41
|
"path": "contour.tokens.json",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "contour-data",
|
|
4
4
|
"type": "registry:style",
|
|
5
5
|
"title": "Contour data",
|
|
6
|
-
"description": "Contour data surface:
|
|
6
|
+
"description": "Contour data surface: 272.8 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
|
|
7
7
|
"registryDependencies": [],
|
|
8
8
|
"files": [
|
|
9
9
|
{
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"meta": {
|
|
36
36
|
"distribution": "pointer",
|
|
37
37
|
"selfContained": true,
|
|
38
|
-
"bundleBytes":
|
|
38
|
+
"bundleBytes": 279362,
|
|
39
39
|
"shared": [
|
|
40
40
|
{
|
|
41
41
|
"path": "contour.tokens.json",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "contour-docs",
|
|
4
4
|
"type": "registry:style",
|
|
5
5
|
"title": "Contour docs",
|
|
6
|
-
"description": "Contour docs surface:
|
|
6
|
+
"description": "Contour docs surface: 217.5 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
|
|
7
7
|
"registryDependencies": [],
|
|
8
8
|
"files": [
|
|
9
9
|
{
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"meta": {
|
|
36
36
|
"distribution": "pointer",
|
|
37
37
|
"selfContained": true,
|
|
38
|
-
"bundleBytes":
|
|
38
|
+
"bundleBytes": 222691,
|
|
39
39
|
"shared": [
|
|
40
40
|
{
|
|
41
41
|
"path": "contour.tokens.json",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "contour-landing",
|
|
4
4
|
"type": "registry:style",
|
|
5
5
|
"title": "Contour landing",
|
|
6
|
-
"description": "Contour landing surface:
|
|
6
|
+
"description": "Contour landing surface: 208.6 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
|
|
7
7
|
"registryDependencies": [],
|
|
8
8
|
"files": [
|
|
9
9
|
{
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"meta": {
|
|
36
36
|
"distribution": "pointer",
|
|
37
37
|
"selfContained": true,
|
|
38
|
-
"bundleBytes":
|
|
38
|
+
"bundleBytes": 213620,
|
|
39
39
|
"shared": [
|
|
40
40
|
{
|
|
41
41
|
"path": "contour.tokens.json",
|