Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 52 additions & 2 deletions assets/scss/theme/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,58 @@
font-weight: 500;
}

a:hover {
font-weight: bold;
.navbar-nav .nav-link:hover {
border-bottom-color: #0056b3;
background-color: #f0f0f0;
}

@if $enable-dark-mode {
@include color-mode(dark) {
.navbar-nav .nav-link:hover {
border-bottom-color: #66b2ff;
background-color: #333333;
}
}
}

p a,li a {
text-decoration: none;
border-bottom: 2px solid transparent; /* Reserve space to prevent jumping */
transition: border-color 0.3s;
font-weight: 500;
}
p a:hover,li a:hover {
border-bottom-color: #0056b3;
background-color: #f0f0f0;
}

@if $enable-dark-mode {
@include color-mode(dark) {
p a:hover,li a:hover {
border-bottom-color: #66b2ff;
background-color: #333333;
}
}
}

.toc a {
text-decoration: none;
border-bottom: 2px solid transparent; /* Reserve space to prevent jumping */
transition: border-color 0.3s;
font-weight: 500;
}
.toc a:hover {
border-bottom-color: #0056b3;
background-color: #f0f0f0;
}

@if $enable-dark-mode {
@include color-mode(dark) {
.toc a:hover {
border-bottom-color: #66b2ff;
background-color: #333333;
}
}
}

.fade-out-text {
Expand Down
9 changes: 9 additions & 0 deletions hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@
"accordion-item",
"active",
"align-items-center",
"align-items-start",
"align-middle",
"align-self-center",
"align-top",
"anchor",
"articles",
"badge",
"ball",
"bg-body",
Expand Down Expand Up @@ -202,6 +204,8 @@
"h-100",
"h6",
"heading",
"hero",
"hero-title",
"highlight",
"hstack",
"html-video",
Expand Down Expand Up @@ -271,6 +275,7 @@
"p-2",
"p-3",
"p-4",
"pb-4",
"pb-5",
"pe-1",
"position-fixed",
Expand All @@ -285,9 +290,11 @@
"pt-4",
"pt-5",
"pt-md-0",
"px-%!d(string=0)",
"px-3",
"px-4",
"px-xxl-0",
"py-%!d(string=0)",
"py-1",
"py-2",
"py-3",
Expand Down Expand Up @@ -321,6 +328,7 @@
"table-responsive",
"table-responsive-md",
"table-striped",
"text-",
"text-bg-body",
"text-bg-secondary",
"text-body",
Expand Down Expand Up @@ -358,6 +366,7 @@
"2-factor-authentication-2fa",
"2fa-user",
"a-note-about-user-verification",
"about-passkeysdev",
"accordion-default",
"accordion-default-heading-0",
"accordion-default-item-0",
Expand Down