Prototype XL (lot 6a) : page xl-proto.html, style papier et trait, glyphes locaux, table d'épingles et ses tests
Seconde entrée Vite bâtie dans une passe à part (la démo reste identique à l'octet près), maplibre-gl 6.16.0 et pmtiles 4.5.0 importés par xl-proto.html seulement, glyphes Noto Sans servis par le build, quatre épingles posées aux centres de communes (geo.api.gouv.fr). Les tuiles (public/tuiles/*.pmtiles) restent hors git : pipeline/xl/README.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWGVn3MeAPFsoCSyLs2zZW
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
fc9944468f
commit
0f98449cea
@@ -0,0 +1,48 @@
|
||||
/* Prototype XL : la page autour de la carte. Couleurs de maquette/style.css, recopiées. */
|
||||
:root {
|
||||
--papier: #efeee2; --papier-2: #fffdf6; --encre: #102a3a; --encre-2: #3f5563; --trait: #ddd8c4;
|
||||
--eau: #3a74a8; --vivant: #8f7b22; --vivant-encre: #62560f; --auj: #6b6458; --auj-encre: #4a443b;
|
||||
--ombre: 0 10px 30px rgba(16, 42, 58, .14);
|
||||
}
|
||||
html, body { margin: 0; height: 100%; background: var(--papier); color: var(--encre); font-family: Barlow, system-ui, sans-serif; }
|
||||
#xl { position: fixed; inset: 0; overflow: hidden; }
|
||||
#carte { position: absolute; inset: 0; background: var(--papier); }
|
||||
button { font: inherit; color: inherit; }
|
||||
|
||||
.filtres { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 10px; display: flex; gap: 8px; z-index: 3; }
|
||||
.filtre { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--encre-2); background: var(--papier-2); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: var(--ombre); }
|
||||
.filtre[data-couche="existant"] { border-color: var(--auj-encre); }
|
||||
.filtre[data-couche="propose"] { border-color: var(--vivant-encre); }
|
||||
.filtre[aria-pressed="true"][data-couche="existant"] { background: var(--auj-encre); color: var(--papier-2); }
|
||||
.filtre[aria-pressed="true"][data-couche="propose"] { background: var(--vivant-encre); color: var(--papier-2); }
|
||||
.filtre:focus-visible, .epingle:focus-visible, .quartier:focus-visible, .fermer:focus-visible { outline: 3px solid var(--eau); outline-offset: 2px; }
|
||||
|
||||
.etat { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); margin: 0; max-width: 300px; padding: 12px 16px; text-align: center; border-radius: 10px; background: var(--papier-2); color: var(--encre-2); box-shadow: var(--ombre); z-index: 2; font-size: 15px; }
|
||||
.etat.erreur { color: var(--encre); border: 1.5px solid var(--auj-encre); }
|
||||
.etat[hidden] { display: none; }
|
||||
|
||||
/* Épingles : une cible de 40 px, un rond de 18 px dedans. */
|
||||
.epingle { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
|
||||
.epingle[hidden] { display: none; }
|
||||
.epingle > span { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--papier-2); box-shadow: 0 1px 4px rgba(16, 42, 58, .35); }
|
||||
.epingle.c-existant > span { background: var(--auj-encre); }
|
||||
.epingle.c-propose > span { background: var(--vivant-encre); }
|
||||
.epingle.active > span { width: 24px; height: 24px; border-color: var(--encre); }
|
||||
|
||||
.panneau { position: absolute; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 4; max-height: 40vh; overflow: auto; padding: 14px 44px 14px 16px; border-radius: 14px; background: var(--papier-2); box-shadow: var(--ombre); }
|
||||
.panneau[hidden] { display: none; }
|
||||
.panneau h2 { margin: 2px 0 6px; font-size: 18px; line-height: 1.2; }
|
||||
.panneau p { margin: 0 0 6px; font-size: 15px; line-height: 1.35; }
|
||||
.panneau .couche { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--encre-2); }
|
||||
.panneau .statut { font-size: 13px; color: var(--encre-2); }
|
||||
.panneau .lien a { color: var(--eau); font-weight: 600; }
|
||||
.fermer { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--encre-2); }
|
||||
|
||||
.quartier { position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; min-height: 44px; display: flex; align-items: center; padding: 0 20px; border-radius: 22px; background: var(--encre); color: var(--papier-2); font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: var(--ombre); white-space: nowrap; }
|
||||
|
||||
/* Attribution : lisible à 390 px, au-dessus du bouton du bas. */
|
||||
.maplibregl-ctrl-bottom-right { bottom: calc(60px + env(safe-area-inset-bottom)); }
|
||||
.maplibregl-ctrl-attrib { background: rgba(255, 253, 246, .85) !important; font-size: 12px; }
|
||||
.maplibregl-ctrl-attrib a { color: var(--encre-2); }
|
||||
.maplibregl-ctrl-top-right { top: calc(56px + env(safe-area-inset-top)); }
|
||||
body.sans-tuiles .filtres { opacity: .5; }
|
||||
Reference in New Issue
Block a user