]> git.ardis.lu - google-forms-frontend/commitdiff
Simplify focus selector
authorArdis Lu <ardisglu@gmail.com>
Sat, 29 Oct 2022 06:30:53 +0000 (23:30 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sat, 29 Oct 2022 06:30:53 +0000 (23:30 -0700)
index.html

index 67ec15e29fbed9f3a3a4de48b53c607f154ba323..0da769439d013a8b71721eda8b4a65ca12428b25 100644 (file)
       transition: transform 150ms;
     }
 
-    div:has(input:focus)::before,
-    div:has(textarea:focus)::before {
+    div:focus-within::before {
       transform: scaleY(1);
       transition: transform 400ms;
     }
         font-weight: 300;
       }
 
-      div:has(input:focus) aside,
-      div:has(textarea:focus) aside {
+      div:focus-within aside {
         font-weight: 500;
       }
     }
This page took 0.036988 seconds and 4 git commands to generate.