Skip to content

Commit b0d89ab

Browse files
authored
Merge pull request #459 from passkeydeveloper/bug/link-styling
Fix link visibility
2 parents f2295f3 + ffba1fc commit b0d89ab

1 file changed

Lines changed: 52 additions & 2 deletions

File tree

assets/scss/theme/theme.scss

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,58 @@
88
font-weight: 500;
99
}
1010

11-
a:hover {
12-
font-weight: bold;
11+
.navbar-nav .nav-link:hover {
12+
border-bottom-color: #0056b3;
13+
background-color: #f0f0f0;
14+
}
15+
16+
@if $enable-dark-mode {
17+
@include color-mode(dark) {
18+
.navbar-nav .nav-link:hover {
19+
border-bottom-color: #66b2ff;
20+
background-color: #333333;
21+
}
22+
}
23+
}
24+
25+
p a,li a {
26+
text-decoration: none;
27+
border-bottom: 2px solid transparent; /* Reserve space to prevent jumping */
28+
transition: border-color 0.3s;
29+
font-weight: 500;
30+
}
31+
p a:hover,li a:hover {
32+
border-bottom-color: #0056b3;
33+
background-color: #f0f0f0;
34+
}
35+
36+
@if $enable-dark-mode {
37+
@include color-mode(dark) {
38+
p a:hover,li a:hover {
39+
border-bottom-color: #66b2ff;
40+
background-color: #333333;
41+
}
42+
}
43+
}
44+
45+
.toc a {
46+
text-decoration: none;
47+
border-bottom: 2px solid transparent; /* Reserve space to prevent jumping */
48+
transition: border-color 0.3s;
49+
font-weight: 500;
50+
}
51+
.toc a:hover {
52+
border-bottom-color: #0056b3;
53+
background-color: #f0f0f0;
54+
}
55+
56+
@if $enable-dark-mode {
57+
@include color-mode(dark) {
58+
.toc a:hover {
59+
border-bottom-color: #66b2ff;
60+
background-color: #333333;
61+
}
62+
}
1363
}
1464

1565
.fade-out-text {

0 commit comments

Comments
 (0)