Skip to content

Commit

Permalink
fix(theme-default): fix new anchor style
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 24, 2024
1 parent 7a4b223 commit 04ebdd2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion themes/theme-default/src/client/styles/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
}

.theme-default-content {
a:not(.anchor-header):hover {
a:not(.header-anchor):hover {
text-decoration: underline;
}

Expand Down
24 changes: 22 additions & 2 deletions themes/theme-default/src/client/styles/normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,29 @@ h6 {
outline: none;
}

&:hover .header-anchor {
color: var(--c-text-accent);
.header-anchor {
color: inherit;
text-decoration: none;
position: relative;

&:hover ::before {
content: '';
position: absolute;
left: -0.75em;
color: var(--c-brand);
}

&:focus-visible {
outline: none;

&::before {
content: '';
position: absolute;
left: -0.75em;
color: var(--c-brand);
outline: auto;
}
}
}
}

Expand Down

0 comments on commit 04ebdd2

Please sign in to comment.