Make anchor links tab-selectable and visible when focused
This commit is contained in:
parent
6aff13706a
commit
313bb31537
1 changed files with 8 additions and 3 deletions
|
@ -10,6 +10,7 @@ a
|
|||
img, embed, frame, iframe { max-width: 100vw }
|
||||
|
||||
html,body
|
||||
min-height 100vh
|
||||
background-color var(--bg)
|
||||
color var(--fg)
|
||||
font-family var(--ff)
|
||||
|
@ -42,12 +43,16 @@ html,body
|
|||
padding 0 0.5em
|
||||
font-weight normal
|
||||
font-size 75%
|
||||
text-decoration none
|
||||
display none
|
||||
text-decoration underline
|
||||
display flex
|
||||
color transparent
|
||||
|
||||
&:focus-visible
|
||||
color var(--fg)
|
||||
|
||||
&:hover
|
||||
.anchor-link
|
||||
display flex
|
||||
color var(--fg)
|
||||
|
||||
@media (max-width: 600px)
|
||||
> h1, > h2, > h3, > h4, > h5, > h6
|
||||
|
|
Loading…
Reference in a new issue