diff --git a/HOW_TO_MAP.md b/HOW_TO_MAP.md index 8e4d0cb..7d25b7d 100644 --- a/HOW_TO_MAP.md +++ b/HOW_TO_MAP.md @@ -60,11 +60,4 @@ Tout espace qui est en mixité choisie sans mec-cis Les endroits oú l'on peut jouer au badmington -* **badmington**=true (booleen) - -## Zone interdite ou protégées - -Les endorit oú il ne faut pas aller - -* **zone-interdite**=true -* **description-interdiction** Une longue description qui remplacera le générique "Veuillez ne pas circuler ici" (texte) \ No newline at end of file +* **badmington**=true (booleen) \ No newline at end of file diff --git a/couches/poubelles.geojson b/couches/poubelles.geojson index 52058e5..ac99b1f 100644 --- a/couches/poubelles.geojson +++ b/couches/poubelles.geojson @@ -6,6 +6,6 @@ { "type": "Feature", "properties": { "tout-venant": true, "recyclage": false, "compost caca": false, "compost vegetal": false, "poubelle": true }, "geometry": { "type": "Point", "coordinates": [ -2.091632273753862, 47.541964182561429 ] } }, { "type": "Feature", "properties": { "tout-venant": false, "recyclage": true, "compost caca": false, "compost vegetal": false, "poubelle": true }, "geometry": { "type": "Point", "coordinates": [ -2.091609674840965, 47.541963379645793 ] } }, { "type": "Feature", "properties": { "tout-venant": false, "recyclage": false, "compost caca": true, "compost vegetal": false, "poubelle": true }, "geometry": { "type": "Point", "coordinates": [ -2.091148822106654, 47.542307623733166 ] } }, -{ "type": "Feature", "properties": { "tout-venant": false, "recyclage": false, "compost caca": false, "compost vegetal": true, "poubelle": true }, "geometry": { "type": "Point", "coordinates": [ -2.091149910988561, 47.542277486881417 ] } } +{ "type": "Feature", "properties": { "tout-venant": false, "recyclage": false, "compost caca": false, "compost vegetal": true, "poubelle": false }, "geometry": { "type": "Point", "coordinates": [ -2.091149910988561, 47.542277486881417 ] } } ] } diff --git a/css/style.css b/css/style.css index ca7547c..c7a4b23 100644 --- a/css/style.css +++ b/css/style.css @@ -200,7 +200,7 @@ body > hr { grid-template-rows: 1fr; } -#search-section:has( ~ dialog:not([open])) { +#search-section:has( ~ #result-panel.empty) { position: fixed; bottom: 5px; left: 5px; @@ -240,38 +240,6 @@ body > hr { /* PANEL */ -#result-panel-dialog { - display: block; - position: relative; - padding: 0; - margin: 0; - border: none; - width: 100%; -} - -#result-panel-dialog:not([open]) { - display: none; -} - -#result-panel-dialog #close-result-panel-btn { - position: sticky; - top: 0px; - right: 0px; - padding: 15px; - border: none; - background: none; - cursor: pointer; - z-index: 100; - margin-left: auto; - margin-bottom: calc( ( 1.5em + 30px ) * -1); - display: block; -} - -#close-result-panel-btn img { - height: 1.5em; - display: block; -} - #result-panel { background: black; border-image: url("../assets/neon-border-image.svg") 12; @@ -280,6 +248,11 @@ body > hr { color: white; } +#result-panel.empty, +#result-panel:empty{ + display:none; +} + #result-panel > * { padding: 1em; margin: 0; @@ -354,109 +327,4 @@ camp-feature-short-header .feature-location { camp-feature { min-height: 25vh; - font-family: sans-serif; } - -camp-feature .feature-header { - margin-bottom: 1.5em; -} - -camp-feature .feature-widgets { - display: grid; - grid-template-columns: max-content minmax(50%, 1fr); - grid-auto-rows: max-content; - grid-auto-flow: column; -} - -camp-feature .feature-widgets > * { - grid-column: 1 / 3; - margin-bottom: 2em; -} - -camp-feature .widget > :first-child { - margin-top: 0; -} - -camp-feature .widget > :last-child { - margin-bottom: 0; -} - -camp-feature .widget h2 { - font-size: 1em; - text-transform: uppercase; - margin-bottom: 1ex; -} - -camp-feature .widget p { - margin-top: 1ex; - margin-bottom: 1ex; - line-height: 1.5; -} - -.table-widget { - display: grid; - grid-template-columns: max-content minmax(50%, 1fr); - column-gap: 1ex; - row-gap: 1ex; -} - -camp-feature .table-widget { - grid-template-columns: subgrid; - grid-column: 1 / 3; -} - -.table-widget > * { - margin: 0 !important; -} - -.table-widget > * { - grid-column: 2; -} - -.table-widget > h2 { - grid-column: 1; -} - -camp-feature .table-widget > h2 { - text-transform: none; -} - -.box-widget { - --box-color: white; - border: solid 3px var(--box-color); - padding: 10px; - box-sizing: border-box; -} - -.box-widget h2 { - float: left; - background-color: var(--box-color); - color: white; - padding: 5px 10px; - display: block; - width: fit-content; - position: relative; - font-size: 1em; -} - -.box-widget p:first-of-type { - margin-top: 0; -} - -.box-widget h2::after { - content: ""; - width: 0; height: 0; - border-style: solid; - border-width: calc(1em + 17.667px) calc(1em + 10px) 0px 0px; - border-color: var(--box-color) transparent transparent transparent; - position: absolute; - right: calc((1em + 9px) * -1); - top: 0; -} - -camp-feature .box-widget h2:first-child, -.box-widget h2 { - margin-left: -10px; - margin-top: -10px; - margin-right: 2em; -} \ No newline at end of file diff --git a/css/widgets.css b/css/widgets.css deleted file mode 100644 index e6f0fdf..0000000 --- a/css/widgets.css +++ /dev/null @@ -1,12 +0,0 @@ -:root { - --verboten-color:#c51a00; - --mixite-choisie-color: #640aa4; -} - -.zone-interdite-widget { - --box-color: var(--verboten-color); -} - -.mixite-choisie-widget { - --box-color: var(--mixite-choisie-color); -} \ No newline at end of file diff --git a/icons/close.svg b/icons/close.svg deleted file mode 100644 index fd47460..0000000 --- a/icons/close.svg +++ /dev/null @@ -1,53 +0,0 @@ - - - - diff --git a/icons/poubelle-caca.svg b/icons/poubelle-caca.svg deleted file mode 100644 index 783944a..0000000 --- a/icons/poubelle-caca.svg +++ /dev/null @@ -1,88 +0,0 @@ - - - - diff --git a/icons/poubelle-compost.svg b/icons/poubelle-compost.svg deleted file mode 100644 index 4fc1325..0000000 --- a/icons/poubelle-compost.svg +++ /dev/null @@ -1,89 +0,0 @@ - - - - diff --git a/icons/poubelle-recyclable.svg b/icons/poubelle-recyclable.svg deleted file mode 100644 index 108f878..0000000 --- a/icons/poubelle-recyclable.svg +++ /dev/null @@ -1,97 +0,0 @@ - - - - diff --git a/icons/poubelle.svg b/icons/poubelle.svg deleted file mode 100644 index 60a2ee2..0000000 --- a/icons/poubelle.svg +++ /dev/null @@ -1,83 +0,0 @@ - - - - diff --git a/index.html b/index.html index bde105d..6c88e83 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,6 @@