commit 136cf10bd716d77408b682a284ce5ccd6effe6ba
parent 0fa2d8f518c47b1c77b3589ed347b4ea8400e2a1
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Wed, 16 Oct 2024 20:58:37 -0700
Add furniture selection colors
Finally found a little cheat to get furniture colored. I had been
introduced to this solution when I first added furniture but didn't
put much time into it because I thought I would change how furniture
is drawn, and while I still want to inline it or put it in a pattern
in order to hopefully stop strokes from scaling I'm going to focus
on more important issues for now, so this fix makes it just fine
usability-wise.
See <https://stackoverflow.com/questions/41157135/> and
<https://isotropic.co/tool/hex-color-to-css-filter/>.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/files/floorplans/floorplan/svg.css b/files/floorplans/floorplan/svg.css
@@ -33,3 +33,7 @@
stroke: blue;
stroke-opacity: 1;
}
+
+#furniture_layouts > * > .selected {
+ filter: invert(8%) sepia(100%) saturate(7462%) hue-rotate(248deg) brightness(94%) contrast(144%);
+}