Skip to content

Commit

Permalink
feat(theme-default): sync anchor permalink function updates for bette…
Browse files Browse the repository at this point in the history
…r a11y
  • Loading branch information
nruffing authored Dec 12, 2023
1 parent 301c5d8 commit 93e6a04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 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:hover {
a:not(.anchor-header):hover {
text-decoration: underline;
}

Expand Down
25 changes: 2 additions & 23 deletions themes/theme-default/src/client/styles/normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ h6 {
}

&:hover .header-anchor {
opacity: 1;
color: var(--c-text-accent);
text-decoration: none;
}
}

Expand Down Expand Up @@ -125,28 +126,6 @@ h6 {
}

a {
&.header-anchor {
font-size: 0.85em;
float: left;
margin-left: -0.87em;
padding-right: 0.23em;
margin-top: 0.125em;
opacity: 0;
user-select: none;

@media print {
display: none;
}

&:hover {
text-decoration: none;
}

&:focus-visible {
opacity: 1;
}
}

@media print {
&[href^="http://"],
&[href^="https://"]
Expand Down

0 comments on commit 93e6a04

Please sign in to comment.