]> git.ardis.lu - event-hashes/commitdiff
Fix button misalignment on Firefox
authorArdis Lu <ardisglu@gmail.com>
Thu, 14 Mar 2024 02:52:51 +0000 (19:52 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 14 Mar 2024 02:52:51 +0000 (19:52 -0700)
Avoids relying on defaults that don't apply on FireFox

index.html

index e90bc1d56d6bf511cbaff16a63627061e0cb8b3f..68a8b6c66511cf77ec2953bba3990f6d3780153a 100644 (file)
       gap: 8px;
     }
 
-    .label-container {
+    .label-container,
+    .button-container {
       display: flex;
-      gap: 4px;
+      align-items: center;
     }
 
     label {
     }
 
     button {
+      line-height: 0;
       background: none;
       border: none;
       padding: 8px;
-      margin: -8px;
       cursor: pointer;
       transition: filter 400ms;
       color: hsl(216deg 50% 40%);
@@ -98,7 +99,7 @@
     }
 
     button>svg {
-      block-size: 100%;
+      inline-size: 20px;
       pointer-events: none;
     }
 
     .button-container {
       visibility: hidden;
       opacity: 0;
-      display: flex;
       justify-content: center;
-      gap: 16px;
       transition: opacity 300ms;
     }
 
This page took 0.043003 seconds and 4 git commands to generate.