Skip to content

Commit ffba1fc

Browse files
committed
#413 fix link visibility
1 parent 7862559 commit ffba1fc

2 files changed

Lines changed: 61 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 {

hugo_stats.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@
6464
"accordion-item",
6565
"active",
6666
"align-items-center",
67+
"align-items-start",
6768
"align-middle",
6869
"align-self-center",
6970
"align-top",
7071
"anchor",
72+
"articles",
7173
"badge",
7274
"ball",
7375
"bg-body",
@@ -202,6 +204,8 @@
202204
"h-100",
203205
"h6",
204206
"heading",
207+
"hero",
208+
"hero-title",
205209
"highlight",
206210
"hstack",
207211
"html-video",
@@ -271,6 +275,7 @@
271275
"p-2",
272276
"p-3",
273277
"p-4",
278+
"pb-4",
274279
"pb-5",
275280
"pe-1",
276281
"position-fixed",
@@ -285,9 +290,11 @@
285290
"pt-4",
286291
"pt-5",
287292
"pt-md-0",
293+
"px-%!d(string=0)",
288294
"px-3",
289295
"px-4",
290296
"px-xxl-0",
297+
"py-%!d(string=0)",
291298
"py-1",
292299
"py-2",
293300
"py-3",
@@ -321,6 +328,7 @@
321328
"table-responsive",
322329
"table-responsive-md",
323330
"table-striped",
331+
"text-",
324332
"text-bg-body",
325333
"text-bg-secondary",
326334
"text-body",
@@ -358,6 +366,7 @@
358366
"2-factor-authentication-2fa",
359367
"2fa-user",
360368
"a-note-about-user-verification",
369+
"about-passkeysdev",
361370
"accordion-default",
362371
"accordion-default-heading-0",
363372
"accordion-default-item-0",

0 commit comments

Comments
 (0)