From 9053f7ce927259d2c4d8ea8d11fa173630d92c51 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Wed, 24 Jan 2024 14:42:47 +0100 Subject: [PATCH] =?UTF-8?q?Put=20back=20cp=5F=20prefix=20for=20map?= =?UTF-8?q?=E2=80=99s=20accommodations=20and=20hide=20trees=20and=20zones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems that the prefix got removed in one of the edits. Also, Affinity does not give a fuck to what classes we give to the elements, and just removes them, thus .guest-only no longer matches, and had to hide the layers by id. Hope they hold this time. --- web/static/camper.css | 19 +- web/templates/admin/campsite/index.gohtml | 9 +- web/templates/campground_map.svg | 248 +++++++++++----------- 3 files changed, 136 insertions(+), 140 deletions(-) diff --git a/web/static/camper.css b/web/static/camper.css index eeb26b7..cf22ef5 100644 --- a/web/static/camper.css +++ b/web/static/camper.css @@ -496,14 +496,18 @@ textarea { bottom: -1em; } -#campground-map .guest-only { +/**/ + +#campground_map .guest-only, #arbres, #zones { display: none; } -#campground-map a:hover { +#campground_map a:hover { fill: var(--camper--color--hay); } +/**/ + [class^="icon_"] { background-size: 2em 2em; background-repeat: no-repeat; @@ -696,17 +700,6 @@ fieldset img { translate: -50%; } - -#arbres { - mix-blend-mode: multiply; - opacity: .5; -} - -#zones { - mix-blend-mode: multiply; - opacity: .3; -} - /**/ [x-cloak] { diff --git a/web/templates/admin/campsite/index.gohtml b/web/templates/admin/campsite/index.gohtml index fbe9793..ee6594d 100644 --- a/web/templates/admin/campsite/index.gohtml +++ b/web/templates/admin/campsite/index.gohtml @@ -13,7 +13,9 @@ {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/campsite.campsiteIndex*/ -}} {{( pgettext "Add Campsite" "action" )}}

{{( pgettext "Campsites" "title" )}}

- {{ template "campground_map.svg" }} +
+ {{ template "campground_map.svg" }} +
{{ if .Campsites -}} @@ -38,7 +40,8 @@ {{- end }} {{- end }} diff --git a/web/templates/campground_map.svg b/web/templates/campground_map.svg index 212547c..7276954 100644 --- a/web/templates/campground_map.svg +++ b/web/templates/campground_map.svg @@ -61,7 +61,7 @@ - + @@ -70,35 +70,35 @@ - + - + - + - + - + @@ -106,28 +106,28 @@ - + - + - + - + @@ -138,7 +138,7 @@ - + @@ -147,35 +147,35 @@ - + - + - + - + - + @@ -190,7 +190,7 @@ - + @@ -203,42 +203,42 @@ - + - + - + - + - + - + @@ -249,483 +249,483 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -746,7 +746,7 @@ - + @@ -771,9 +771,9 @@ - + - + @@ -798,9 +798,9 @@ - + - + @@ -825,9 +825,9 @@ - + - + @@ -852,9 +852,9 @@ - + - + @@ -879,9 +879,9 @@ - + - + @@ -906,9 +906,9 @@ - + - + @@ -933,9 +933,9 @@ - + - + @@ -1272,7 +1272,7 @@ - + @@ -1311,7 +1311,7 @@ - + @@ -1328,12 +1328,12 @@ - + - + @@ -1354,7 +1354,7 @@ - + @@ -1375,7 +1375,7 @@ - + @@ -1414,7 +1414,7 @@ - + @@ -1432,7 +1432,7 @@ - + @@ -1473,7 +1473,7 @@ - + @@ -1980,12 +1980,12 @@ - - - - - - - + + + + + + +