]> git.ardis.lu - ens2hex/commitdiff
Add <summary> hover effect to match <button>
authorArdis Lu <ardisglu@gmail.com>
Wed, 5 Oct 2022 02:59:51 +0000 (19:59 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 5 Oct 2022 02:59:51 +0000 (19:59 -0700)
index.html

index 4239aa56cb89a905d7d1ebc72575415145fba049..c9a26bb6af832f19b81dd5cd4ad6d5397d2799e8 100644 (file)
       background: var(--secondary-lighter);
       padding: 8px 16px;
       cursor: pointer;
+      filter: brightness(0.95);
+      transition: filter 500ms;
+    }
+
+    details summary:hover,
+    details summary:focus {
+      filter: brightness(1);
+      transition: filter 150ms;
     }
 
     details .details-body {
This page took 0.054418 seconds and 4 git commands to generate.