]> git.ardis.lu - utf-8-visualizer/commitdiff
Fix ::selections styling
authorArdis Lu <ardisglu@gmail.com>
Wed, 2 Apr 2025 04:46:05 +0000 (21:46 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 2 Apr 2025 04:46:05 +0000 (21:46 -0700)
The intention was to only to apply to visualizations, however the :not does not work as intended because ::selection properties are inheriting from parent <main> (where it is applicable) to <input> (where it is not).

style.css

index 0432845abed2b9707a5a6bcacd3a98881d5dbfbe..bc04715c6a2c4c5cd88132f329749a16cf9e6074 100644 (file)
--- a/style.css
+++ b/style.css
@@ -96,7 +96,7 @@ a:not(.icon-link) {
   text-decoration: none;
 }
 
-:not(input)::selection {
+#visualizations::selection {
   color: hsl(222deg 50% 30%);
   background-color: hsl(58deg 80% 90%);
 }
This page took 0.037521 seconds and 4 git commands to generate.