]> git.ardis.lu - ens2hex/commitdiff
Reduce line-height to tightly wrap <a> tags
authorArdis Lu <ardisglu@gmail.com>
Thu, 7 Dec 2023 07:11:38 +0000 (23:11 -0800)
committerArdis Lu <ardisglu@gmail.com>
Thu, 7 Dec 2023 07:11:38 +0000 (23:11 -0800)
Otherwise the <a> background on hover will peek out of <code> background

index.html

index 28c720fa73e991d4997d33260b52bde9c7d8fc9d..c5a32d223b06319ea826c20d2b46235f37b7d948 100644 (file)
     }
 
     a {
+      display: inline-block;
+      line-height: 1;
       color: var(--secondary);
       font-weight: 700;
       text-decoration: none;
       border-radius: 4px;
       transition: background-color 500ms;
-      transform: scaleY(0);
     }
 
     a:hover,
This page took 0.046213 seconds and 4 git commands to generate.