Skip to content

Commit 80bc02f

Browse files
decorate links with underline on hover only
1 parent eca5fd0 commit 80bc02f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

docs/src/components/Footer.astro

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,21 @@ const year = new Date().getFullYear();
1919
& p {
2020
margin: 0.75rem 0;
2121
}
22+
23+
& a {
24+
color: var(--sl-color-accent-high); /* Dark mode default */
25+
}
26+
27+
& a:hover {
28+
color:var(--sl-color-white); /* Dark mode hover */
29+
}
30+
}
31+
32+
:root[data-theme='light'] footer a {
33+
color: var(--sl-color-accent); /* Light mode default */
34+
}
35+
36+
:root[data-theme='light'] footer a:hover {
37+
color: var(--sl-color-white); /* Light mode hover */
2238
}
2339
</style>

docs/src/styles/uc.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,13 @@ sup {
6363
text-underline-offset: 2.1px;
6464
}
6565
}
66+
67+
/* Remove default underlines from all links */
68+
a {
69+
text-decoration: none;
70+
}
71+
72+
/* Add underline on hover for all links */
73+
a:hover {
74+
text-decoration: underline;
75+
}

0 commit comments

Comments
 (0)