]> git.ardis.lu - ardislu.dev/commitdiff
Update text-decoration so transitions work
authorArdis Lu <ardisglu@gmail.com>
Wed, 13 Apr 2022 04:52:33 +0000 (21:52 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 13 Apr 2022 04:52:33 +0000 (21:52 -0700)
Transitions apply to text-decoration-color, not text-decoration-line

style.css

index e1447f3e2cdb951c0afb6f2a22799ca8a81f81af..084ea2410a64b443408ff2476d5ae2ce2755c3ae 100644 (file)
--- a/style.css
+++ b/style.css
@@ -24,14 +24,14 @@ h1 {
 a {
   color: hsl(216deg 100% 45%);
   font-weight: bold;
-  text-decoration: none;
+  text-decoration-color: transparent;
   transition: 0.15s;
 }
 
 a:hover, a:focus {
   background-color: hsl(30deg 80% 90%);
   border-radius: 0.25rem;
-  text-decoration: underline;
+  text-decoration-color: currentColor;
 }
 
 kbd {
This page took 0.037335 seconds and 4 git commands to generate.