From 623f0af2ab6c5097b7a19441d6e3ad9cab0a6f4f Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Thu, 25 Jan 2024 01:26:02 +0100 Subject: [PATCH] =?UTF-8?q?Fill=20the=20immediate=20path=20inside=20map?= =?UTF-8?q?=E2=80=99s=20anchors,=20and=20remove=20one=20extra=20group?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the map i added in e3503187d, paths around each accommodation inherited the fill and stroke from the group, thus i could just override that fill at the anchor level, but the current map sets the fill to each accommodation’s path, party because the text is not a path too, partly because Affinity is a visual tool only and does not give a shit about mark up. If we keep the text in a group, however, we can set the fill of the area using CSS too, although it is not nice due to `!important`, but still. There was a plot, however, #93, that had the area in a group too, and i had to remove that group manually. --- web/static/camper.css | 4 ++-- web/templates/campground_map.svg | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/web/static/camper.css b/web/static/camper.css index ebba8cd..17f3925 100644 --- a/web/static/camper.css +++ b/web/static/camper.css @@ -502,8 +502,8 @@ textarea { display: none; } -#campground_map a:hover { - fill: var(--camper--color--hay); +#campground_map a:hover > path { + fill: var(--camper--color--hay) !important; } /**/ diff --git a/web/templates/campground_map.svg b/web/templates/campground_map.svg index 7276954..124dca6 100644 --- a/web/templates/campground_map.svg +++ b/web/templates/campground_map.svg @@ -139,9 +139,7 @@ - - - +