@poadio/app-vue 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/app-vue.css +102 -23
- package/dist/browser.d.ts +3 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +18 -1
- package/dist/browser.js.map +1 -1
- package/dist/draft-toolbar.d.ts +65 -0
- package/dist/draft-toolbar.d.ts.map +1 -0
- package/dist/draft-toolbar.js +62 -0
- package/dist/draft-toolbar.js.map +1 -0
- package/dist/front-view.d.ts +5 -1
- package/dist/front-view.d.ts.map +1 -1
- package/dist/front-view.js +103 -44
- package/dist/front-view.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/items.d.ts +33 -0
- package/dist/items.d.ts.map +1 -0
- package/dist/items.js +369 -0
- package/dist/items.js.map +1 -0
- package/dist/lazy.d.ts +16 -0
- package/dist/lazy.d.ts.map +1 -1
- package/dist/lazy.js +34 -1
- package/dist/lazy.js.map +1 -1
- package/dist/messages.d.ts +19 -2
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +38 -4
- package/dist/messages.js.map +1 -1
- package/dist/sections/grid.d.ts +25 -1
- package/dist/sections/grid.d.ts.map +1 -1
- package/dist/sections/grid.js +31 -3
- package/dist/sections/grid.js.map +1 -1
- package/package.json +4 -3
- package/runtime-dist/app.css +102 -23
- package/runtime-dist/app.js +2 -2
- package/runtime-dist/c-031pq7qf.js +2 -0
- package/runtime-dist/c-0vbs937h.js +18 -0
- package/runtime-dist/c-1h49vkah.js +2 -0
- package/runtime-dist/c-1hzd2pqr.js +2 -0
- package/runtime-dist/c-1q9r6ndn.js +1 -0
- package/runtime-dist/c-1re10yb3.js +1 -0
- package/runtime-dist/c-1v1v69qs.js +1 -0
- package/runtime-dist/c-1yjbg3yb.js +1 -0
- package/runtime-dist/c-2ag31260.js +2 -0
- package/runtime-dist/c-2c88ebgp.js +1 -0
- package/runtime-dist/c-30chvm5x.js +1 -0
- package/runtime-dist/c-37zx0wkd.js +1 -0
- package/runtime-dist/c-4agg4qbw.js +1 -0
- package/runtime-dist/c-4g3757ck.js +2 -0
- package/runtime-dist/c-4vjd8na5.js +1 -0
- package/runtime-dist/c-523qwqen.js +2 -0
- package/runtime-dist/c-56tgqzdn.js +2 -0
- package/runtime-dist/c-57mnqma1.js +1 -0
- package/runtime-dist/c-5gfe19fa.js +1 -0
- package/runtime-dist/c-5ma45m2j.js +1 -0
- package/runtime-dist/c-74emmp4y.js +1 -0
- package/runtime-dist/c-7dryrrsk.js +2 -0
- package/runtime-dist/c-82sqd7as.js +1 -0
- package/runtime-dist/c-8ahb2ywd.js +1 -0
- package/runtime-dist/c-8cc3yqpn.js +1 -0
- package/runtime-dist/c-8h2rwbd8.js +1 -0
- package/runtime-dist/c-8nyvd0h0.js +1 -0
- package/runtime-dist/c-8r1pgc8w.js +1 -0
- package/runtime-dist/c-8x8fdn2b.js +1 -0
- package/runtime-dist/c-8xxzrkpg.js +2 -0
- package/runtime-dist/c-98tbntdq.js +2 -0
- package/runtime-dist/c-9rx4pqjs.js +2 -0
- package/runtime-dist/c-b5wfx90n.js +1 -0
- package/runtime-dist/c-bhgqqt5x.js +2 -0
- package/runtime-dist/c-c60s3ncm.js +2 -0
- package/runtime-dist/c-cfrv87cv.js +1 -0
- package/runtime-dist/c-d3hafdna.js +1 -0
- package/runtime-dist/c-d8hfdner.js +2 -0
- package/runtime-dist/c-d9rzqgda.js +1 -0
- package/runtime-dist/c-dx8zkcbf.js +1 -0
- package/runtime-dist/c-dzx0rg0g.js +2 -0
- package/runtime-dist/c-e3rddwjq.js +1 -0
- package/runtime-dist/c-e45fhawr.js +1 -0
- package/runtime-dist/c-eh9ryhw7.js +2 -0
- package/runtime-dist/{c-fg782zf4.js → c-er7e0yqs.js} +1 -1
- package/runtime-dist/c-fbtxac36.js +1 -0
- package/runtime-dist/c-g4dt7z6r.js +2 -0
- package/runtime-dist/c-g6vc4fyb.js +1 -0
- package/runtime-dist/c-g9jhyx8j.js +1 -0
- package/runtime-dist/c-gf4wzfng.js +1 -0
- package/runtime-dist/c-gfzghvh2.js +1 -0
- package/runtime-dist/c-grqtxpm9.js +1 -0
- package/runtime-dist/c-h8ny4vpa.js +1 -0
- package/runtime-dist/c-hgdk0vqh.js +1 -0
- package/runtime-dist/c-hrbpqm8q.js +2 -0
- package/runtime-dist/c-j63hz554.js +2 -0
- package/runtime-dist/c-jxqht9an.js +2 -0
- package/runtime-dist/c-jy6yg5r5.js +3 -0
- package/runtime-dist/c-k3yb5e72.js +2 -0
- package/runtime-dist/c-k624qrhh.js +2 -0
- package/runtime-dist/c-kaqzctfm.js +15 -0
- package/runtime-dist/c-kbg0cafy.js +2 -0
- package/runtime-dist/c-kmx0mv0c.js +2 -0
- package/runtime-dist/c-kqsnm92z.js +1 -0
- package/runtime-dist/c-mcy4rvac.js +2 -0
- package/runtime-dist/c-mdj990nz.js +2 -0
- package/runtime-dist/c-mhzk96e8.js +1 -0
- package/runtime-dist/c-mv93h1f5.js +1 -0
- package/runtime-dist/c-mvdn43tv.js +2 -0
- package/runtime-dist/c-n27dcy6d.js +2 -0
- package/runtime-dist/c-n8sg12jt.js +1 -0
- package/runtime-dist/c-n9cyhrcb.js +2 -0
- package/runtime-dist/c-ny0mdx7k.js +2 -0
- package/runtime-dist/c-p3z8t4n5.js +1 -0
- package/runtime-dist/c-p8wyhrwm.js +2 -0
- package/runtime-dist/c-pfc9b97d.js +1 -0
- package/runtime-dist/c-pj08sk6j.js +2 -0
- package/runtime-dist/{c-pgxy0etb.js → c-pk2cv8zh.js} +1 -1
- package/runtime-dist/c-py0rvzyv.js +1 -0
- package/runtime-dist/c-pyj696ce.js +1 -0
- package/runtime-dist/c-qzar8xvm.js +2 -0
- package/runtime-dist/c-rf1xevya.js +1 -0
- package/runtime-dist/{c-ns42txax.js → c-rj7c7mwf.js} +2 -2
- package/runtime-dist/c-rktc0ksd.js +2 -0
- package/runtime-dist/c-rm0av36n.js +1 -0
- package/runtime-dist/c-rv7cxh2k.js +2 -0
- package/runtime-dist/c-s3vrabx6.js +1 -0
- package/runtime-dist/c-sd570jk7.js +2 -0
- package/runtime-dist/c-sjajadt4.js +2 -0
- package/runtime-dist/c-t83mbx7z.js +1 -0
- package/runtime-dist/c-tsyjqc1h.js +2 -0
- package/runtime-dist/c-vmp3ee81.js +1 -0
- package/runtime-dist/c-vztkfwfq.js +1 -0
- package/runtime-dist/c-xw7vce7r.js +2 -0
- package/runtime-dist/c-y7abh583.js +1 -0
- package/runtime-dist/c-ynwn0vws.js +1 -0
- package/runtime-dist/c-za724ed4.js +1 -0
- package/runtime-dist/c-zt8jhyxz.js +1 -0
- package/runtime-dist/c-zv49taf7.js +1 -0
- package/runtime-dist/ui-accordion.css +29 -0
- package/runtime-dist/ui-app-shell.css +36 -0
- package/runtime-dist/ui-avatar.css +28 -0
- package/runtime-dist/ui-badge.css +14 -0
- package/runtime-dist/ui-block-editor.css +85 -0
- package/runtime-dist/ui-block-view.css +50 -0
- package/runtime-dist/ui-block.css +20 -0
- package/runtime-dist/ui-bottom-nav.css +54 -0
- package/runtime-dist/ui-breadcrumb.css +25 -0
- package/runtime-dist/ui-button-group.css +39 -0
- package/runtime-dist/ui-calendar.css +168 -0
- package/runtime-dist/ui-card.css +26 -0
- package/runtime-dist/ui-carousel.css +35 -0
- package/runtime-dist/ui-chart.css +26 -0
- package/runtime-dist/ui-checkbox.css +25 -0
- package/runtime-dist/ui-chip.css +30 -0
- package/runtime-dist/ui-code-editor.css +25 -0
- package/runtime-dist/ui-colorpicker.css +46 -0
- package/runtime-dist/ui-combo.css +43 -0
- package/runtime-dist/ui-dataview.css +50 -0
- package/runtime-dist/ui-datepicker.css +80 -0
- package/runtime-dist/ui-dialog.css +119 -0
- package/runtime-dist/ui-divider.css +18 -0
- package/runtime-dist/ui-fieldset.css +25 -0
- package/runtime-dist/ui-filter-chip.css +24 -0
- package/runtime-dist/ui-floating.css +9 -0
- package/runtime-dist/ui-gantt.css +105 -0
- package/runtime-dist/ui-image.css +34 -0
- package/runtime-dist/ui-inplace.css +19 -0
- package/runtime-dist/ui-json-editor.css +40 -0
- package/runtime-dist/ui-layout.css +39 -0
- package/runtime-dist/ui-listbox.css +52 -0
- package/runtime-dist/ui-map.css +469 -0
- package/runtime-dist/ui-menu.css +38 -0
- package/runtime-dist/ui-menubar.css +55 -0
- package/runtime-dist/ui-meter.css +26 -0
- package/runtime-dist/ui-multiselect.css +62 -0
- package/runtime-dist/ui-nav-drawer.css +118 -0
- package/runtime-dist/ui-number.css +26 -0
- package/runtime-dist/ui-option-list.css +28 -0
- package/runtime-dist/ui-orderlist.css +54 -0
- package/runtime-dist/ui-orgchart.css +71 -0
- package/runtime-dist/ui-paginator.css +25 -0
- package/runtime-dist/ui-panel.css +28 -0
- package/runtime-dist/ui-password.css +26 -0
- package/runtime-dist/ui-picklist.css +58 -0
- package/runtime-dist/ui-popover.css +20 -0
- package/runtime-dist/ui-progress.css +31 -0
- package/runtime-dist/ui-radio.css +29 -0
- package/runtime-dist/ui-rating.css +19 -0
- package/runtime-dist/ui-richtext.css +48 -0
- package/runtime-dist/ui-scheduler.css +132 -0
- package/runtime-dist/ui-scroll-top.css +17 -0
- package/runtime-dist/ui-segmented.css +25 -0
- package/runtime-dist/ui-select.css +47 -0
- package/runtime-dist/ui-sheet.css +56 -0
- package/runtime-dist/ui-skeleton.css +18 -0
- package/runtime-dist/ui-slider.css +59 -0
- package/runtime-dist/ui-speed-dial.css +26 -0
- package/runtime-dist/ui-splitter.css +23 -0
- package/runtime-dist/ui-stepper.css +47 -0
- package/runtime-dist/ui-switch.css +31 -0
- package/runtime-dist/ui-table-panel.css +114 -0
- package/runtime-dist/ui-table.css +430 -0
- package/runtime-dist/ui-tabs.css +45 -0
- package/runtime-dist/ui-taskboard.css +104 -0
- package/runtime-dist/ui-timeline.css +44 -0
- package/runtime-dist/ui-toast.css +43 -0
- package/runtime-dist/ui-toggle-button.css +6 -0
- package/runtime-dist/ui-tooltip.css +21 -0
- package/runtime-dist/ui-tree.css +44 -0
- package/runtime-dist/ui-upload.css +46 -0
- package/runtime-dist/version.json +1 -1
- package/src/browser.ts +21 -2
- package/src/draft-toolbar.ts +67 -0
- package/src/front-view.ts +105 -51
- package/src/index.ts +2 -1
- package/src/items.ts +436 -0
- package/src/lazy.ts +38 -1
- package/src/messages.ts +38 -4
- package/src/sections/grid.ts +40 -4
- package/runtime-dist/c-7dddcgt2.js +0 -2
- package/runtime-dist/c-9a0nzf53.js +0 -2
- package/runtime-dist/c-c1e1x3y1.js +0 -1
- package/runtime-dist/c-fnkq09db.js +0 -1
- package/runtime-dist/c-j29w8z15.js +0 -1
- package/runtime-dist/c-mmxqs2mz.js +0 -1
- package/runtime-dist/c-xsq12y6b.js +0 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — mise en page : pile `.poad-stack`, groupe qui replie `.poad-cluster`, grille `.poad-grid`, deux
|
|
3
|
+
* zones `.poad-split`, panneau latéral `.poad-sidebar` (panneau `.poad-sidebar__panel`), centre `.poad-center`,
|
|
4
|
+
* conteneur de page `.poad-container`, espace `.poad-spacer`. Source unique du style pour tous les paquets de rendu :
|
|
5
|
+
* ui-angular l'inclut dans ses composants de mise en page (encapsulation désactivée), les autres rendus le font charger
|
|
6
|
+
* par l'application. CSS pur, ne lit que les jetons --poad-* (`--poad-gap-*`, `--poad-bp-*`, `--poad-container-max`,
|
|
7
|
+
* par les styles en ligne que calcule le module `layout`).
|
|
8
|
+
*
|
|
9
|
+
* Les enfants sont les enfants DIRECTS de l'élément qui porte la classe (l'hôte Angular, la `<div>` des autres rendus).
|
|
10
|
+
* Écrit à partir des styles `:host` des composants Angular, une règle pour une règle (`:host` → la classe,
|
|
11
|
+
* `:host ::ng-deep > *` → `> *`).
|
|
12
|
+
*/
|
|
13
|
+
.poad-stack { display: flex; flex-direction: column; min-width: 0; }
|
|
14
|
+
.poad-stack.is-inline { display: inline-flex; }
|
|
15
|
+
.poad-stack > * { min-width: 0; }
|
|
16
|
+
|
|
17
|
+
.poad-cluster { display: flex; min-width: 0; }
|
|
18
|
+
.poad-cluster.is-inline { display: inline-flex; }
|
|
19
|
+
|
|
20
|
+
.poad-grid { display: grid; min-width: 0; }
|
|
21
|
+
.poad-grid > * { min-width: 0; }
|
|
22
|
+
|
|
23
|
+
.poad-split { display: grid; min-width: 0; }
|
|
24
|
+
.poad-split > * { min-width: 0; }
|
|
25
|
+
|
|
26
|
+
/* panneau latéral « Every Layout » : le panneau garde sa largeur, le contenu prend le reste ; sous --poad-sb-min, empilés */
|
|
27
|
+
.poad-sidebar { display: flex; flex-wrap: wrap; min-width: 0; }
|
|
28
|
+
.poad-sidebar > * { flex-basis: 0; flex-grow: 999; min-inline-size: var(--poad-sb-min, 60%); min-width: 0; }
|
|
29
|
+
.poad-sidebar > .poad-sidebar__panel { flex-basis: var(--poad-sb-w, 280px); flex-grow: 1; min-inline-size: 0; }
|
|
30
|
+
.poad-sidebar.side-left > .poad-sidebar__panel { order: -1; }
|
|
31
|
+
.poad-sidebar.is-collapsed > * { flex-basis: 100% !important; min-inline-size: 0 !important; }
|
|
32
|
+
|
|
33
|
+
.poad-center { display: block; box-sizing: content-box; margin-inline: auto; min-width: 0; }
|
|
34
|
+
.poad-center.and-text { text-align: center; }
|
|
35
|
+
.poad-center.is-intrinsic { display: flex; flex-direction: column; align-items: center; }
|
|
36
|
+
|
|
37
|
+
.poad-container { display: block; margin-inline: auto; width: 100%; box-sizing: border-box; min-width: 0; }
|
|
38
|
+
|
|
39
|
+
.poad-spacer { display: block; }
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — liste de sélection toujours visible (`.poad-listbox`). Source unique du style pour tous les
|
|
3
|
+
* paquets de rendu : ui-angular l'inclut dans `poad-listbox` (encapsulation désactivée), les autres rendus le font
|
|
4
|
+
* charger par l'application. CSS pur, ne lit que les jetons --poad-* (charger `tokens.css` avant ; icônes :
|
|
5
|
+
* `icon.css`).
|
|
6
|
+
*
|
|
7
|
+
* Classes de la racine (`listboxClasses()`) : `is-disabled`, `is-invalid`, `is-readonly`, `size-sm|lg`. Parties :
|
|
8
|
+
* `.poad-listbox__hd`, `.poad-listbox__filter` (`input.poad-listbox__query`, `button.poad-listbox__clear`),
|
|
9
|
+
* `.poad-listbox__all` (case `.poad-listbox__cb`, compteur `small`), `.poad-listbox__list` > `.poad-listbox__group`,
|
|
10
|
+
* `.poad-listbox__opt` (`is-active`, `is-selected`, `is-disabled` ; `.poad-listbox__cb`, `.poad-listbox__icon`,
|
|
11
|
+
* `.poad-listbox__label`, `.poad-listbox__hint`, `.poad-listbox__tick`), `.poad-listbox__empty`, `.poad-listbox__ft`.
|
|
12
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle (anciens noms : `clr`, `cb`, `ic`,
|
|
13
|
+
* `lbl`, `hint`, `tick`, `input` du filtre) ; propriétés logiques sur l'axe en ligne.
|
|
14
|
+
*/
|
|
15
|
+
.poad-listbox { display: flex; flex-direction: column; min-width: 0; box-sizing: border-box; background: var(--poad-input-bg); border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius); font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); overflow: hidden; transition: border-color var(--poad-dur), box-shadow var(--poad-dur); }
|
|
16
|
+
.poad-listbox:focus-within { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
17
|
+
.poad-listbox.is-invalid { border-color: var(--poad-danger); }
|
|
18
|
+
.poad-listbox.is-invalid:focus-within { box-shadow: 0 0 0 3px var(--poad-danger-soft); }
|
|
19
|
+
.poad-listbox.is-disabled { opacity: .6; background: var(--poad-bg-subtle); }
|
|
20
|
+
.poad-listbox.size-sm { font-size: var(--poad-font-size-sm); }
|
|
21
|
+
.poad-listbox.size-lg { font-size: var(--poad-font-size-lg); }
|
|
22
|
+
.poad-listbox .poad-listbox__hd, .poad-listbox .poad-listbox__ft { padding: 6px 8px; border-bottom: 1px solid var(--poad-border); font-size: var(--poad-font-size-sm); color: var(--poad-fg-secondary); }
|
|
23
|
+
.poad-listbox .poad-listbox__ft { border-bottom: 0; border-top: 1px solid var(--poad-border); }
|
|
24
|
+
.poad-listbox .poad-listbox__filter { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--poad-border); color: var(--poad-fg-muted); }
|
|
25
|
+
.poad-listbox .poad-listbox__query { flex: 1 1 0; width: 0; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; color: var(--poad-fg); font: inherit; font-size: var(--poad-font-size-sm); }
|
|
26
|
+
.poad-listbox .poad-listbox__clear { border: 0; background: transparent; color: var(--poad-fg-muted); cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 4px; }
|
|
27
|
+
.poad-listbox .poad-listbox__clear:hover { color: var(--poad-fg); background: var(--poad-hover); }
|
|
28
|
+
.poad-listbox .poad-listbox__clear:focus-visible { outline: 2px solid var(--poad-ring); }
|
|
29
|
+
.poad-listbox .poad-listbox__all { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--poad-border); font-size: var(--poad-font-size-sm); cursor: pointer; }
|
|
30
|
+
.poad-listbox .poad-listbox__all small { margin-inline-start: auto; font: 500 10.5px var(--poad-font-mono); color: var(--poad-fg-muted); }
|
|
31
|
+
.poad-listbox .poad-listbox__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px; outline: none; }
|
|
32
|
+
.poad-listbox .poad-listbox__group { font: 600 10px/1 var(--poad-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--poad-fg-muted); padding: 8px 8px 4px; }
|
|
33
|
+
.poad-listbox .poad-listbox__opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; user-select: none; line-height: 1.3; }
|
|
34
|
+
.poad-listbox.size-sm .poad-listbox__opt { padding: 4px 6px; }
|
|
35
|
+
.poad-listbox .poad-listbox__opt:hover, .poad-listbox .poad-listbox__opt.is-active { background: var(--poad-hover); }
|
|
36
|
+
.poad-listbox .poad-listbox__opt.is-selected { background: var(--poad-accent-soft); color: var(--poad-accent); font-weight: 500; }
|
|
37
|
+
.poad-listbox .poad-listbox__opt.is-selected.is-active { box-shadow: inset 0 0 0 1px var(--poad-accent); }
|
|
38
|
+
.poad-listbox .poad-listbox__opt.is-disabled { opacity: .5; cursor: not-allowed; }
|
|
39
|
+
.poad-listbox.is-readonly .poad-listbox__opt { cursor: default; }
|
|
40
|
+
.poad-listbox .poad-listbox__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
41
|
+
.poad-listbox .poad-listbox__hint { font: 11px var(--poad-font-mono); color: var(--poad-fg-muted); }
|
|
42
|
+
.poad-listbox .poad-listbox__icon { color: var(--poad-fg-muted); }
|
|
43
|
+
.poad-listbox .poad-listbox__opt.is-selected .poad-listbox__icon, .poad-listbox .poad-listbox__tick { color: var(--poad-accent); }
|
|
44
|
+
.poad-listbox .poad-listbox__cb { width: 15px; height: 15px; box-sizing: border-box; border: 1.5px solid var(--poad-border-strong); border-radius: 4px; background: var(--poad-input-bg); display: inline-grid; place-items: center; color: var(--poad-fg-on-accent); flex: none; transition: all var(--poad-dur); }
|
|
45
|
+
.poad-listbox .poad-listbox__cb .poad-icon { opacity: 0; }
|
|
46
|
+
.poad-listbox .poad-listbox__cb.is-on { background: var(--poad-accent); border-color: var(--poad-accent); }
|
|
47
|
+
.poad-listbox .poad-listbox__cb.is-on .poad-icon { opacity: 1; }
|
|
48
|
+
.poad-listbox .poad-listbox__cb.is-ind { background: var(--poad-accent); border-color: var(--poad-accent); }
|
|
49
|
+
.poad-listbox .poad-listbox__cb.is-ind::after { content: ''; width: 7px; height: 2px; background: var(--poad-fg-on-accent); border-radius: 1px; }
|
|
50
|
+
.poad-listbox .poad-listbox__cb:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 1px; }
|
|
51
|
+
.poad-listbox .poad-listbox__empty { padding: 14px 10px; text-align: center; color: var(--poad-fg-muted); font-size: var(--poad-font-size-sm); }
|
|
52
|
+
@media (prefers-reduced-motion: reduce) { .poad-listbox, .poad-listbox .poad-listbox__cb { transition: none; } }
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Carte (poad-map) — même DOM sur tous les rendus (voir src/map/map.classes.ts) :
|
|
3
|
+
* `.poad-map` (`is-loading|is-ready|is-error|has-chrome` ; `--poad-map-h`, `--poad-map-inset-left|right`)
|
|
4
|
+
* > `.poad-map__canvas` (MapLibre : canevas `role="region"` nommé, contrôles), `.poad-map__corner.tl|tr|bl|br`
|
|
5
|
+
* (contenu de l'application), `.poad-map__state` (chargement, erreur).
|
|
6
|
+
* Contient aussi le sous-ensemble utile de maplibre-gl.css (positionnement), limité à `.poad-map`, et l'habillage des
|
|
7
|
+
* contrôles, popups, info-bulle et marqueurs par les jetons (clair / sombre). La feuille complète de MapLibre reste
|
|
8
|
+
* facultative.
|
|
9
|
+
*/
|
|
10
|
+
.poad-map { position: relative; display: block; width: 100%; height: var(--poad-map-h, 480px); border-radius: var(--poad-radius-lg, 12px); overflow: hidden;
|
|
11
|
+
background: var(--poad-bg-subtle); font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); isolation: isolate; }
|
|
12
|
+
.poad-map .poad-map__canvas { position: absolute; inset: 0; }
|
|
13
|
+
.poad-map .poad-map__canvas .maplibregl-map { width: 100%; height: 100%; }
|
|
14
|
+
.poad-map .poad-map__corner { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: calc(100% - 24px); }
|
|
15
|
+
.poad-map .poad-map__corner:empty { display: none; }
|
|
16
|
+
.poad-map .poad-map__corner > * { pointer-events: auto; }
|
|
17
|
+
.poad-map .poad-map__corner.tl { top: 12px; inset-inline-start: calc(12px + min(var(--poad-map-inset-left, 0px), 100% - 50px)); }
|
|
18
|
+
.poad-map .poad-map__corner.tr { top: 12px; inset-inline-end: calc(12px + min(var(--poad-map-inset-right, 0px), 100% - 50px)); align-items: flex-end; }
|
|
19
|
+
.poad-map .poad-map__corner.bl { bottom: 12px; inset-inline-start: calc(12px + min(var(--poad-map-inset-left, 0px), 100% - 50px)); }
|
|
20
|
+
.poad-map .poad-map__corner.br { bottom: 12px; inset-inline-end: calc(12px + min(var(--poad-map-inset-right, 0px), 100% - 50px)); align-items: flex-end; }
|
|
21
|
+
.poad-map .poad-map__corner, .poad-map .maplibregl-ctrl-top-left, .poad-map .maplibregl-ctrl-bottom-left, .poad-map .maplibregl-ctrl-top-right, .poad-map .maplibregl-ctrl-bottom-right { transition: left .18s, right .18s; }
|
|
22
|
+
/* les contrôles natifs s'écartent du contenu posé dans les coins (recherche, légende…) */
|
|
23
|
+
.poad-map .maplibregl-ctrl-top-left { padding-top: var(--poad-map-tl-h, 0px); } .poad-map .maplibregl-ctrl-top-right { padding-top: var(--poad-map-tr-h, 0px); }
|
|
24
|
+
.poad-map .maplibregl-ctrl-bottom-left { padding-bottom: var(--poad-map-bl-h, 0px); } .poad-map .maplibregl-ctrl-bottom-right { padding-bottom: var(--poad-map-br-h, 0px); }
|
|
25
|
+
/* décalés par le rail et le panneau ouvert, bornés comme eux (50 px de carte toujours visibles) */
|
|
26
|
+
.poad-map .maplibregl-ctrl-top-left, .poad-map .maplibregl-ctrl-bottom-left { inset-inline-start: min(var(--poad-map-inset-left, 0px), 100% - 50px); }
|
|
27
|
+
.poad-map .maplibregl-ctrl-top-right, .poad-map .maplibregl-ctrl-bottom-right { inset-inline-end: min(var(--poad-map-inset-right, 0px), 100% - 50px); }
|
|
28
|
+
.poad-map .poad-map__state { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; gap: 8px; align-content: center; color: var(--poad-fg-secondary); font-size: 12.5px;
|
|
29
|
+
background: color-mix(in srgb, var(--poad-bg-subtle) 85%, transparent); }
|
|
30
|
+
.poad-map .poad-map__state.is-error { padding: 24px; }
|
|
31
|
+
/* clavier : le canevas (flèches = déplacer, + / − = zoomer, Maj + flèches = pivoter) montre son focus */
|
|
32
|
+
.poad-map .maplibregl-canvas-container.maplibregl-interactive .maplibregl-canvas { outline: none; }
|
|
33
|
+
.poad-map .maplibregl-canvas:focus-visible { outline: none; }
|
|
34
|
+
/* anneau double propre à la carte : l'accent plein (≥ 3:1 sur le fond de la page comme sur le canevas, clair ou sombre)
|
|
35
|
+
doublé d'un liseré de la couleur du fond, qui le détache d'un fond de carte de même teinte. `--poad-ring` (voile
|
|
36
|
+
translucide partagé par les autres composants) n'est pas touché. */
|
|
37
|
+
.poad-map:has(.maplibregl-canvas:focus-visible)::after { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
|
|
38
|
+
box-shadow: inset 0 0 0 3px var(--poad-map-focus, var(--poad-accent)), inset 0 0 0 5px var(--poad-map-focus-halo, var(--poad-bg)); }
|
|
39
|
+
|
|
40
|
+
/* ---- sous-ensemble de maplibre-gl.css (positionnement) ---- */
|
|
41
|
+
/* `.poad-map__canvas` porte `maplibregl-map` : il reste en position absolue (pas de `position: relative` ici) */
|
|
42
|
+
.poad-map .maplibregl-map { font: 12px/20px var(--poad-font); overflow: hidden; -webkit-tap-highlight-color: rgba(0,0,0,0); }
|
|
43
|
+
.poad-map .maplibregl-canvas { left: 0; position: absolute; top: 0; }
|
|
44
|
+
.poad-map:fullscreen, .poad-map .maplibregl-map:fullscreen { height: 100%; width: 100%; border-radius: 0; }
|
|
45
|
+
.poad-map .maplibregl-canvas-container.maplibregl-interactive, .poad-map .maplibregl-ctrl-group button.maplibregl-ctrl-compass { cursor: grab; -webkit-user-select: none; user-select: none; }
|
|
46
|
+
.poad-map .maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer { cursor: pointer; }
|
|
47
|
+
.poad-map .maplibregl-canvas-container.maplibregl-interactive:active, .poad-map .maplibregl-ctrl-group button.maplibregl-ctrl-compass:active { cursor: grabbing; }
|
|
48
|
+
.poad-map .maplibregl-canvas-container.maplibregl-touch-zoom-rotate, .poad-map .maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas { touch-action: pan-x pan-y; }
|
|
49
|
+
.poad-map .maplibregl-canvas-container.maplibregl-touch-drag-pan, .poad-map .maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas { touch-action: pinch-zoom; }
|
|
50
|
+
.poad-map .maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan, .poad-map .maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas { touch-action: none; }
|
|
51
|
+
.poad-map .maplibregl-ctrl-bottom-left, .poad-map .maplibregl-ctrl-bottom-right, .poad-map .maplibregl-ctrl-top-left, .poad-map .maplibregl-ctrl-top-right { pointer-events: none; position: absolute; z-index: 2; }
|
|
52
|
+
.poad-map .maplibregl-ctrl-top-left, .poad-map .maplibregl-ctrl-top-right { top: 0; }
|
|
53
|
+
.poad-map .maplibregl-ctrl-bottom-left, .poad-map .maplibregl-ctrl-bottom-right { bottom: 0; }
|
|
54
|
+
.poad-map .maplibregl-ctrl { clear: both; pointer-events: auto; transform: translate(0); }
|
|
55
|
+
.poad-map .maplibregl-ctrl-top-left .maplibregl-ctrl { float: left; margin: 10px 0 0 10px; } .poad-map .maplibregl-ctrl-top-right .maplibregl-ctrl { float: right; margin: 10px 10px 0 0; }
|
|
56
|
+
.poad-map .maplibregl-ctrl-bottom-left .maplibregl-ctrl { float: left; margin: 0 0 10px 10px; } .poad-map .maplibregl-ctrl-bottom-right .maplibregl-ctrl { float: right; margin: 0 10px 10px 0; }
|
|
57
|
+
.poad-map .maplibregl-ctrl-group button { background-color: transparent; border: 0; box-sizing: border-box; cursor: pointer; display: block; height: 29px; outline: none; padding: 0; width: 29px; }
|
|
58
|
+
.poad-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--poad-border); }
|
|
59
|
+
.poad-map .maplibregl-ctrl button .maplibregl-ctrl-icon { background-position: 50%; background-repeat: no-repeat; display: block; height: 100%; width: 100%; }
|
|
60
|
+
.poad-map .maplibregl-ctrl-attrib.maplibregl-compact { margin: 0 10px 10px; position: relative; }
|
|
61
|
+
.poad-map .maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 2px 28px 2px 8px; visibility: visible; }
|
|
62
|
+
.poad-map .maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner { display: none; }
|
|
63
|
+
.poad-map .maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner { display: block; }
|
|
64
|
+
.poad-map .maplibregl-ctrl-attrib-button { position: absolute; right: 0; top: 0; height: 24px; width: 24px; border: 0; background: transparent; cursor: pointer; }
|
|
65
|
+
.poad-map .maplibregl-popup { display: flex; left: 0; pointer-events: none; position: absolute; top: 0; will-change: transform; }
|
|
66
|
+
.poad-map .maplibregl-popup-anchor-top, .poad-map .maplibregl-popup-anchor-top-left, .poad-map .maplibregl-popup-anchor-top-right { flex-direction: column; }
|
|
67
|
+
.poad-map .maplibregl-popup-anchor-bottom, .poad-map .maplibregl-popup-anchor-bottom-left, .poad-map .maplibregl-popup-anchor-bottom-right { flex-direction: column-reverse; }
|
|
68
|
+
.poad-map .maplibregl-popup-anchor-left { flex-direction: row; } .poad-map .maplibregl-popup-anchor-right { flex-direction: row-reverse; }
|
|
69
|
+
.poad-map .maplibregl-popup-tip { border: 10px solid transparent; height: 0; width: 0; z-index: 1; }
|
|
70
|
+
.poad-map .maplibregl-popup-anchor-top .maplibregl-popup-tip { align-self: center; border-top: none; }
|
|
71
|
+
.poad-map .maplibregl-popup-anchor-top-left .maplibregl-popup-tip { align-self: flex-start; border-left: none; border-top: none; }
|
|
72
|
+
.poad-map .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { align-self: flex-end; border-right: none; border-top: none; }
|
|
73
|
+
.poad-map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { align-self: center; border-bottom: none; }
|
|
74
|
+
.poad-map .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip { align-self: flex-start; border-bottom: none; border-left: none; }
|
|
75
|
+
.poad-map .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { align-self: flex-end; border-bottom: none; border-right: none; }
|
|
76
|
+
.poad-map .maplibregl-popup-anchor-left .maplibregl-popup-tip { align-self: center; border-left: none; }
|
|
77
|
+
.poad-map .maplibregl-popup-anchor-right .maplibregl-popup-tip { align-self: center; border-right: none; }
|
|
78
|
+
.poad-map .maplibregl-popup-close-button { background-color: transparent; border: 0; border-radius: 0 3px 0 0; cursor: pointer; position: absolute; right: 0; top: 0; }
|
|
79
|
+
.poad-map .maplibregl-popup-content { pointer-events: auto; position: relative; }
|
|
80
|
+
.poad-map .maplibregl-popup-track-pointer { display: none; }
|
|
81
|
+
.poad-map .maplibregl-marker { left: 0; position: absolute; top: 0; will-change: transform; transition: opacity .2s; }
|
|
82
|
+
.poad-map .maplibregl-user-location-dot { background-color: #1da1f2; border-radius: 50%; height: 15px; width: 15px; position: relative; }
|
|
83
|
+
.poad-map .maplibregl-user-location-dot::after { border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 3px rgba(0,0,0,.35); box-sizing: border-box; content: ""; height: 19px; left: -2px; position: absolute; top: -2px; width: 19px; }
|
|
84
|
+
.poad-map .maplibregl-user-location-accuracy-circle { background-color: rgba(29,161,242,.2); border-radius: 100%; height: 1px; width: 1px; }
|
|
85
|
+
.poad-map .maplibregl-cooperative-gesture-screen { align-items: center; background: rgba(0,0,0,.4); color: #fff; display: flex; font: 14px var(--poad-font); line-height: 1.2; inset: 0; justify-content: center;
|
|
86
|
+
opacity: 0; padding: 1rem; pointer-events: none; position: absolute; transition: opacity 1s ease 1s; z-index: 99999; border-radius: inherit; }
|
|
87
|
+
.poad-map .maplibregl-cooperative-gesture-screen.maplibregl-show { opacity: 1; transition: opacity .05s; }
|
|
88
|
+
|
|
89
|
+
/* ---- habillage par les jetons ---- */
|
|
90
|
+
.poad-map .maplibregl-ctrl-group { background: var(--poad-surface); border: 1px solid var(--poad-border); border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.12); overflow: hidden; }
|
|
91
|
+
.poad-map .maplibregl-ctrl-group button { width: 32px; height: 32px; color: var(--poad-fg-secondary); background: transparent; }
|
|
92
|
+
.poad-map .maplibregl-ctrl-group button:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
93
|
+
.poad-map .maplibregl-ctrl-group button:focus-visible { outline: 2px solid var(--poad-ring, var(--poad-accent)); outline-offset: -2px; }
|
|
94
|
+
.poad-map .maplibregl-ctrl-group button:disabled { opacity: .4; }
|
|
95
|
+
.poad-map .maplibregl-ctrl button .maplibregl-ctrl-icon { background-color: currentColor; background-image: none;
|
|
96
|
+
-webkit-mask: var(--_ico) center / 16px 16px no-repeat; mask: var(--_ico) center / 16px 16px no-repeat;
|
|
97
|
+
--_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
|
|
98
|
+
.poad-map .maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
|
|
99
|
+
.poad-map .maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M12 3l4 8H8z' fill='black'/%3E%3C/svg%3E"); }
|
|
100
|
+
.poad-map .maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E"); }
|
|
101
|
+
.poad-map .maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v3a2 2 0 0 1-2 2H3M21 8h-3a2 2 0 0 1-2-2V3M3 16h3a2 2 0 0 1 2 2v3M16 21v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E"); }
|
|
102
|
+
.poad-map .maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E"); }
|
|
103
|
+
.poad-map .maplibregl-ctrl button.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon { background-color: var(--poad-accent); }
|
|
104
|
+
.poad-map .maplibregl-ctrl button.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon { animation: poad-map-blink 1s infinite; }
|
|
105
|
+
@keyframes poad-map-blink { 50% { opacity: .35; } }
|
|
106
|
+
@media (prefers-reduced-motion: reduce) { .poad-map .maplibregl-ctrl button.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon { animation: none; } }
|
|
107
|
+
.poad-map .maplibregl-ctrl-scale { background: color-mix(in srgb, var(--poad-surface) 80%, transparent); border: 1px solid var(--poad-fg-secondary); border-top: 0; color: var(--poad-fg-secondary);
|
|
108
|
+
font: 10.5px var(--poad-font-mono); border-radius: 0 0 3px 3px; padding: 0 5px; box-sizing: border-box; }
|
|
109
|
+
.poad-map .maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--poad-surface) 82%, transparent); color: var(--poad-fg-secondary); font: 10.5px var(--poad-font); border-radius: 4px; padding: 2px 6px; margin: 0 8px 8px !important; }
|
|
110
|
+
.poad-map .maplibregl-ctrl-attrib a { color: var(--poad-fg-secondary); text-decoration: none; }
|
|
111
|
+
.poad-map .maplibregl-ctrl-attrib a:hover { color: var(--poad-accent); }
|
|
112
|
+
.poad-map .maplibregl-ctrl-attrib.maplibregl-compact { min-height: 24px; }
|
|
113
|
+
.poad-map .maplibregl-ctrl-attrib-button { color: var(--poad-fg-muted); background-color: currentColor;
|
|
114
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8v.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
|
|
115
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8v.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
|
|
116
|
+
.poad-map .maplibregl-ctrl-attrib-button:focus-visible { outline: 2px solid var(--poad-ring, var(--poad-accent)); outline-offset: 1px; }
|
|
117
|
+
.poad-map .maplibregl-popup { z-index: 5; max-width: 320px !important; }
|
|
118
|
+
.poad-map .maplibregl-popup-content { background: var(--poad-overlay, var(--poad-surface)); --poad-hover: var(--poad-overlay-hover); color: var(--poad-fg); border: 1px solid var(--poad-border); border-radius: 10px;
|
|
119
|
+
box-shadow: var(--poad-shadow-lg); padding: 10px 12px; font: 12.5px/1.4 var(--poad-font); min-width: 160px; }
|
|
120
|
+
.poad-map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .poad-map .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .poad-map .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--poad-overlay, var(--poad-surface)); }
|
|
121
|
+
.poad-map .maplibregl-popup-anchor-top .maplibregl-popup-tip, .poad-map .maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .poad-map .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--poad-overlay, var(--poad-surface)); }
|
|
122
|
+
.poad-map .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-inline-end-color: var(--poad-overlay, var(--poad-surface)); }
|
|
123
|
+
.poad-map .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-inline-start-color: var(--poad-overlay, var(--poad-surface)); }
|
|
124
|
+
.poad-map .maplibregl-popup-close-button { width: 22px; height: 22px; inset-inline-end: 4px; top: 4px; border-radius: 5px; color: var(--poad-fg-muted); font-size: 0; background-color: currentColor;
|
|
125
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
|
|
126
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
|
|
127
|
+
.poad-map .maplibregl-popup-close-button:hover { background-color: var(--poad-fg); }
|
|
128
|
+
.poad-map .maplibregl-popup-content:has(> .maplibregl-popup-close-button) { padding-inline-end: 32px; }
|
|
129
|
+
/* une popup ouverte cache l'info-bulle de survol (elle la recouvrait) */
|
|
130
|
+
.poad-map:has(.maplibregl-popup:not(.poad-map-tooltip)) .poad-map-tooltip { display: none; }
|
|
131
|
+
.poad-map .maplibregl-popup-close-button:focus-visible { outline: 2px solid var(--poad-ring, var(--poad-accent)); outline-offset: 1px; }
|
|
132
|
+
.poad-map .poad-map-popup__title { display: block; font-weight: 600; font-size: 13px; margin: 0 18px 4px 0; }
|
|
133
|
+
.poad-map .poad-map-popup__sub { display: block; font-size: 11.5px; color: var(--poad-fg-secondary); }
|
|
134
|
+
.poad-map .poad-map-popup__kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 11.5px; color: var(--poad-fg-secondary); }
|
|
135
|
+
.poad-map .poad-map-popup__kv b { font: 600 10px var(--poad-font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--poad-fg-muted); }
|
|
136
|
+
.poad-map .poad-map-tooltip .maplibregl-popup-content { padding: 4px 8px; font-size: 11.5px; background: var(--poad-fg); color: var(--poad-bg); border: 0; border-radius: 6px; min-width: 0; }
|
|
137
|
+
.poad-map .poad-map-tooltip .maplibregl-popup-tip { display: none; }
|
|
138
|
+
.poad-map .maplibregl-marker.poad-map-marker { width: 26px; height: 26px; }
|
|
139
|
+
.poad-map .poad-map-marker__pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--poad-accent); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transform: rotate(-45deg) translate(3px, -3px); box-sizing: border-box; }
|
|
140
|
+
.poad-map .poad-map-marker__pin::after { content: ''; position: absolute; inset-inline-start: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
|
|
141
|
+
|
|
142
|
+
/* ---- légende (poad-map-legend) : voir src/map/legend.ts ---- */
|
|
143
|
+
.poad-map-legend { display: block; box-sizing: border-box; min-width: 160px; max-width: 260px; background: color-mix(in srgb, var(--poad-surface) 94%, transparent); border: 1px solid var(--poad-border);
|
|
144
|
+
border-radius: 8px; font: 12px/1.35 var(--poad-font); color: var(--poad-fg); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
|
|
145
|
+
.poad-map-legend__head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; min-height: 32px; padding: 6px 10px; font-weight: 600; font-size: 12px; cursor: pointer;
|
|
146
|
+
color: var(--poad-fg); border-radius: 7px; }
|
|
147
|
+
.poad-map-legend__head:hover { background: var(--poad-hover); }
|
|
148
|
+
.poad-map-legend__head .poad-map-legend__chev { margin-inline-start: auto; color: var(--poad-fg-muted); transition: transform .15s; }
|
|
149
|
+
.poad-map-legend.is-collapsed .poad-map-legend__chev { transform: rotate(-90deg); }
|
|
150
|
+
[dir="rtl"] .poad-map-legend.is-collapsed .poad-map-legend__chev { transform: rotate(90deg); }
|
|
151
|
+
.poad-map-legend__body { padding: 0 6px 8px; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
|
|
152
|
+
.poad-map-legend__group { display: grid; gap: 2px; }
|
|
153
|
+
.poad-map-legend__toggle { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 3px 4px; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--poad-fg); }
|
|
154
|
+
.poad-map-legend__toggle:hover { background: var(--poad-hover); }
|
|
155
|
+
/* l'anneau plein de la carte, pas le voile partagé de base.css (spécificité (0,3,1) > (0,3,0)) */
|
|
156
|
+
.poad-map-legend button.poad-map-legend__head:focus-visible, .poad-map-legend button.poad-map-legend__toggle:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: -2px; box-shadow: none; }
|
|
157
|
+
.poad-map-legend__check { flex: none; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--poad-border-strong); background: var(--poad-surface); box-sizing: border-box; }
|
|
158
|
+
.poad-map-legend__toggle[aria-checked="true"] .poad-map-legend__check { background: var(--poad-accent); border-color: var(--poad-accent); }
|
|
159
|
+
.poad-map-legend__toggle[aria-checked="true"] .poad-map-legend__check::after { content: ''; width: 7px; height: 4px; border: solid var(--poad-fg-on-accent, #fff); border-width: 0 0 2px 2px; transform: translate(0, -1px) rotate(-45deg); }
|
|
160
|
+
.poad-map-legend__title { font-weight: 600; font-size: 11.5px; padding: 3px 4px 0; }
|
|
161
|
+
.poad-map-legend__items { list-style: none; margin: 0; padding: 0 4px 2px 26px; display: grid; gap: 3px; }
|
|
162
|
+
.poad-map-legend__toggle + .poad-map-legend__items, .poad-map-legend__title + .poad-map-legend__items { padding-top: 1px; }
|
|
163
|
+
.poad-map-legend:not(.is-toggleable) .poad-map-legend__items { padding-inline-start: 4px; }
|
|
164
|
+
.poad-map-legend__item { display: flex; align-items: center; gap: 7px; color: var(--poad-fg-secondary); font-size: 11.5px; }
|
|
165
|
+
.poad-map-legend__group.is-hidden .poad-map-legend__items { opacity: .5; }
|
|
166
|
+
.poad-map-legend__swatch { width: 12px; height: 12px; flex: none; box-sizing: border-box; }
|
|
167
|
+
.poad-map-legend__swatch.k-point { border-radius: 50%; background: var(--c); border: 1.5px solid var(--poad-surface); box-shadow: 0 0 0 1px var(--poad-border-strong); }
|
|
168
|
+
.poad-map-legend__swatch.k-line { height: 0; border-top: 3px solid var(--s); border-radius: 2px; }
|
|
169
|
+
.poad-map-legend__swatch.k-line.is-dash { border-top-style: dashed; }
|
|
170
|
+
.poad-map-legend__swatch.k-polygon { border-radius: 3px; background: color-mix(in srgb, var(--c) 40%, transparent); border: 1.5px solid var(--s); }
|
|
171
|
+
.poad-map-legend__empty { margin: 0; padding: 2px 4px; color: var(--poad-fg-muted); font-style: italic; }
|
|
172
|
+
.poad-map-legend.is-compact .poad-map-legend__item { font-size: 11px; } .poad-map-legend.is-compact .poad-map-legend__body { max-height: 160px; }
|
|
173
|
+
|
|
174
|
+
/* ---- recherche de lieu (poad-map-search) : voir src/map/search.ts ---- */
|
|
175
|
+
.poad-map-search { display: block; position: relative; box-sizing: border-box; width: var(--poad-map-search-width, 300px); max-width: 100%; font: var(--poad-font-size, 13px) var(--poad-font); z-index: 6; }
|
|
176
|
+
.poad-map-search__box { display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 36px; padding: 0 6px 0 10px; background: var(--poad-surface); border: 1px solid var(--poad-border-strong, var(--poad-border));
|
|
177
|
+
border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.12); color: var(--poad-fg-muted); transition: border-color var(--poad-dur, .15s), box-shadow var(--poad-dur, .15s); }
|
|
178
|
+
.poad-map-search__box.has-focus { border-color: var(--poad-map-focus, var(--poad-accent)); box-shadow: 0 0 0 1px var(--poad-map-focus, var(--poad-accent)), 0 2px 6px rgba(0,0,0,.12); }
|
|
179
|
+
.poad-map-search__input { flex: 1 1 0; width: 0; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--poad-fg); font: inherit; padding: 0; }
|
|
180
|
+
.poad-map-search__input::placeholder { color: var(--poad-fg-muted); opacity: 1; }
|
|
181
|
+
.poad-map-search__input::-webkit-search-cancel-button { display: none; }
|
|
182
|
+
.poad-map-search__clear { all: unset; box-sizing: border-box; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 5px; color: var(--poad-fg-muted); cursor: pointer; }
|
|
183
|
+
.poad-map-search__clear:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
184
|
+
.poad-map-search button.poad-map-search__clear:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: 0; box-shadow: none; }
|
|
185
|
+
.poad-map-search__busy { flex: none; display: grid; place-items: center; width: 24px; color: var(--poad-accent); }
|
|
186
|
+
.poad-map-search__list, .poad-map-search__empty { position: absolute; inset-inline: 0; top: calc(100% + 6px); box-sizing: border-box; margin: 0; padding: 4px; background: var(--poad-overlay, var(--poad-surface));
|
|
187
|
+
--poad-hover: var(--poad-overlay-hover, var(--poad-hover)); border: 1px solid var(--poad-border); border-radius: 9px; box-shadow: var(--poad-shadow-lg, 0 8px 24px rgba(0,0,0,.18)); }
|
|
188
|
+
.poad-map-search__list { list-style: none; max-height: 280px; overflow: auto; }
|
|
189
|
+
.poad-map-search__option { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 8px; border-radius: 6px; cursor: pointer; color: var(--poad-fg); font-size: 12.5px; }
|
|
190
|
+
.poad-map-search__option > .poad-icon, .poad-map-search__option > svg { flex: none; color: var(--poad-fg-muted); }
|
|
191
|
+
.poad-map-search__option.is-active { background: var(--poad-hover); box-shadow: inset 2px 0 0 var(--poad-accent); }
|
|
192
|
+
[dir="rtl"] .poad-map-search__option.is-active { box-shadow: inset -2px 0 0 var(--poad-accent); }
|
|
193
|
+
.poad-map-search__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
194
|
+
.poad-map-search__context { flex: 0 1 auto; min-width: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--poad-fg-muted); font-size: 11px; }
|
|
195
|
+
.poad-map-search__empty { padding: 8px 12px; color: var(--poad-fg-muted); font-style: italic; font-size: 12.5px; }
|
|
196
|
+
.poad-map-search__status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
197
|
+
|
|
198
|
+
/* ---- panneaux (poad-map-rail, poad-map-panel, poad-map-section) : voir src/map/panels.ts ---- */
|
|
199
|
+
.poad-map-rail { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; z-index: 7; box-sizing: border-box; width: var(--poad-map-rail-w, 52px); display: flex; flex-direction: column;
|
|
200
|
+
background: var(--poad-surface); border-inline-end: 1px solid var(--poad-border); box-shadow: 2px 0 8px rgba(0,0,0,.06); font-family: var(--poad-font); }
|
|
201
|
+
.poad-map-rail.is-right { inset-inline-start: auto; inset-inline-end: 0; border-inline-end: 0; border-inline-start: 1px solid var(--poad-border); box-shadow: -2px 0 8px rgba(0,0,0,.06); }
|
|
202
|
+
.poad-map-rail__items { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; flex: 1; min-height: 0; }
|
|
203
|
+
.poad-map-rail__bottom { padding: 8px 4px; font: 10.5px var(--poad-font-mono); color: var(--poad-fg-muted); text-align: center; overflow-wrap: anywhere; }
|
|
204
|
+
.poad-map-rail__bottom:empty { display: none; }
|
|
205
|
+
.poad-map-rail__item { all: unset; box-sizing: border-box; position: relative; width: 40px; height: 40px; border-radius: 10px; color: var(--poad-fg-secondary); display: grid; place-items: center; cursor: pointer;
|
|
206
|
+
transition: background var(--poad-dur, .15s), color var(--poad-dur, .15s); }
|
|
207
|
+
.poad-map-rail__item:hover:not(:disabled) { background: var(--poad-hover); color: var(--poad-fg); }
|
|
208
|
+
.poad-map-rail__item.is-active { background: var(--poad-accent-soft); color: var(--poad-accent); }
|
|
209
|
+
.poad-map-rail__item:disabled { opacity: .4; cursor: not-allowed; }
|
|
210
|
+
.poad-map-rail button.poad-map-rail__item:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: -2px; box-shadow: none; }
|
|
211
|
+
.poad-map-rail__badge { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: var(--poad-danger);
|
|
212
|
+
color: #fff; font: 700 9.5px/16px var(--poad-font-mono); text-align: center; }
|
|
213
|
+
/* info-bulle du rail (le nom de l'entrée), vers l'intérieur de la carte */
|
|
214
|
+
.poad-map-rail__item[data-tip]::after { content: attr(data-tip); position: absolute; top: 50%; inset-inline-start: calc(100% + 10px); transform: translateY(-50%); z-index: 9; padding: 4px 8px; border-radius: 6px;
|
|
215
|
+
background: var(--poad-fg); color: var(--poad-bg); font: 500 11.5px/1.3 var(--poad-font); white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s; }
|
|
216
|
+
.poad-map-rail.is-right .poad-map-rail__item[data-tip]::after { inset-inline-start: auto; inset-inline-end: calc(100% + 10px); }
|
|
217
|
+
.poad-map-rail__item[data-tip]:hover::after, .poad-map-rail__item[data-tip]:focus-visible::after { opacity: 1; visibility: visible; }
|
|
218
|
+
/* panneau ouvert : son titre dit déjà le nom, la bulle le couvrirait */
|
|
219
|
+
.poad-map-rail__item.is-active[data-tip]::after { display: none; }
|
|
220
|
+
.poad-map-panel { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--poad-map-rail-w, 0px); z-index: 6; box-sizing: border-box;
|
|
221
|
+
width: min(var(--poad-map-panel-w, 300px), calc(100% - var(--poad-map-rail-w, 0px) - 50px)); display: flex; flex-direction: column; background: var(--poad-surface);
|
|
222
|
+
border-inline-end: 1px solid var(--poad-border); box-shadow: 8px 0 24px rgba(0,0,0,.08); font: var(--poad-font-size)/1.4 var(--poad-font); color: var(--poad-fg);
|
|
223
|
+
transition: transform .18s var(--poad-ease, ease), opacity .18s, visibility 0s linear .18s; transform: translateX(-100%); opacity: 0; visibility: hidden; pointer-events: none; }
|
|
224
|
+
[dir="rtl"] .poad-map-panel { transform: translateX(100%); }
|
|
225
|
+
.poad-map-panel.is-right { inset-inline-start: auto; inset-inline-end: var(--poad-map-rail-w, 0px); border-inline-end: 0; border-inline-start: 1px solid var(--poad-border); box-shadow: -8px 0 24px rgba(0,0,0,.08); transform: translateX(100%); }
|
|
226
|
+
[dir="rtl"] .poad-map-panel.is-right { transform: translateX(-100%); }
|
|
227
|
+
/* ouvert : visible tout de suite (sans attendre la fin du glissement), sinon le focus y est refusé pendant l'animation */
|
|
228
|
+
.poad-map-panel.is-open, .poad-map-panel.is-right.is-open, [dir="rtl"] .poad-map-panel.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto;
|
|
229
|
+
transition: transform .18s var(--poad-ease, ease), opacity .18s, visibility 0s; }
|
|
230
|
+
.poad-map-panel__head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--poad-border); font-weight: 600; font-size: 14px; }
|
|
231
|
+
.poad-map-panel__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
232
|
+
.poad-map-panel__close { all: unset; box-sizing: border-box; flex: none; color: var(--poad-fg-muted); width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
|
|
233
|
+
.poad-map-panel__close:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
234
|
+
.poad-map-panel button.poad-map-panel__close:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: -2px; box-shadow: none; }
|
|
235
|
+
.poad-map-panel__body { flex: 1; overflow: auto; min-height: 0; }
|
|
236
|
+
.poad-map-panel__foot { padding: 10px 12px; border-top: 1px solid var(--poad-border); display: flex; gap: 8px; justify-content: flex-end; }
|
|
237
|
+
.poad-map-panel__foot:empty { display: none; }
|
|
238
|
+
.poad-map-section { display: block; border-bottom: 1px solid var(--poad-border); }
|
|
239
|
+
.poad-map-section__head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; font: 600 13px var(--poad-font); color: var(--poad-fg); cursor: pointer; }
|
|
240
|
+
.poad-map-section__head:hover:not(:disabled) { background: var(--poad-hover); }
|
|
241
|
+
.poad-map-section__head:disabled { cursor: default; }
|
|
242
|
+
.poad-map-section button.poad-map-section__head:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: -2px; box-shadow: none; }
|
|
243
|
+
.poad-map-section__chev { flex: none; color: var(--poad-fg-muted); transition: transform var(--poad-dur, .15s); }
|
|
244
|
+
[dir="rtl"] .poad-map-section__chev { transform: scaleX(-1); }
|
|
245
|
+
.poad-map-section.is-open .poad-map-section__chev { transform: rotate(90deg); }
|
|
246
|
+
.poad-map-section__icon { flex: none; color: var(--poad-fg-secondary); }
|
|
247
|
+
.poad-map-section__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
248
|
+
.poad-map-section__badge { font: 500 10.5px var(--poad-font-mono); padding: 1px 6px; border-radius: 999px; background: var(--poad-elevated, var(--poad-bg-subtle)); color: var(--poad-fg-secondary); }
|
|
249
|
+
.poad-map-section__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .16s var(--poad-ease, ease); }
|
|
250
|
+
.poad-map-section.is-open .poad-map-section__body { grid-template-rows: 1fr; }
|
|
251
|
+
.poad-map-section__inner { overflow: hidden; min-height: 0; }
|
|
252
|
+
.poad-map-section.is-open .poad-map-section__inner { padding: 4px 12px 12px; }
|
|
253
|
+
@media (prefers-reduced-motion: reduce) { .poad-map-panel, .poad-map-section__body, .poad-map-rail__item[data-tip]::after { transition: none; } }
|
|
254
|
+
|
|
255
|
+
/* ---- blocs (poad-map-basemaps, poad-map-layer-toggle, poad-map-layer-group) : voir src/map/blocks.ts ---- */
|
|
256
|
+
.poad-map-basemaps { display: block; font: var(--poad-font-size, 13px)/1.4 var(--poad-font); color: var(--poad-fg); }
|
|
257
|
+
.poad-map-basemaps__grid { display: grid; grid-template-columns: repeat(var(--poad-map-basemaps-cols, 2), minmax(0, 1fr)); gap: 6px; }
|
|
258
|
+
.poad-map-basemaps.is-row .poad-map-basemaps__grid { display: flex; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 4px; }
|
|
259
|
+
.poad-map-basemaps.is-row .poad-map-basemaps__item { width: 76px; flex: none; }
|
|
260
|
+
.poad-map-basemaps__item { all: unset; box-sizing: border-box; display: block; min-width: 0; border: 2px solid var(--poad-border); border-radius: 8px; overflow: hidden; background: var(--poad-bg-subtle);
|
|
261
|
+
cursor: pointer; text-align: start; color: var(--poad-fg-secondary); transition: border-color var(--poad-dur, .15s); }
|
|
262
|
+
.poad-map-basemaps__thumb { display: block; height: 46px; background-size: cover; background-position: center; }
|
|
263
|
+
.poad-map-basemaps__name { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 4px 7px; font-size: 11.5px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
264
|
+
.poad-map-basemaps__kind { color: var(--poad-fg-muted); font-size: 10px; font-weight: 400; }
|
|
265
|
+
.poad-map-basemaps__item:hover:not(:disabled) { border-color: var(--poad-border-strong); }
|
|
266
|
+
.poad-map-basemaps__item.is-on { border-color: var(--poad-accent); color: var(--poad-accent); }
|
|
267
|
+
.poad-map-basemaps__item:disabled { opacity: .45; cursor: not-allowed; }
|
|
268
|
+
.poad-map-basemaps button.poad-map-basemaps__item:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: 1px; box-shadow: none; }
|
|
269
|
+
.poad-map-basemaps__opacity { margin-top: 10px; }
|
|
270
|
+
.poad-map-basemaps__opacity > label { display: block; font-size: 11.5px; color: var(--poad-fg-secondary); margin-bottom: 18px; }
|
|
271
|
+
.poad-map-basemaps__overlays { margin-top: 10px; display: grid; gap: 6px; }
|
|
272
|
+
|
|
273
|
+
.poad-map-layer-toggle { display: block; font: var(--poad-font-size, 13px)/1.4 var(--poad-font); color: var(--poad-fg); }
|
|
274
|
+
.poad-map-layer-toggle__row { display: flex; align-items: center; gap: 8px; min-height: 30px; }
|
|
275
|
+
.poad-map-layer-toggle.is-off .poad-map-layer-toggle__label, .poad-map-layer-toggle.is-off .poad-map-layer-toggle__swatch { opacity: .55; }
|
|
276
|
+
.poad-map-layer-toggle__swatch { position: relative; width: 14px; height: 14px; flex: none; box-sizing: border-box; }
|
|
277
|
+
.poad-map-layer-toggle__swatch.k-point { border-radius: 50%; background: var(--c); border: 1.5px solid var(--poad-surface); box-shadow: 0 0 0 1px var(--poad-border-strong); }
|
|
278
|
+
.poad-map-layer-toggle__swatch.k-line { height: 0; border-top: 3px solid var(--c); border-radius: 2px; }
|
|
279
|
+
.poad-map-layer-toggle__swatch.k-polygon { border-radius: 3px; background: color-mix(in srgb, var(--c) 40%, transparent); border: 1.5px solid var(--c); }
|
|
280
|
+
.poad-map-layer-toggle__swatch.k-raster { border-radius: 3px; background: repeating-linear-gradient(45deg, var(--poad-border-strong) 0 2px, transparent 2px 5px); border: 1px solid var(--poad-border-strong); }
|
|
281
|
+
.poad-map-layer-toggle__palette { position: absolute; inset: -1px; display: flex; border-radius: inherit; overflow: hidden; }
|
|
282
|
+
.poad-map-layer-toggle__palette > b { flex: 1; }
|
|
283
|
+
.poad-map-layer-toggle__label { flex: 1; min-width: 0; cursor: pointer; display: grid; line-height: 1.25; overflow-wrap: anywhere; }
|
|
284
|
+
.poad-map-layer-toggle__label > small { color: var(--poad-fg-muted); font-size: 10.5px; }
|
|
285
|
+
.poad-map-layer-toggle__btn { all: unset; box-sizing: border-box; position: relative; flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; color: var(--poad-fg-muted); }
|
|
286
|
+
.poad-map-layer-toggle__btn:hover, .poad-map-layer-toggle__btn[aria-expanded="true"] { background: var(--poad-hover); color: var(--poad-fg); }
|
|
287
|
+
.poad-map-layer-toggle button.poad-map-layer-toggle__btn:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: -2px; box-shadow: none; }
|
|
288
|
+
/* info-bulle (le nom du bouton), sous lui, alignée sur sa fin : elle ne cache pas le bouton voisin */
|
|
289
|
+
.poad-map-layer-toggle__btn[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 4px); inset-inline-end: 0; z-index: 9; padding: 4px 8px; border-radius: 6px;
|
|
290
|
+
background: var(--poad-fg); color: var(--poad-bg); font: 500 11.5px/1.3 var(--poad-font); white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s; }
|
|
291
|
+
.poad-map-layer-toggle__btn[data-tip]:hover::after, .poad-map-layer-toggle__btn[data-tip]:focus-visible::after { opacity: 1; visibility: visible; }
|
|
292
|
+
.poad-map-layer-toggle__opacity { padding: 22px 0 6px 30px; }
|
|
293
|
+
.poad-map-layer-toggle__legend { list-style: none; margin: 0; display: grid; gap: 3px; padding: 2px 0 6px 30px; }
|
|
294
|
+
.poad-map-layer-toggle__legend > li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--poad-fg-secondary); }
|
|
295
|
+
.poad-map-layer-toggle__legend .poad-map-legend__swatch { width: 11px; height: 11px; }
|
|
296
|
+
.poad-map-layer-toggle__missing { font-size: 11.5px; color: var(--poad-danger); }
|
|
297
|
+
[dir="rtl"] .poad-map-layer-toggle__opacity, [dir="rtl"] .poad-map-layer-toggle__legend { padding-left: 0; padding-right: 30px; }
|
|
298
|
+
|
|
299
|
+
.poad-map-layer-group { display: block; font: var(--poad-font-size, 13px)/1.4 var(--poad-font); color: var(--poad-fg); }
|
|
300
|
+
.poad-map-layer-group__head { font-weight: 600; min-height: 30px; display: flex; align-items: center; }
|
|
301
|
+
.poad-map-layer-group__kids { padding-inline-start: 14px; border-inline-start: 1px solid var(--poad-border); margin-inline-start: 8px; }
|
|
302
|
+
@media (prefers-reduced-motion: reduce) { .poad-map-basemaps__item, .poad-map-layer-toggle__btn[data-tip]::after { transition: none; } }
|
|
303
|
+
|
|
304
|
+
/* ---- menu en JSON (poad-map-menu) : voir src/map/menu.ts ---- */
|
|
305
|
+
poad-map-menu { display: contents; }
|
|
306
|
+
.poad-map-menu__text { font-size: 12.5px; line-height: 1.45; color: var(--poad-fg-secondary); overflow-wrap: anywhere; }
|
|
307
|
+
.poad-map-menu__text p { margin: 0 0 6px; } .poad-map-menu__text p:last-child { margin-bottom: 0; }
|
|
308
|
+
.poad-map-menu__text a { color: var(--poad-accent); }
|
|
309
|
+
.poad-map-menu__text code { font: 11.5px var(--poad-font-mono); background: var(--poad-bg-subtle); padding: 0 3px; border-radius: 3px; }
|
|
310
|
+
.poad-map-menu__missing { font-size: 12.5px; color: var(--poad-danger); }
|
|
311
|
+
/* le rendu web pose la classe sur l'élément hôte : sa légende est l'enfant */
|
|
312
|
+
.poad-map .poad-map-legend.poad-map-menu__legend, .poad-map .poad-map-menu__legend > .poad-map-legend { max-width: none; min-width: 0; box-shadow: none; background: transparent; border: 0; }
|
|
313
|
+
|
|
314
|
+
/* ---- outils (poad-map-tools) et comparaison (poad-map-compare) : voir src/map/tools.ts ---- */
|
|
315
|
+
.poad-map-tools { position: absolute; z-index: 5; top: 12px; inset-inline-start: calc(12px + min(var(--poad-map-inset-left, 0px), 100% - 50px));
|
|
316
|
+
inset-inline-end: calc(12px + min(var(--poad-map-inset-right, 0px), 100% - 50px)); width: fit-content; max-width: calc(100% - 24px); margin-inline: auto;
|
|
317
|
+
display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; font: var(--poad-font-size, 13px)/1.4 var(--poad-font); color: var(--poad-fg); }
|
|
318
|
+
.poad-map-tools.is-bottom { top: auto; bottom: 34px; flex-direction: column-reverse; }
|
|
319
|
+
.poad-map-tools > * { pointer-events: auto; }
|
|
320
|
+
.poad-map-tools__bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px; padding: 3px; box-sizing: border-box; max-width: 100%;
|
|
321
|
+
background: var(--poad-surface); border: 1px solid var(--poad-border); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
|
|
322
|
+
.poad-map-tools__sep { width: 1px; align-self: stretch; margin: 4px 2px; background: var(--poad-border); }
|
|
323
|
+
.poad-map-tools__tool { all: unset; box-sizing: border-box; width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; color: var(--poad-fg-secondary); cursor: pointer;
|
|
324
|
+
transition: background var(--poad-dur, .15s), color var(--poad-dur, .15s); }
|
|
325
|
+
.poad-map-tools__tool:hover:not(:disabled) { background: var(--poad-hover); color: var(--poad-fg); }
|
|
326
|
+
.poad-map-tools__tool[aria-pressed="true"] { background: var(--poad-accent-soft); color: var(--poad-accent); }
|
|
327
|
+
.poad-map-tools__tool:disabled { opacity: .4; cursor: not-allowed; }
|
|
328
|
+
.poad-map-tools button.poad-map-tools__tool:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: -2px; box-shadow: none; }
|
|
329
|
+
.poad-map-tools__status { margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--poad-fg); color: var(--poad-bg); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; }
|
|
330
|
+
.poad-map-tools__status:empty { display: none; }
|
|
331
|
+
.poad-map-tools__hint { margin: 0; max-width: 340px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--poad-surface) 92%, transparent); border: 1px solid var(--poad-border);
|
|
332
|
+
color: var(--poad-fg-secondary); font-size: 11.5px; text-align: center; }
|
|
333
|
+
/* réticule au centre de la carte pendant un dessin (le clavier pose ses points ici) */
|
|
334
|
+
.poad-map[data-drawing]::after { content: ''; position: absolute; z-index: 4; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none;
|
|
335
|
+
background: linear-gradient(var(--poad-accent), var(--poad-accent)) center / 2px 100% no-repeat, linear-gradient(var(--poad-accent), var(--poad-accent)) center / 100% 2px no-repeat;
|
|
336
|
+
filter: drop-shadow(0 0 1px var(--poad-surface)) drop-shadow(0 0 1px var(--poad-surface)); opacity: .85; }
|
|
337
|
+
.poad-map-compare { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
|
|
338
|
+
/* au-dessus de la 2ᵉ carte : les contrôles de la première */
|
|
339
|
+
.poad-map .maplibregl-control-container > * { z-index: 2; }
|
|
340
|
+
.poad-map-compare__right { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--poad-map-compare-x, 50%)); }
|
|
341
|
+
.poad-map-compare__right .poad-map { height: 100%; border-radius: 0; }
|
|
342
|
+
.poad-map-compare__right .maplibregl-control-container { display: none; }
|
|
343
|
+
.poad-map-compare__label { position: absolute; top: calc(50% + 26px); padding: 3px 8px; border-radius: 6px; background: var(--poad-surface); border: 1px solid var(--poad-border); font-size: 11.5px; font-weight: 600;
|
|
344
|
+
color: var(--poad-fg-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
|
|
345
|
+
/* de part et d'autre du rideau, loin des coins (contrôles, contenu de l'application) ; gauche et droite physiques, même
|
|
346
|
+
en RTL : la 2ᵉ carte est toujours à droite du rideau */
|
|
347
|
+
.poad-map-compare__label.is-left { right: calc(100% - var(--poad-map-compare-x, 50%) + 10px); max-width: calc(var(--poad-map-compare-x, 50%) - 20px); }
|
|
348
|
+
.poad-map-compare__label.is-right { left: calc(var(--poad-map-compare-x, 50%) + 10px); max-width: calc(100% - var(--poad-map-compare-x, 50%) - 20px); }
|
|
349
|
+
.poad-map-compare__split { position: absolute; top: 0; bottom: 0; left: var(--poad-map-compare-x, 50%); width: 24px; margin-left: -12px; cursor: ew-resize; pointer-events: auto; touch-action: none; outline: none; }
|
|
350
|
+
.poad-map-compare__split::before { content: ''; position: absolute; top: 0; bottom: 0; left: 11px; width: 2px; background: var(--poad-surface); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
|
|
351
|
+
.poad-map-compare__split::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
|
|
352
|
+
background: var(--poad-surface); border: 1px solid var(--poad-border-strong); box-shadow: 0 2px 8px rgba(0,0,0,.2); font: 700 13px/1 var(--poad-font); color: var(--poad-fg-secondary); }
|
|
353
|
+
.poad-map .poad-map-compare .poad-map-compare__split:focus-visible { outline: none; box-shadow: none; }
|
|
354
|
+
.poad-map-compare__split:focus-visible::after { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: 2px; }
|
|
355
|
+
|
|
356
|
+
/* ---- chrome (poad-map-chrome) : voir src/map/chrome.ts ---- */
|
|
357
|
+
poad-map-chrome { display: contents; }
|
|
358
|
+
.poad-map-chrome { display: contents; font: var(--poad-font-size, 13px)/1.4 var(--poad-font); color: var(--poad-fg); }
|
|
359
|
+
.poad-map-chrome__fab { position: absolute; z-index: 6; top: 12px; inset-inline-end: calc(12px + var(--poad-map-inset-right, 0px)); display: flex; flex-direction: column;
|
|
360
|
+
background: var(--poad-surface); border: 1px solid var(--poad-border); border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.12); overflow: hidden; font: var(--poad-font-size, 13px)/1.4 var(--poad-font); }
|
|
361
|
+
.poad-map-chrome.is-toolbar .poad-map-chrome__fab { flex-direction: row; }
|
|
362
|
+
.poad-map-chrome__btn { all: unset; box-sizing: border-box; position: relative; width: 34px; height: 34px; display: grid; place-items: center; color: var(--poad-fg-secondary); cursor: pointer; }
|
|
363
|
+
.poad-map-chrome__btn + .poad-map-chrome__btn { border-inline-start: 1px solid var(--poad-border); }
|
|
364
|
+
.poad-map-chrome__btn:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
365
|
+
.poad-map-chrome__btn[aria-expanded="true"] { background: var(--poad-accent-soft); color: var(--poad-accent); }
|
|
366
|
+
.poad-map-chrome__btn.has-dot::after { content: ''; position: absolute; top: 5px; inset-inline-end: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--poad-accent); }
|
|
367
|
+
.poad-map .poad-map-chrome button:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: -2px; box-shadow: none; }
|
|
368
|
+
.poad-map-chrome__drawer { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; z-index: 8; box-sizing: border-box; width: min(320px, calc(100% - 50px)); display: flex; flex-direction: column;
|
|
369
|
+
background: var(--poad-surface); border-inline-start: 1px solid var(--poad-border); box-shadow: -8px 0 24px rgba(0,0,0,.12); font: var(--poad-font-size, 13px)/1.4 var(--poad-font); color: var(--poad-fg);
|
|
370
|
+
transform: translateX(100%); opacity: 0; visibility: hidden; transition: transform .18s var(--poad-ease, ease), opacity .18s, visibility 0s linear .18s; }
|
|
371
|
+
[dir="rtl"] .poad-map-chrome__drawer { transform: translateX(-100%); }
|
|
372
|
+
.poad-map-chrome.is-open .poad-map-chrome__drawer { transform: none; opacity: 1; visibility: visible; transition: transform .18s var(--poad-ease, ease), opacity .18s, visibility 0s; }
|
|
373
|
+
.poad-map-chrome__head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--poad-border); font-weight: 600; font-size: 14px; }
|
|
374
|
+
.poad-map-chrome__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
375
|
+
.poad-map-chrome__close { all: unset; box-sizing: border-box; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--poad-fg-muted); cursor: pointer; }
|
|
376
|
+
.poad-map-chrome__close:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
377
|
+
.poad-map-chrome__tabs { display: flex; border-bottom: 1px solid var(--poad-border); padding: 0 6px; }
|
|
378
|
+
.poad-map-chrome__tab { all: unset; box-sizing: border-box; flex: 1; min-width: 0; height: 36px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
|
|
379
|
+
padding: 0 2px; color: var(--poad-fg-secondary); font: 500 12px var(--poad-font); cursor: pointer; white-space: nowrap; }
|
|
380
|
+
.poad-map-chrome__tab > span { overflow: hidden; text-overflow: ellipsis; }
|
|
381
|
+
.poad-map-chrome__tab:hover { color: var(--poad-fg); }
|
|
382
|
+
.poad-map-chrome__tab[aria-selected="true"] { color: var(--poad-accent); }
|
|
383
|
+
.poad-map-chrome__tab[aria-selected="true"]::after { content: ''; position: absolute; inset-inline: 6px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--poad-accent); }
|
|
384
|
+
.poad-map-chrome__body { flex: 1; min-height: 0; overflow: auto; }
|
|
385
|
+
.poad-map-chrome__panel { padding: 12px 14px 16px; }
|
|
386
|
+
.poad-map-chrome__panel[hidden] { display: none; }
|
|
387
|
+
.poad-map-panel .poad-map-chrome__panel { padding: 0; }
|
|
388
|
+
.poad-map-chrome__sec { margin: 16px 0 8px; font: 600 10.5px/1.2 var(--poad-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--poad-fg-muted); }
|
|
389
|
+
.poad-map-chrome__panel > .poad-map-chrome__sec:first-child { margin-top: 0; }
|
|
390
|
+
.poad-map-chrome__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--poad-border); }
|
|
391
|
+
.poad-map-chrome__layers { display: grid; gap: 2px; }
|
|
392
|
+
.poad-map-chrome__layer { display: flex; align-items: flex-start; gap: 2px; border-radius: 6px; padding: 0 2px 0 4px; }
|
|
393
|
+
.poad-map-chrome__layer > :first-child, .poad-map-chrome__layer .poad-map-layer-toggle { flex: 1; min-width: 0; }
|
|
394
|
+
.poad-map-chrome__layer.is-selected { background: var(--poad-accent-soft); }
|
|
395
|
+
.poad-map-chrome__icon { all: unset; box-sizing: border-box; flex: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 6px; display: grid; place-items: center; color: var(--poad-fg-secondary); cursor: pointer; }
|
|
396
|
+
.poad-map-chrome__icon:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
397
|
+
.poad-map-chrome__icon[aria-pressed="true"] { color: var(--poad-accent); }
|
|
398
|
+
.poad-map-chrome__empty { margin: 0; font-size: 12.5px; color: var(--poad-fg-muted); font-style: italic; }
|
|
399
|
+
.poad-map-chrome__symbology { margin-top: 10px; padding: 10px; border: 1px solid var(--poad-border); border-radius: 8px; background: var(--poad-bg-subtle); display: grid; gap: 10px; }
|
|
400
|
+
.poad-map-chrome__symbology > .poad-map-chrome__sec { margin: 0; }
|
|
401
|
+
.poad-map-chrome__field { display: grid; gap: 4px; }
|
|
402
|
+
.poad-map-chrome__field > label, .poad-map-chrome__field > span { font-size: 12px; font-weight: 500; color: var(--poad-fg-secondary); }
|
|
403
|
+
.poad-map-chrome__palette { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
404
|
+
.poad-map-chrome__swatch { all: unset; box-sizing: border-box; width: 24px; height: 24px; border-radius: 6px; background: var(--c); border: 2px solid var(--poad-surface); box-shadow: 0 0 0 1px var(--poad-border); cursor: pointer; }
|
|
405
|
+
.poad-map-chrome__swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--poad-fg); }
|
|
406
|
+
.poad-map .poad-map-chrome .poad-map-chrome__swatch:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: 2px; }
|
|
407
|
+
.poad-map-chrome__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
|
|
408
|
+
.poad-map-chrome__tool { all: unset; box-sizing: border-box; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--poad-border); border-radius: 8px;
|
|
409
|
+
font-size: 12.5px; color: var(--poad-fg-secondary); cursor: pointer; }
|
|
410
|
+
.poad-map-chrome__tool > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
411
|
+
.poad-map-chrome__tool:hover:not(:disabled) { border-color: var(--poad-accent); color: var(--poad-fg); }
|
|
412
|
+
.poad-map-chrome__tool[aria-pressed="true"] { border-color: var(--poad-accent); background: var(--poad-accent-soft); color: var(--poad-accent); }
|
|
413
|
+
.poad-map-chrome__tool:disabled { opacity: .45; cursor: not-allowed; }
|
|
414
|
+
.poad-map-chrome__measure { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--poad-bg-subtle); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; }
|
|
415
|
+
.poad-map-chrome__measure:empty { display: none; }
|
|
416
|
+
.poad-map-chrome__hint { margin: 8px 0 0; font-size: 12px; color: var(--poad-fg-muted); }
|
|
417
|
+
.poad-map-chrome__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
418
|
+
.poad-map-chrome__opt { display: flex; align-items: center; min-height: 32px; }
|
|
419
|
+
.poad-map-chrome__status { position: absolute; z-index: 9; bottom: 34px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 50px); box-sizing: border-box; margin: 0; padding: 6px 12px; border-radius: 999px;
|
|
420
|
+
background: var(--poad-fg); color: var(--poad-bg); font: 600 12.5px/1.3 var(--poad-font); overflow-wrap: anywhere; text-align: center; pointer-events: none; }
|
|
421
|
+
.poad-map-chrome__status:empty { display: none; }
|
|
422
|
+
.poad-map-query { display: grid; gap: 10px; font: 12.5px/1.4 var(--poad-font); color: var(--poad-fg); }
|
|
423
|
+
.poad-map-query table { border-collapse: collapse; width: 100%; }
|
|
424
|
+
.poad-map-query caption { text-align: start; font-weight: 600; padding-bottom: 4px; }
|
|
425
|
+
.poad-map-query th, .poad-map-query td { padding: 3px 6px 3px 0; vertical-align: top; text-align: start; border-top: 1px solid var(--poad-border); overflow-wrap: anywhere; }
|
|
426
|
+
.poad-map-query th { font-weight: 500; color: var(--poad-fg-secondary); white-space: nowrap; }
|
|
427
|
+
/* petite carte : le tiroir devient une feuille basse */
|
|
428
|
+
@media (max-width: 640px) {
|
|
429
|
+
.poad-map-chrome__drawer { top: auto; inset-inline: 0; width: auto; height: min(60%, 420px); border-inline-start: 0; border-top: 1px solid var(--poad-border); border-radius: 14px 14px 0 0;
|
|
430
|
+
box-shadow: 0 -8px 24px rgba(0,0,0,.18); transform: translateY(100%); }
|
|
431
|
+
[dir="rtl"] .poad-map-chrome__drawer { transform: translateY(100%); }
|
|
432
|
+
}
|
|
433
|
+
@media (prefers-reduced-motion: reduce) { .poad-map-chrome__drawer { transition: none; } }
|
|
434
|
+
|
|
435
|
+
/* ---- carte GeoJSON (poad-map-card) : voir src/map/card.ts ---- */
|
|
436
|
+
poad-map-card { display: block; width: 100%; }
|
|
437
|
+
.poad-map-card { display: block; width: 100%; box-sizing: border-box; height: var(--poad-mc-h, 320px); perspective: 1600px; font: var(--poad-font-size, 13px)/1.4 var(--poad-font); color: var(--poad-fg); }
|
|
438
|
+
.poad-map-card.is-disabled { opacity: .6; pointer-events: none; }
|
|
439
|
+
.poad-map-card__flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.4,.2,.2,1); }
|
|
440
|
+
.poad-map-card.is-flipped .poad-map-card__flip { transform: rotateY(180deg); }
|
|
441
|
+
.poad-map-card__face { position: absolute; inset: 0; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border: 1px solid var(--poad-border);
|
|
442
|
+
border-radius: var(--poad-radius-lg, 10px); background: var(--poad-surface); overflow: hidden; }
|
|
443
|
+
.poad-map-card__face.is-back { transform: rotateY(180deg); }
|
|
444
|
+
.poad-map-card__head { display: flex; align-items: center; gap: 6px; min-height: 40px; box-sizing: border-box; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--poad-border); font-weight: 600; font-size: 13px; }
|
|
445
|
+
.poad-map-card__title { flex: 0 1 auto; min-width: 3em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
446
|
+
.poad-map-card__stats { flex: 0 100 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-inline-start: 4px; font: 11px var(--poad-font-mono); color: var(--poad-fg-muted); font-weight: 400; }
|
|
447
|
+
.poad-map-card__grow { flex: 1; }
|
|
448
|
+
.poad-map-card__draw { display: inline-flex; gap: 2px; padding-inline-end: 6px; margin-inline-end: 2px; border-inline-end: 1px solid var(--poad-border); }
|
|
449
|
+
.poad-map-card__btn { all: unset; box-sizing: border-box; flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--poad-fg-secondary); cursor: pointer; }
|
|
450
|
+
.poad-map-card__btn:hover:not(:disabled) { background: var(--poad-hover); color: var(--poad-fg); }
|
|
451
|
+
.poad-map-card__btn[aria-pressed="true"], .poad-map-card__btn[aria-expanded="true"] { background: var(--poad-accent-soft); color: var(--poad-accent); }
|
|
452
|
+
.poad-map-card__btn:disabled { opacity: .4; cursor: default; }
|
|
453
|
+
.poad-map-card button.poad-map-card__btn:focus-visible { outline: 2px solid var(--poad-map-focus, var(--poad-accent)); outline-offset: -2px; box-shadow: none; }
|
|
454
|
+
.poad-map-card__map { position: relative; flex: 1; min-height: 0; }
|
|
455
|
+
.poad-map-card__map > .poad-map, .poad-map-card__map > poad-map > .poad-map { height: 100%; border-radius: 0; }
|
|
456
|
+
.poad-map-card__basemaps { position: absolute; inset-inline: 8px; bottom: 8px; z-index: 7; padding: 6px; background: var(--poad-surface); border: 1px solid var(--poad-border); border-radius: 10px; box-shadow: var(--poad-shadow-lg, 0 8px 24px rgba(0,0,0,.16)); }
|
|
457
|
+
.poad-map-card__empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; max-width: calc(100% - 50px); box-sizing: border-box; padding: 8px 14px; border-radius: 8px;
|
|
458
|
+
background: color-mix(in srgb, var(--poad-surface) 90%, transparent); border: 1px solid var(--poad-border); color: var(--poad-fg-secondary); font-size: 12.5px; text-align: center; pointer-events: none; }
|
|
459
|
+
.poad-map-card__face.is-back > .poad-json-editor, .poad-map-card__face.is-back > poad-json-editor { flex: 1; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
|
|
460
|
+
.poad-map-card__face.is-back .poad-json-editor__ed { flex: 1; height: auto; min-height: 0; }
|
|
461
|
+
poad-json-editor.poad-map-card__editor, .poad-map-card__face.is-back > poad-json-editor { display: flex; flex-direction: column; }
|
|
462
|
+
.poad-map-card__foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--poad-border); background: var(--poad-bg-subtle); }
|
|
463
|
+
.poad-map-card__error { flex: 1; min-width: 0; font-size: 12px; color: var(--poad-danger); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
464
|
+
@media (prefers-reduced-motion: reduce) {
|
|
465
|
+
.poad-map-card__flip { transition: none; transform: none !important; }
|
|
466
|
+
.poad-map-card__face.is-back { transform: none; visibility: hidden; }
|
|
467
|
+
.poad-map-card.is-flipped .poad-map-card__face.is-back { visibility: visible; }
|
|
468
|
+
.poad-map-card.is-flipped .poad-map-card__face.is-front { visibility: hidden; }
|
|
469
|
+
}
|