@telepath-computer/television 1.5.10 → 1.6.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/dist/THIRD-PARTY-NOTICES.txt +701 -0
- package/dist/cli.cjs +9035 -596
- package/dist/onboarding/tv-guide/welcome.html +14 -4
- package/dist/skills/television/SKILL.md +39 -33
- package/dist/skills/television/resources.md +4 -4
- package/dist/skills/television/templates.md +77 -0
- package/dist/skills/television/theming.md +31 -17
- package/dist/templates/calendar/README.md +17 -0
- package/dist/{skills/tv-tasks → templates/calendar}/THIRD-PARTY-NOTICES.txt +22 -22
- package/dist/templates/calendar/calendar-attendees.js +131 -0
- package/dist/templates/calendar/calendar-event.js +22 -0
- package/dist/templates/calendar/calendar-motion.js +273 -0
- package/dist/templates/calendar/calendar-page.js +403 -0
- package/dist/templates/calendar/calendar-time-axis.js +32 -0
- package/dist/templates/calendar/calendar-week.js +711 -0
- package/dist/templates/calendar/data.json +3 -0
- package/dist/templates/calendar/icon.svg +1 -0
- package/dist/templates/calendar/index.html +27 -0
- package/dist/templates/calendar/manifest.json +148 -0
- package/dist/templates/calendar/styles.css +771 -0
- package/dist/templates/checklist/README.md +45 -0
- package/dist/templates/checklist/THIRD-PARTY-NOTICES.txt +29 -0
- package/dist/templates/checklist/data.json +1 -0
- package/dist/templates/checklist/icon.svg +8 -0
- package/dist/templates/checklist/icons.css +61 -0
- package/dist/templates/checklist/index.html +47 -0
- package/dist/templates/checklist/manifest.json +49 -0
- package/dist/templates/checklist/model.d.ts +30 -0
- package/dist/templates/checklist/model.js +60 -0
- package/dist/templates/checklist/page.js +425 -0
- package/dist/templates/checklist/styles.css +206 -0
- package/dist/templates/document/README.md +55 -0
- package/dist/templates/document/THIRD-PARTY-NOTICES.txt +1080 -0
- package/dist/templates/document/data.json +3 -0
- package/dist/templates/document/editor.css +1 -0
- package/dist/templates/document/editor.js +37 -0
- package/dist/templates/document/icon.svg +6 -0
- package/dist/templates/document/index.html +29 -0
- package/dist/templates/document/manifest.json +22 -0
- package/dist/templates/document/page.js +190 -0
- package/dist/templates/document/styles.css +76 -0
- package/dist/templates/map/README.md +85 -0
- package/dist/templates/map/THIRD-PARTY-NOTICES.txt +84 -0
- package/dist/templates/map/data.json +1 -0
- package/dist/templates/map/icon.svg +8 -0
- package/dist/templates/map/icons.svg +43 -0
- package/dist/templates/map/index.html +95 -0
- package/dist/templates/map/manifest.json +227 -0
- package/dist/templates/map/map-model.js +18 -0
- package/dist/templates/map/map.css +202 -0
- package/dist/templates/map/map.js +728 -0
- package/dist/templates/map/vendor/LICENSE +26 -0
- package/dist/templates/map/vendor/README.md +11 -0
- package/dist/templates/map/vendor/leaflet.css +661 -0
- package/dist/templates/map/vendor/leaflet.js +6 -0
- package/dist/templates/map/vendor/lucide/LICENSE +43 -0
- package/dist/templates/map/vendor/lucide/README.md +46 -0
- package/dist/templates/map/vendor/lucide/icons.js +832 -0
- package/dist/templates/map/vendor/lucide/svg/airport.svg +15 -0
- package/dist/templates/map/vendor/lucide/svg/bar.svg +17 -0
- package/dist/templates/map/vendor/lucide/svg/beach.svg +17 -0
- package/dist/templates/map/vendor/lucide/svg/bridge.svg +20 -0
- package/dist/templates/map/vendor/lucide/svg/bus.svg +21 -0
- package/dist/templates/map/vendor/lucide/svg/church.svg +19 -0
- package/dist/templates/map/vendor/lucide/svg/coffee.svg +18 -0
- package/dist/templates/map/vendor/lucide/svg/ferry.svg +19 -0
- package/dist/templates/map/vendor/lucide/svg/flag.svg +15 -0
- package/dist/templates/map/vendor/lucide/svg/heart.svg +15 -0
- package/dist/templates/map/vendor/lucide/svg/home.svg +16 -0
- package/dist/templates/map/vendor/lucide/svg/hospital.svg +19 -0
- package/dist/templates/map/vendor/lucide/svg/hotel.svg +24 -0
- package/dist/templates/map/vendor/lucide/svg/info.svg +17 -0
- package/dist/templates/map/vendor/lucide/svg/landmark.svg +20 -0
- package/dist/templates/map/vendor/lucide/svg/mountain.svg +15 -0
- package/dist/templates/map/vendor/lucide/svg/museum.svg +20 -0
- package/dist/templates/map/vendor/lucide/svg/music.svg +17 -0
- package/dist/templates/map/vendor/lucide/svg/park.svg +18 -0
- package/dist/templates/map/vendor/lucide/svg/parking.svg +16 -0
- package/dist/templates/map/vendor/lucide/svg/pin.svg +16 -0
- package/dist/templates/map/vendor/lucide/svg/restaurant.svg +17 -0
- package/dist/templates/map/vendor/lucide/svg/school.svg +20 -0
- package/dist/templates/map/vendor/lucide/svg/shop.svg +17 -0
- package/dist/templates/map/vendor/lucide/svg/sports.svg +19 -0
- package/dist/templates/map/vendor/lucide/svg/star.svg +15 -0
- package/dist/templates/map/vendor/lucide/svg/theatre.svg +23 -0
- package/dist/templates/map/vendor/lucide/svg/train.svg +20 -0
- package/dist/templates/map/vendor/lucide/svg/viewpoint.svg +20 -0
- package/dist/templates/map/vendor/lucide/svg/work.svg +18 -0
- package/dist/templates/sticky-note/Caveat-Medium.woff2 +0 -0
- package/dist/templates/sticky-note/README.md +47 -0
- package/dist/templates/sticky-note/THIRD-PARTY-NOTICES.txt +127 -0
- package/dist/templates/sticky-note/data.json +1 -0
- package/dist/templates/sticky-note/icon.svg +16 -0
- package/dist/templates/sticky-note/icons.css +61 -0
- package/dist/templates/sticky-note/index.html +31 -0
- package/dist/templates/sticky-note/manifest.json +27 -0
- package/dist/templates/sticky-note/model.d.ts +33 -0
- package/dist/templates/sticky-note/model.js +152 -0
- package/dist/templates/sticky-note/page.js +84 -0
- package/dist/templates/sticky-note/styles.css +140 -0
- package/dist/templates/table/README.md +107 -0
- package/dist/templates/table/data.json +4 -0
- package/dist/templates/table/icon.svg +6 -0
- package/dist/templates/table/index.html +15 -0
- package/dist/templates/table/manifest.json +70 -0
- package/dist/templates/table/model.d.ts +164 -0
- package/dist/templates/table/model.js +395 -0
- package/dist/templates/table/page.js +1045 -0
- package/dist/templates/table/selection-model.d.ts +67 -0
- package/dist/templates/table/selection-model.js +163 -0
- package/dist/templates/table/styles.css +522 -0
- package/dist/views/markdown/THIRD-PARTY-NOTICES.txt +408 -0
- package/dist/views/markdown/index.html +21 -21
- package/dist/web/assets/main-CRSNodQt.js +864 -0
- package/dist/web/assets/main-DnvQkpg4.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/skills/tv-calendar/SKILL.md +0 -100
- package/dist/skills/tv-calendar/calendar.css +0 -1
- package/dist/skills/tv-calendar/calendar.js +0 -400
- package/dist/skills/tv-table/SKILL.md +0 -95
- package/dist/skills/tv-tasks/SKILL.md +0 -269
- package/dist/skills/tv-tasks/task.css +0 -180
- package/dist/skills/tv-tasks/task.js +0 -304
- package/dist/web/assets/calendar-DToAnkzj.png +0 -0
- package/dist/web/assets/main-CekDfJPz.js +0 -848
- package/dist/web/assets/main-CunC2_Nx.css +0 -1
- package/dist/web/assets/markdown-DdDrJuVK.png +0 -0
- package/dist/web/assets/table-oeG9uAN1.png +0 -0
- package/dist/web/assets/tasks-D4xqXFPl.png +0 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Map</title>
|
|
7
|
+
<link rel="icon" href="./icon.svg" type="image/svg+xml">
|
|
8
|
+
<link rel="stylesheet" href="/canonical/v2/styles.css?authoredForAppVersion=1.5.4">
|
|
9
|
+
<link rel="stylesheet" href="./vendor/leaflet.css">
|
|
10
|
+
<link rel="stylesheet" href="./map.css">
|
|
11
|
+
<script type="module" src="/canonical/v2/components.js"></script>
|
|
12
|
+
<script src="./vendor/leaflet.js"></script>
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<!-- Lucide and Feather icons. See THIRD-PARTY-NOTICES.txt. -->
|
|
16
|
+
<svg class="symbols" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
|
|
17
|
+
<symbol id="glyph-map" viewBox="0 0 24 24"><path d="m3 5 6-2 6 2 6-2v16l-6 2-6-2-6 2V5Zm6-2v16m6-14v16"/></symbol>
|
|
18
|
+
<symbol id="glyph-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
|
|
19
|
+
<symbol id="glyph-minus" viewBox="0 0 24 24"><path d="M5 12h14"/></symbol>
|
|
20
|
+
<symbol id="glyph-layers" viewBox="0 0 24 24"><path d="m12 3 9 5-9 5-9-5 9-5Zm-9 9 9 5 9-5M3 16l9 5 9-5"/></symbol>
|
|
21
|
+
<symbol id="glyph-down" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"/></symbol>
|
|
22
|
+
<symbol id="glyph-check" viewBox="0 0 24 24"><path d="m5 12 4 4L19 6"/></symbol>
|
|
23
|
+
<symbol id="glyph-satellite" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8"/><path d="M4 12h16M12 4c5 5 5 11 0 16-5-5-5-11 0-16Z"/></symbol>
|
|
24
|
+
<symbol id="glyph-back" viewBox="0 0 24 24"><path d="m14 5-7 7 7 7"/></symbol>
|
|
25
|
+
<symbol id="glyph-search" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="6.5"/><path d="m16 16 5 5"/></symbol>
|
|
26
|
+
<symbol id="glyph-clear" viewBox="0 0 24 24"><path d="m7 7 10 10M17 7 7 17"/></symbol>
|
|
27
|
+
</svg>
|
|
28
|
+
<main class="app" data-sidebar-open="false" data-has-places="false">
|
|
29
|
+
<section id="viewport" aria-label="Interactive map">
|
|
30
|
+
<div id="map" aria-label="Map. Arrow keys pan, plus and minus zoom, F fits all places." tabindex="0"></div>
|
|
31
|
+
</section>
|
|
32
|
+
<aside id="sidebar" aria-label="Places" data-open="false" hidden>
|
|
33
|
+
<div id="sidebar-surface" class="glass">
|
|
34
|
+
<section id="list-view" class="sidebar-view">
|
|
35
|
+
<header class="sidebar-header">
|
|
36
|
+
<div class="header-line"><h1 id="title" tabindex="-1">Map</h1><span id="place-count"></span></div>
|
|
37
|
+
<p id="subtitle" hidden></p>
|
|
38
|
+
<div class="filter-field" role="search">
|
|
39
|
+
<svg class="glyph" aria-hidden="true"><use href="#glyph-search"/></svg>
|
|
40
|
+
<input id="place-filter" type="search" placeholder="Filter places" aria-label="Filter places" aria-controls="place-list" autocomplete="off" spellcheck="false">
|
|
41
|
+
<button id="filter-clear" type="button" aria-label="Clear filter" title="Clear filter" hidden><svg class="glyph" aria-hidden="true"><use href="#glyph-clear"/></svg></button>
|
|
42
|
+
</div>
|
|
43
|
+
</header>
|
|
44
|
+
<div id="list-scroll" class="sidebar-scroll">
|
|
45
|
+
<ol id="place-list" aria-label="Places on the map"></ol>
|
|
46
|
+
<p id="no-matches" role="status" hidden>No matching places</p>
|
|
47
|
+
</div>
|
|
48
|
+
</section>
|
|
49
|
+
<article id="detail" class="sidebar-view" aria-labelledby="detail-title" hidden>
|
|
50
|
+
<header class="detail-bar">
|
|
51
|
+
<button type="button" id="close-detail" aria-label="Back to places" title="Back to places (Escape)"><svg class="glyph" aria-hidden="true"><use href="#glyph-back"/></svg>Back</button>
|
|
52
|
+
</header>
|
|
53
|
+
<div id="detail-scroll" class="sidebar-scroll">
|
|
54
|
+
<div id="detail-photo" class="detail-photo" hidden></div>
|
|
55
|
+
<div class="detail-body">
|
|
56
|
+
<h2 id="detail-title"></h2>
|
|
57
|
+
<p id="detail-category" class="category-pill" hidden></p>
|
|
58
|
+
<p id="detail-description" hidden></p>
|
|
59
|
+
<dl id="detail-fields" hidden></dl>
|
|
60
|
+
<p id="detail-credit" hidden></p>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</article>
|
|
64
|
+
</div>
|
|
65
|
+
<button type="button" id="sidebar-toggle" class="glass" aria-label="Show sidebar" aria-expanded="false" aria-controls="sidebar-surface"><svg class="glyph" aria-hidden="true"><use href="#glyph-back"/></svg></button>
|
|
66
|
+
</aside>
|
|
67
|
+
<div id="map-title" class="glass" hidden><span id="empty-title"></span></div>
|
|
68
|
+
<div class="map-toolbar" aria-label="Map controls">
|
|
69
|
+
<div class="control-group glass">
|
|
70
|
+
<button type="button" class="control-button" id="zoom-in" aria-label="Zoom in" title="Zoom in (+)"><svg class="glyph" aria-hidden="true"><use href="#glyph-plus"/></svg></button>
|
|
71
|
+
<button type="button" class="control-button" id="zoom-out" aria-label="Zoom out" title="Zoom out (−)"><svg class="glyph" aria-hidden="true"><use href="#glyph-minus"/></svg></button>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="control-group glass">
|
|
74
|
+
<button type="button" class="control-button" id="layers-toggle" aria-label="Map layers" aria-expanded="false" aria-controls="layers-menu"><svg class="glyph" aria-hidden="true"><use href="#glyph-layers"/></svg><span id="layer-label">Standard</span><svg class="glyph" aria-hidden="true"><use href="#glyph-down"/></svg></button>
|
|
75
|
+
</div>
|
|
76
|
+
<div id="layers-menu" class="glass" role="group" aria-label="Basemap" hidden>
|
|
77
|
+
<button class="layer-option" type="button" data-basemap="standard" aria-pressed="true"><svg class="glyph" aria-hidden="true"><use href="#glyph-map"/></svg>Standard<svg class="glyph check" aria-hidden="true"><use href="#glyph-check"/></svg></button>
|
|
78
|
+
<button class="layer-option" type="button" data-basemap="satellite" aria-pressed="false"><svg class="glyph" aria-hidden="true"><use href="#glyph-satellite"/></svg>Satellite<svg class="glyph check" aria-hidden="true"><use href="#glyph-check"/></svg></button>
|
|
79
|
+
<button class="layer-option" type="button" data-basemap="hybrid" aria-pressed="false"><svg class="glyph" aria-hidden="true"><use href="#glyph-layers"/></svg>Hybrid<svg class="glyph check" aria-hidden="true"><use href="#glyph-check"/></svg></button>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
<div id="empty" class="empty glass" hidden>
|
|
83
|
+
<h2>No places yet</h2>
|
|
84
|
+
<p>Ask your agent to add places to this map.</p>
|
|
85
|
+
</div>
|
|
86
|
+
<section id="error" class="map-unreadable" role="alert" hidden>
|
|
87
|
+
<span class="map-unreadable-icon"><tv-icon name="warning" size="xl"></tv-icon></span>
|
|
88
|
+
<h1>This map can't be shown</h1>
|
|
89
|
+
<p>Its saved data isn't in the form this page reads. Ask your agent to check it.</p>
|
|
90
|
+
</section>
|
|
91
|
+
<p id="selection-status" class="sr-only" role="status"></p>
|
|
92
|
+
</main>
|
|
93
|
+
<script type="module" src="./map.js"></script>
|
|
94
|
+
</body>
|
|
95
|
+
</html>
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Map",
|
|
3
|
+
"description": "An interactive map with category colours and icons, a floating place list, photos, and detailed place information.",
|
|
4
|
+
"version": "2.1.0",
|
|
5
|
+
"icons": [
|
|
6
|
+
{
|
|
7
|
+
"src": "icon.svg",
|
|
8
|
+
"type": "image/svg+xml"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"dataSchema": {
|
|
12
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
13
|
+
"title": "Map store",
|
|
14
|
+
"description": "An agent-owned collection of places.",
|
|
15
|
+
"type": [
|
|
16
|
+
"object",
|
|
17
|
+
"null"
|
|
18
|
+
],
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"properties": {
|
|
21
|
+
"title": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Collection heading and document title. An empty or omitted value uses the fallback heading and document title defined by the page."
|
|
24
|
+
},
|
|
25
|
+
"subtitle": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Optional supporting line below the map heading."
|
|
28
|
+
},
|
|
29
|
+
"numbered": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false,
|
|
32
|
+
"description": "Show the one-based sorted position on pins and in the list."
|
|
33
|
+
},
|
|
34
|
+
"basemap": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"standard",
|
|
38
|
+
"satellite",
|
|
39
|
+
"hybrid"
|
|
40
|
+
],
|
|
41
|
+
"default": "standard",
|
|
42
|
+
"description": "Stored map layer. Hybrid adds Esri boundaries and place labels to satellite imagery."
|
|
43
|
+
},
|
|
44
|
+
"sidebar": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": [
|
|
47
|
+
"open",
|
|
48
|
+
"closed"
|
|
49
|
+
],
|
|
50
|
+
"default": "open",
|
|
51
|
+
"description": "Stored sidebar visibility. The sidebar is hidden when there are no valid places; the viewer can change visibility locally."
|
|
52
|
+
},
|
|
53
|
+
"categories": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"description": "Optional category definitions keyed by stable letter-prefixed IDs. Place category fields refer to these keys. Without categories, places use the theme accent colour and pin glyph, with no category pill.",
|
|
56
|
+
"propertyNames": {
|
|
57
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
|
|
58
|
+
},
|
|
59
|
+
"additionalProperties": {
|
|
60
|
+
"$ref": "#/$defs/category"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"places": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"description": "Places keyed by stable letter-prefixed IDs, such as place-01. Omission or an empty object shows the empty state.",
|
|
66
|
+
"propertyNames": {
|
|
67
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": {
|
|
70
|
+
"$ref": "#/$defs/place"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"$defs": {
|
|
75
|
+
"icon": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"enum": [
|
|
78
|
+
"pin",
|
|
79
|
+
"landmark",
|
|
80
|
+
"museum",
|
|
81
|
+
"restaurant",
|
|
82
|
+
"coffee",
|
|
83
|
+
"bar",
|
|
84
|
+
"hotel",
|
|
85
|
+
"park",
|
|
86
|
+
"beach",
|
|
87
|
+
"mountain",
|
|
88
|
+
"viewpoint",
|
|
89
|
+
"shop",
|
|
90
|
+
"airport",
|
|
91
|
+
"train",
|
|
92
|
+
"bus",
|
|
93
|
+
"parking",
|
|
94
|
+
"hospital",
|
|
95
|
+
"school",
|
|
96
|
+
"home",
|
|
97
|
+
"work",
|
|
98
|
+
"star",
|
|
99
|
+
"heart",
|
|
100
|
+
"flag",
|
|
101
|
+
"music",
|
|
102
|
+
"theatre",
|
|
103
|
+
"sports",
|
|
104
|
+
"church",
|
|
105
|
+
"bridge",
|
|
106
|
+
"ferry",
|
|
107
|
+
"info"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"category": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"required": [
|
|
114
|
+
"name"
|
|
115
|
+
],
|
|
116
|
+
"properties": {
|
|
117
|
+
"name": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"minLength": 1,
|
|
120
|
+
"description": "Category label shown in the list and details and matched by the place filter."
|
|
121
|
+
},
|
|
122
|
+
"icon": {
|
|
123
|
+
"$ref": "#/$defs/icon",
|
|
124
|
+
"default": "pin",
|
|
125
|
+
"description": "Default icon for places in this category. A place icon can override it."
|
|
126
|
+
},
|
|
127
|
+
"color": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"enum": [
|
|
130
|
+
"red",
|
|
131
|
+
"orange",
|
|
132
|
+
"yellow",
|
|
133
|
+
"green",
|
|
134
|
+
"cyan",
|
|
135
|
+
"blue",
|
|
136
|
+
"purple",
|
|
137
|
+
"pink",
|
|
138
|
+
"neutral"
|
|
139
|
+
],
|
|
140
|
+
"description": "Category colour from the Television foundation palette. If omitted, the page assigns colours to categories lacking an explicit colour in sorted-key order, cycling through the enum; explicit colours do not consume slots."
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"place": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"additionalProperties": false,
|
|
147
|
+
"required": [
|
|
148
|
+
"title",
|
|
149
|
+
"lat",
|
|
150
|
+
"lng"
|
|
151
|
+
],
|
|
152
|
+
"properties": {
|
|
153
|
+
"title": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"minLength": 1,
|
|
156
|
+
"description": "Place name in the list, pin label, and details. An absent later value uses the untitled-place fallback defined by the page."
|
|
157
|
+
},
|
|
158
|
+
"lat": {
|
|
159
|
+
"type": "number",
|
|
160
|
+
"minimum": -90,
|
|
161
|
+
"maximum": 90,
|
|
162
|
+
"description": "WGS84 latitude in degrees."
|
|
163
|
+
},
|
|
164
|
+
"lng": {
|
|
165
|
+
"type": "number",
|
|
166
|
+
"minimum": -180,
|
|
167
|
+
"maximum": 180,
|
|
168
|
+
"description": "WGS84 longitude in degrees."
|
|
169
|
+
},
|
|
170
|
+
"order": {
|
|
171
|
+
"type": "number",
|
|
172
|
+
"description": "Sort ascending; omitted values come last. Keys break ties. Displayed numbers use the sorted position, not this value."
|
|
173
|
+
},
|
|
174
|
+
"icon": {
|
|
175
|
+
"$ref": "#/$defs/icon",
|
|
176
|
+
"description": "Override the category icon for a place with a known category. Unknown or omitted categories use pin. Numbered mode displays the sorted number instead."
|
|
177
|
+
},
|
|
178
|
+
"category": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$",
|
|
181
|
+
"description": "A key in the optional categories map. A missing categories map or an omitted or unknown key is uncategorised, using the theme accent colour and pin glyph with no category pill. Explicit neutral categories use the neutral palette colour."
|
|
182
|
+
},
|
|
183
|
+
"description": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"description": "Optional place description shown in the list and details."
|
|
186
|
+
},
|
|
187
|
+
"photo": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"description": "An HTTPS URL without whitespace or control characters U+0000–U+001F, or a path inside the artifact folder. Relative paths may start with ./ and cannot contain edge whitespace, dot segments, percent escapes, query strings, or fragments.",
|
|
190
|
+
"anyOf": [
|
|
191
|
+
{
|
|
192
|
+
"pattern": "^https://[^\\s/?#\\u0000-\\u001F]+(?:[/?#][^\\s\\u0000-\\u001F]*)?$"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"pattern": "^(?:\\./)?(?!\\s)(?!.*\\s$)(?!\\.{1,2}(?:/|$))[^/\\\\:%?#\\u0000-\\u001F]+(?:/(?!\\.{1,2}(?:/|$))[^/\\\\:%?#\\u0000-\\u001F]+)*$"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"credit": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"additionalProperties": false,
|
|
202
|
+
"required": [
|
|
203
|
+
"text"
|
|
204
|
+
],
|
|
205
|
+
"properties": {
|
|
206
|
+
"text": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"minLength": 1,
|
|
209
|
+
"description": "Full photo credit, including the creator and licence where required."
|
|
210
|
+
},
|
|
211
|
+
"url": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"pattern": "^https://[^\\s/?#\\u0000-\\u001F]+(?:[/?#][^\\s\\u0000-\\u001F]*)?$",
|
|
214
|
+
"description": "HTTPS link without whitespace or control characters U+0000–U+001F to the photo source or licence."
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"fields": {
|
|
219
|
+
"type": "object",
|
|
220
|
+
"additionalProperties": true,
|
|
221
|
+
"description": "Detail labels mapped to any JSON values. Arrays and objects are serialized; empty values use the empty-value fallback defined by the page."
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Store-derived constants and media rules that do not depend on the DOM.
|
|
2
|
+
// Later writes bypass schema validation. URLs remain passive image and credit
|
|
3
|
+
// references, and local paths stay inside the copied artifact.
|
|
4
|
+
export const categoryColors = Object.freeze(['red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'pink', 'neutral']);
|
|
5
|
+
const httpsPattern = /^https:\/\/[^\s/?#\u0000-\u001F]+(?:[/?#][^\s\u0000-\u001F]*)?$/;
|
|
6
|
+
|
|
7
|
+
export function httpsURL(value) {
|
|
8
|
+
if (typeof value !== 'string' || !httpsPattern.test(value)) return null;
|
|
9
|
+
try { return new URL(value).protocol === 'https:' ? value : null; } catch { return null; }
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function photoURL(value) {
|
|
13
|
+
if (typeof value !== 'string' || !value) return null;
|
|
14
|
+
if (value.startsWith('https://')) return httpsURL(value);
|
|
15
|
+
const path = value.startsWith('./') ? value.slice(2) : value;
|
|
16
|
+
if (path !== path.trim() || /[\\:%?#\u0000-\u001f]/.test(path) || path.split('/').some((part) => !part || part === '.' || part === '..')) return null;
|
|
17
|
+
return path;
|
|
18
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/* A floating material panel over a full map. The camera accounts for the
|
|
2
|
+
covered area, keeping the same map visible while the panel slides away. */
|
|
3
|
+
:root {
|
|
4
|
+
--map-surface: var(--color-surface, #fff);
|
|
5
|
+
--map-muted-surface: var(--color-surface-muted, #f1f2f4);
|
|
6
|
+
--map-text: var(--color-text, #24272c);
|
|
7
|
+
--map-muted: var(--color-text-muted, #73777e);
|
|
8
|
+
--map-border: var(--color-border, #1f293714);
|
|
9
|
+
--map-accent: var(--color-primary, #0879ed);
|
|
10
|
+
--map-material: color-mix(in srgb, var(--panel-background, var(--map-surface)) 87%, transparent);
|
|
11
|
+
--map-shadow: 0 8px 32px #1525361a, 0 1px 5px #15253614;
|
|
12
|
+
--sidebar-width: 326px;
|
|
13
|
+
--sheet-height: min(48%, 430px);
|
|
14
|
+
--sheet-half-height: min(48%, 430px);
|
|
15
|
+
color: var(--map-text);
|
|
16
|
+
background: var(--map-muted-surface);
|
|
17
|
+
}
|
|
18
|
+
:root[data-theme="dark"] {
|
|
19
|
+
--map-surface: var(--color-surface, #292c31);
|
|
20
|
+
--map-muted-surface: var(--color-surface-muted, #22252a);
|
|
21
|
+
--map-text: var(--color-text, #f1f2f4);
|
|
22
|
+
--map-muted: var(--color-text-muted, #acafb6);
|
|
23
|
+
--map-border: var(--color-border, #ffffff1a);
|
|
24
|
+
--map-accent: var(--color-primary, #1685f4);
|
|
25
|
+
--map-shadow: 0 10px 32px #0004, 0 1px 5px #0002;
|
|
26
|
+
}
|
|
27
|
+
/* The foundation retunes these palette scales in dark mode. Fallbacks preserve
|
|
28
|
+
pin and metadata contrast without replacing theme tokens. */
|
|
29
|
+
[data-color="default"] { --place-color: var(--map-accent); }
|
|
30
|
+
[data-color="red"] { --place-color: var(--red-600, oklch(.577 .245 25.331)); --category-ink: var(--red-800, oklch(0.444 0.177 25.331)); }
|
|
31
|
+
[data-color="orange"] { --place-color: var(--orange-600, oklch(.639 .220 47.604)); --category-ink: var(--orange-800, oklch(0.491 0.159 47.604)); }
|
|
32
|
+
[data-color="yellow"] { --place-color: var(--yellow-600, oklch(.784 .189 85.936)); --category-ink: var(--yellow-900, oklch(0.460 0.103 59.936)); }
|
|
33
|
+
[data-color="green"] { --place-color: var(--green-600, oklch(.655 .226 149.579)); --category-ink: var(--green-900, oklch(0.450 0.130 149.579)); }
|
|
34
|
+
[data-color="cyan"] { --place-color: var(--cyan-600, oklch(.648 .148 215.221)); --category-ink: var(--cyan-900, oklch(0.445 0.085 215.221)); }
|
|
35
|
+
[data-color="blue"] { --place-color: var(--blue-600, oklch(.564 .221 259.815)); --category-ink: var(--blue-800, oklch(0.434 0.160 259.815)); }
|
|
36
|
+
[data-color="purple"] { --place-color: var(--purple-600, oklch(.568 .274 303.9)); --category-ink: var(--purple-800, oklch(0.437 0.198 303.900)); }
|
|
37
|
+
[data-color="pink"] { --place-color: var(--pink-600, oklch(.594 .249 354.308)); --category-ink: var(--pink-800, oklch(0.457 0.180 354.308)); }
|
|
38
|
+
[data-color="neutral"] { --place-color: var(--neutral-600, oklch(.439 0 0)); --category-ink: var(--neutral-800, oklch(0.269 0.000 0.000)); }
|
|
39
|
+
:root[data-theme="dark"] [data-color="red"] { --place-color: var(--red-600, oklch(.638 .197 22.216)); --category-ink: var(--red-300, oklch(0.843 0.092 22.216)); }
|
|
40
|
+
:root[data-theme="dark"] [data-color="orange"] { --place-color: var(--orange-600, oklch(.680 .189 55.934)); --category-ink: var(--orange-300, oklch(0.868 0.088 55.934)); }
|
|
41
|
+
:root[data-theme="dark"] [data-color="yellow"] { --place-color: var(--yellow-600, oklch(.809 .161 85.5)); --category-ink: var(--yellow-300, oklch(0.944 0.167 97.500)); }
|
|
42
|
+
:root[data-theme="dark"] [data-color="green"] { --place-color: var(--green-600, oklch(.718 .216 151.711)); --category-ink: var(--green-300, oklch(0.890 0.101 151.711)); }
|
|
43
|
+
:root[data-theme="dark"] [data-color="cyan"] { --place-color: var(--cyan-600, oklch(.715 .159 211.53)); --category-ink: var(--cyan-300, oklch(0.888 0.074 211.530)); }
|
|
44
|
+
:root[data-theme="dark"] [data-color="blue"] { --place-color: var(--blue-600, oklch(.641 .171 254.624)); --category-ink: var(--blue-300, oklch(0.845 0.079 254.624)); }
|
|
45
|
+
:root[data-theme="dark"] [data-color="purple"] { --place-color: var(--purple-600, oklch(.647 .210 305.504)); --category-ink: var(--purple-300, oklch(0.849 0.098 305.504)); }
|
|
46
|
+
:root[data-theme="dark"] [data-color="pink"] { --place-color: var(--pink-600, oklch(.651 .209 349.761)); --category-ink: var(--pink-300, oklch(0.851 0.097 349.761)); }
|
|
47
|
+
:root[data-theme="dark"] [data-color="neutral"] { --category-ink: var(--neutral-300, oklch(0.870 0.000 0.000)); }
|
|
48
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
49
|
+
[hidden] { display: none !important; }
|
|
50
|
+
html, body { height: 100%; width: 100%; margin: 0; overflow: hidden; }
|
|
51
|
+
body, button { font: 13px/1.4 var(--font-sans, sans-serif); color: var(--map-text); }
|
|
52
|
+
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
53
|
+
button:disabled { opacity: .35; cursor: default; }
|
|
54
|
+
button:focus-visible, a:focus-visible { outline: var(--outline-focus, 2px solid var(--map-accent)); outline-offset: -2px; }
|
|
55
|
+
#map:focus-visible { outline: var(--outline-focus, 2px solid var(--map-accent)); outline-offset: -3px; }
|
|
56
|
+
h1, h2, p, ol, dl, dd { margin: 0; }
|
|
57
|
+
svg.glyph { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
58
|
+
.symbols, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
59
|
+
.app, #viewport, #map { position: absolute; inset: 0; overflow: hidden; }
|
|
60
|
+
.app { isolation: isolate; }
|
|
61
|
+
#map { background: var(--map-muted-surface); isolation: isolate; font: inherit; }
|
|
62
|
+
.glass { background: var(--map-material); backdrop-filter: blur(28px) saturate(1.4); border: 1px solid var(--map-border); box-shadow: var(--map-shadow); }
|
|
63
|
+
#sidebar {
|
|
64
|
+
position: absolute; z-index: 600; left: 16px; top: 16px; width: var(--sidebar-width);
|
|
65
|
+
height: calc(100% - 32px); pointer-events: none;
|
|
66
|
+
transform: translateX(calc(-100% - 16px));
|
|
67
|
+
transition: transform .25s cubic-bezier(.22,.8,.25,1);
|
|
68
|
+
}
|
|
69
|
+
#sidebar[data-open="true"] { transform: translateX(0); }
|
|
70
|
+
#sidebar-surface { height: 100%; border-radius: 19px; overflow: hidden; pointer-events: auto; }
|
|
71
|
+
#sidebar[data-open="false"] #sidebar-surface { pointer-events: none; }
|
|
72
|
+
.sidebar-view { display: flex; flex-direction: column; height: 100%; min-height: 0; animation: appear .2s ease-out; }
|
|
73
|
+
.sidebar-header { padding: 22px 20px 12px; flex: none; }
|
|
74
|
+
.header-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
|
|
75
|
+
h1 { font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.65px; overflow-wrap: anywhere; }
|
|
76
|
+
#place-count { flex: none; font-size: 11px; font-weight: 500; color: var(--map-muted); }
|
|
77
|
+
#subtitle { color: var(--map-muted); font-size: 12px; line-height: 1.5; margin-top: 7px; overflow-wrap: anywhere; }
|
|
78
|
+
.filter-field { display: flex; align-items: center; gap: 7px; height: 34px; margin-top: 14px; padding: 0 8px; border-radius: 9px; background: color-mix(in srgb, var(--map-text) 6%, transparent); color: var(--map-muted); }
|
|
79
|
+
.filter-field:focus-within { outline: var(--outline-focus, 2px solid var(--map-accent)); outline-offset: 1px; }
|
|
80
|
+
.filter-field > .glyph { width: 15px; height: 15px; }
|
|
81
|
+
#place-filter { min-width: 0; width: 100%; flex: 1; height: 100%; padding: 0; border: 0; outline: none; border-radius: 0; background: transparent; box-shadow: none; color: var(--map-text); font: 12px/1.4 var(--font-sans, sans-serif); appearance: none; }
|
|
82
|
+
#place-filter::placeholder { color: var(--map-muted); opacity: 1; }
|
|
83
|
+
#place-filter::-webkit-search-cancel-button, #place-filter::-webkit-search-decoration { appearance: none; }
|
|
84
|
+
#filter-clear { display: grid; place-items: center; flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--map-text) 9%, transparent); color: var(--map-muted); }
|
|
85
|
+
#filter-clear:hover { color: var(--map-text); background: color-mix(in srgb, var(--map-text) 15%, transparent); }
|
|
86
|
+
#filter-clear .glyph { width: 13px; height: 13px; stroke-width: 2; }
|
|
87
|
+
#no-matches { padding: 30px 20px; text-align: center; color: var(--map-muted); font-size: 12px; }
|
|
88
|
+
.sidebar-scroll { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--map-border) transparent; overflow-anchor: none; }
|
|
89
|
+
#place-list { list-style: none; padding: 0 7px 12px; }
|
|
90
|
+
.place-row { position: relative; }
|
|
91
|
+
.place-row:not([hidden]) ~ .place-row:not([hidden])::before { content: ''; position: absolute; left: var(--separator-inset, 13px); right: 13px; top: -.5px; border-top: 1px solid var(--map-border); pointer-events: none; }
|
|
92
|
+
.place-row:has(.thumbnail) { --separator-inset: 85px; }
|
|
93
|
+
.place-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; border: 0; border-radius: 11px; background: transparent; text-align: left; transition: background .15s; }
|
|
94
|
+
.place-button:hover, .place-button.is-hovered, .place-button:focus-visible { background: color-mix(in srgb, var(--map-accent) 9%, transparent); }
|
|
95
|
+
.place-button:active { background: color-mix(in srgb, var(--map-accent) 15%, transparent); }
|
|
96
|
+
.thumbnail { position: relative; display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--place-color) 7%, var(--map-surface)); color: var(--place-color); }
|
|
97
|
+
.thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
98
|
+
.thumbnail .glyph { width: 23px; height: 23px; }
|
|
99
|
+
.row-copy { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
|
|
100
|
+
.row-title { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.25; font-weight: 600; letter-spacing: -.15px; overflow-wrap: anywhere; }
|
|
101
|
+
/* Use visible text bounds to balance the photo against the title and description. */
|
|
102
|
+
.row-title > span:last-child { text-box: trim-both cap alphabetic; }
|
|
103
|
+
svg.category-glyph { display: block; width: 10px; height: 10px; flex: none; stroke-width: 1.8; }
|
|
104
|
+
.category-pill { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--place-color) 10%, transparent); color: var(--category-ink); font-size: 10px; line-height: 10px; font-weight: 500; vertical-align: top; }
|
|
105
|
+
/* Centre the visible capitals, excluding the font's unused ascent/descent space. */
|
|
106
|
+
.category-pill > span { min-width: 0; overflow-wrap: anywhere; text-box: trim-both cap alphabetic; }
|
|
107
|
+
.list-badge { color: var(--map-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
|
|
108
|
+
.row-category { align-self: flex-start; }
|
|
109
|
+
.row-description { text-box: trim-both text; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; line-height: 1.45; color: var(--map-muted); overflow-wrap: anywhere; }
|
|
110
|
+
/* The panel has a 1px border: 11px above Back and 12px below it leave
|
|
111
|
+
equal 12px gaps to the outer panel edge and the photo or first title. */
|
|
112
|
+
.detail-bar { display: flex; align-items: center; flex: none; padding: 11px 10px 12px; }
|
|
113
|
+
#close-detail { display: flex; align-items: center; gap: 3px; padding: 7px 8px; color: var(--map-accent); background: transparent; border: 0; border-radius: 8px; font-size: 13px; font-weight: 500; }
|
|
114
|
+
#close-detail:hover { background: color-mix(in srgb, var(--map-accent) 8%, transparent); }
|
|
115
|
+
#close-detail .glyph { width: 16px; height: 16px; }
|
|
116
|
+
.detail-photo { margin: 0 12px; height: 202px; border-radius: 12px; overflow: hidden; background: var(--map-muted-surface); }
|
|
117
|
+
.detail-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
118
|
+
.detail-body { padding: 18px 20px 22px; }
|
|
119
|
+
.detail-photo[hidden] + .detail-body { padding-top: 0; }
|
|
120
|
+
#detail-title { font-size: 23px; font-weight: 650; line-height: 1.15; letter-spacing: -.65px; overflow-wrap: anywhere; }
|
|
121
|
+
#detail-category { margin-top: 8px; }
|
|
122
|
+
#detail-description { margin-top: 17px; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
123
|
+
#detail-fields { margin-top: 20px; padding: 0 12px; border-radius: 11px; background: color-mix(in srgb, var(--map-muted-surface) 72%, transparent); }
|
|
124
|
+
.field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: baseline; gap: 12px; padding: 11px 0; font-size: 11px; }
|
|
125
|
+
.field + .field { border-top: 1px solid var(--map-border); }
|
|
126
|
+
.field dt { color: var(--map-muted); overflow-wrap: anywhere; }
|
|
127
|
+
.field dd { text-align: right; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
128
|
+
.field.long-value { grid-template-columns: 1fr; gap: 5px; }
|
|
129
|
+
.field.long-value dd { text-align: left; }
|
|
130
|
+
#detail-credit { margin-top: 20px; color: var(--map-muted); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
|
|
131
|
+
#detail-credit a { color: inherit; text-decoration-color: var(--map-border); text-underline-offset: 2px; }
|
|
132
|
+
#detail-credit a:hover { text-decoration-color: currentColor; }
|
|
133
|
+
#sidebar-toggle { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); width: 24px; height: 48px; padding: 0; display: grid; place-items: center; border-left: 0; border-radius: 0 8px 8px 0; pointer-events: auto; transition: background .15s; }
|
|
134
|
+
#sidebar-toggle .glyph { width: 14px; height: 14px; }
|
|
135
|
+
#sidebar[data-open="false"] #sidebar-toggle .glyph { transform: rotate(180deg); }
|
|
136
|
+
#sidebar-toggle:focus-visible { outline-offset: -3px; }
|
|
137
|
+
.map-toolbar { position: absolute; z-index: 650; top: 16px; right: 16px; display: flex; gap: 8px; }
|
|
138
|
+
.control-group { display: flex; align-items: center; padding: 2px; border-radius: 10px; }
|
|
139
|
+
.control-button { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; gap: 6px; border: 0; border-radius: 7px; background: transparent; transition: background .15s; }
|
|
140
|
+
.control-button:hover:not(:disabled), .control-button[aria-expanded="true"], #sidebar-toggle:hover { background: color-mix(in srgb, var(--map-text) 6%, var(--map-material)); }
|
|
141
|
+
.control-button:active:not(:disabled), #sidebar-toggle:active { background: color-mix(in srgb, var(--map-text) 12%, var(--map-material)); }
|
|
142
|
+
#layers-toggle { width: auto; padding: 0 8px; font-size: 11px; font-weight: 500; }
|
|
143
|
+
#layers-toggle .glyph:last-child { width: 10px; }
|
|
144
|
+
#layers-menu { position: absolute; right: 0; top: 44px; width: 170px; border-radius: 13px; padding: 5px; }
|
|
145
|
+
.layer-option { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px; font-size: 12px; background: transparent; border: 0; border-radius: 8px; }
|
|
146
|
+
.layer-option:hover { background: color-mix(in srgb, var(--map-text) 5%, transparent); }
|
|
147
|
+
.layer-option[aria-pressed="true"] { color: var(--map-accent); background: color-mix(in srgb, var(--map-accent) 8%, transparent); }
|
|
148
|
+
.layer-option .check { margin-left: auto; width: 14px; opacity: 0; }
|
|
149
|
+
.layer-option[aria-pressed="true"] .check { opacity: 1; }
|
|
150
|
+
.map-pin { background: transparent; border: 0; }
|
|
151
|
+
.pin-face { display: block; position: relative; width: 38px; height: 48px; transform-origin: 50% 100%; filter: drop-shadow(0 3px 3px #0004); transition: transform .2s cubic-bezier(.2,.8,.2,1), filter .2s; }
|
|
152
|
+
.map-pin .pin-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
|
|
153
|
+
.pin-shape path { fill: var(--place-color); stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
|
|
154
|
+
.pin-face .pin-glyph { position: absolute; top: 10px; left: 11px; width: 16px; height: 16px; color: white; stroke-width: 2.2; }
|
|
155
|
+
.pin-number { position: absolute; top: 8px; left: 0; width: 100%; text-align: center; font: 650 14px/20px var(--font-sans, sans-serif); color: white; }
|
|
156
|
+
.map-pin.is-hovered .pin-face { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 6px 4px #0004); }
|
|
157
|
+
.map-pin[aria-pressed="true"] .pin-face { transform: translateY(-3px) scale(1.22); filter: drop-shadow(0 5px 5px #0005); }
|
|
158
|
+
.map-pin:focus-visible { outline: none; }
|
|
159
|
+
.map-pin:focus-visible .pin-face { filter: drop-shadow(0 0 3px var(--place-color)) drop-shadow(0 3px 3px #0004); }
|
|
160
|
+
#map-title { position: absolute; z-index: 500; top: 16px; left: 16px; padding: 9px 13px; border-radius: 10px; max-width: calc(100% - 300px); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
|
|
161
|
+
.empty { position: absolute; z-index: 500; bottom: 40px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: 290px; padding: 16px 20px; border-radius: 14px; text-align: center; pointer-events: none; }
|
|
162
|
+
.empty h2 { font-size: 14px; font-weight: 600; }
|
|
163
|
+
.empty p { color: var(--map-muted); font-size: 11px; line-height: 1.5; margin-top: 4px; }
|
|
164
|
+
.map-unreadable { position: absolute; z-index: 750; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--map-text); background: var(--map-surface); }
|
|
165
|
+
.map-unreadable-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; color: var(--map-muted); background: var(--map-muted-surface); }
|
|
166
|
+
.map-unreadable h1 { font-size: 18px; letter-spacing: -.3px; }
|
|
167
|
+
.map-unreadable p { max-width: 38ch; color: var(--map-muted); font-size: 13px; }
|
|
168
|
+
.leaflet-container .leaflet-control-attribution { max-width: 100%; padding: 2px 6px; border-radius: 6px 0 0 0; font: 9px/1.4 var(--font-sans, sans-serif); color: var(--map-muted); background: var(--map-material); }
|
|
169
|
+
.leaflet-control-attribution a { color: inherit; }
|
|
170
|
+
.leaflet-bottom { transition: left .25s cubic-bezier(.22,.8,.25,1), bottom .25s cubic-bezier(.22,.8,.25,1); }
|
|
171
|
+
.app[data-sidebar-open="true"] .leaflet-bottom.leaflet-left { left: calc(var(--sidebar-width) + 32px); }
|
|
172
|
+
.leaflet-tooltip { padding: 6px 9px; border: 1px solid var(--map-border); border-radius: 8px; background: var(--map-material); backdrop-filter: blur(12px); color: var(--map-text); box-shadow: 0 2px 8px #0002; font: 500 11px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
|
|
173
|
+
.leaflet-tooltip::before { display: none; }
|
|
174
|
+
/* Keep aerial photography intact; only street cartography is recoloured. */
|
|
175
|
+
:root[data-theme="dark"] .street-tiles { filter: invert(1) hue-rotate(180deg) saturate(.45) contrast(.8) brightness(1.1); }
|
|
176
|
+
@keyframes appear { from { opacity: .4; transform: translateX(4px); } to { opacity: 1; transform: translateX(0); } }
|
|
177
|
+
@supports (corner-shape: squircle) { #sidebar-surface, .thumbnail, .detail-photo, .control-group, #layers-menu { corner-shape: squircle; } }
|
|
178
|
+
@media (min-width: 641px) and (max-width: 850px) { :root { --sidebar-width: 296px; } }
|
|
179
|
+
@media (max-width: 640px) {
|
|
180
|
+
#sidebar { top: auto; bottom: 0; left: 0; width: 100%; height: max(var(--sheet-half-height), var(--sheet-height)); transition: transform .25s cubic-bezier(.22,.8,.25,1), height .25s cubic-bezier(.22,.8,.25,1); }
|
|
181
|
+
#sidebar, #sidebar[data-open="true"] { transform: translateY(max(0px, calc(var(--sheet-half-height) - var(--sheet-height)))); }
|
|
182
|
+
.sidebar-header, .detail-bar, #sidebar-toggle, .sidebar-scroll { touch-action: pan-x pinch-zoom; }
|
|
183
|
+
.sidebar-header, .detail-bar, #sidebar-toggle { user-select: none; }
|
|
184
|
+
#place-filter { user-select: text; touch-action: auto; }
|
|
185
|
+
.app[data-sheet-dragging="true"] #sidebar, .app[data-sheet-dragging="true"] .leaflet-bottom { transition: none; }
|
|
186
|
+
#sidebar-surface { border-radius: 21px 21px 0 0; border-bottom: 0; border-left: 0; border-right: 0; }
|
|
187
|
+
#sidebar[data-open="false"] #sidebar-surface { pointer-events: auto; }
|
|
188
|
+
#sidebar-toggle { left: 50%; top: -23px; transform: translateX(-50%); width: 48px; height: 24px; border-left: 1px solid var(--map-border); border-bottom: 0; border-radius: 8px 8px 0 0; }
|
|
189
|
+
#sidebar-toggle .glyph { transform: rotate(-90deg); }
|
|
190
|
+
#sidebar[data-open="false"] #sidebar-toggle .glyph { transform: rotate(90deg); }
|
|
191
|
+
.map-toolbar { top: 12px; right: 12px; gap: 6px; }
|
|
192
|
+
.sidebar-header { padding: 17px 20px 12px; }
|
|
193
|
+
h1 { font-size: 20px; }
|
|
194
|
+
#subtitle { margin-top: 4px; }
|
|
195
|
+
.detail-photo { height: 178px; }
|
|
196
|
+
.detail-body { padding-top: 15px; }
|
|
197
|
+
.app[data-has-places="true"] .leaflet-bottom.leaflet-left { left: 0; bottom: calc(var(--sheet-height) + 12px); }
|
|
198
|
+
.app[data-has-places="true"] .leaflet-bottom.leaflet-right { bottom: var(--sheet-height); }
|
|
199
|
+
.leaflet-container .leaflet-control-attribution { max-width: 100%; font-size: 8px; }
|
|
200
|
+
#map-title { top: 59px; left: 12px !important; max-width: calc(100% - 24px); }
|
|
201
|
+
}
|
|
202
|
+
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
|