]> git.ardis.lu - ens2hex/commitdiff
Add details open and close transition
authorArdis Lu <ardisglu@gmail.com>
Sat, 8 Mar 2025 02:15:01 +0000 (18:15 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sat, 8 Mar 2025 02:15:01 +0000 (18:15 -0800)
index.html

index 048be24969ae55388e1b5bfd9f5ab53739d174f4..b6332726defc79daf43b07dc5b8bfa7a081ec9f3 100644 (file)
@@ -22,6 +22,7 @@
       --secondary: hsl(90deg 40% 35%);
       --secondary-lighter: hsl(90deg 30% 80%);
       --secondary-lightest: hsl(90deg 5% 90%);
+      interpolate-size: allow-keywords;
     }
 
     body {
       border-radius: 2px;
     }
 
+    details::details-content {
+      transition: block-size 200ms ease, content-visibility 200ms ease allow-discrete;
+      block-size: 0;
+      overflow: clip;
+    }
+
+    details[open]::details-content {
+      block-size: auto;
+    }
+
     summary {
       background: var(--secondary-lighter);
       padding: 8px 16px;
This page took 0.039695 seconds and 4 git commands to generate.