Skip to content

Commit

Permalink
feat: unify link styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Christiani committed Mar 28, 2024
1 parent ee3c6f1 commit fb46d0b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions blocks/footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ footer .footer a:any-link {
color: var(--background-color);
}

footer .footer a:any-link:hover {
color: var(--background-color);
text-decoration: none;
}

footer .footer h2 {
display: inline-block;
font-size: var(--heading-font-size-m);
Expand Down
5 changes: 5 additions & 0 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ header nav a:any-link {
color: currentcolor;
}

header nav a:any-link:hover {
color: currentcolor;
text-decoration: none;
}

/* hamburger */
header nav .nav-hamburger {
grid-area: hamburger;
Expand Down
9 changes: 8 additions & 1 deletion blocks/toc/toc.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@

.toc .toc-item p strong a.hash-link {
background-color:transparent;
color: var(--link-hover-color);
color: var(--highlight-color);
}

.toc .toc-item p strong a.hash-link:hover {
background-color:transparent;
color: var(--highlight-color);
text-decoration: underline;
text-decoration-thickness: 2px;
}

.toc .toc-item::before {
Expand Down
5 changes: 3 additions & 2 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,13 @@ p, dl, ol, ul, pre, blockquote {
}

a:any-link {
color: var(--link-color);
color: var(--highlight-color);
text-decoration: none;
}

a:hover {
color: var(--link-hover-color);
color: var(--highlight-color);
text-decoration: underline;
}

code, pre, samp {
Expand Down

0 comments on commit fb46d0b

Please sign in to comment.