]> git.ardis.lu - ardislu.dev/commitdiff
Simplify header icon hiding logic
authorArdis Lu <ardisglu@gmail.com>
Wed, 14 Dec 2022 04:22:53 +0000 (20:22 -0800)
committerArdis Lu <ardisglu@gmail.com>
Wed, 14 Dec 2022 04:22:53 +0000 (20:22 -0800)
Firefox doesn't support :has, and all icons are hidden anyway

style.css

index f0971005a6b741cf23d70a85a5b466041a1c9506..8e0d6303b7dfa178eb6e8cb7580b9894eef527d5 100644 (file)
--- a/style.css
+++ b/style.css
@@ -73,12 +73,12 @@ a > svg {
   vertical-align: middle;
 }
 
-header a:has(#feed, #pencil, #github) {
+header > nav {
   display: none;
 }
 
 @media (min-width: 34.375rem) {
-  header a:has(#feed, #pencil, #github) {
+  header > nav {
     display: initial;
   }
 }
This page took 0.035445 seconds and 4 git commands to generate.