Skip to content

Commit

Permalink
feat: change anchor opacity on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
martyanovandrey committed Aug 20, 2024
1 parent 195bd57 commit 18bc8e1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/scss/_anchor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@

text-align: center;
font-size: 18px;
}

.yfm-anchor::before {
content: '#';
opacity: 0;
&:focus {
&::before {
opacity: 1;
}
}

&::before {
content: '#';
opacity: 0;
}
}

&:hover .yfm-anchor::before {
Expand Down

0 comments on commit 18bc8e1

Please sign in to comment.