Padding for anchor-links
This commit is contained in:
parent
ff2a15fc02
commit
763c8aa0e6
1 changed files with 7 additions and 5 deletions
|
@ -35,26 +35,28 @@ body
|
|||
*:first-child { margin-top: 0 }
|
||||
|
||||
> h1, > h2, > h3, > h4, > h5, > h6
|
||||
display flex
|
||||
|
||||
.anchor-link
|
||||
padding-left 0.5em
|
||||
flex-grow 1
|
||||
padding 0 0.5em
|
||||
font-weight normal
|
||||
font-size 75%
|
||||
text-decoration none
|
||||
display none
|
||||
position absolute
|
||||
|
||||
&:hover
|
||||
.anchor-link
|
||||
display inline-flex
|
||||
display flex
|
||||
|
||||
@media (max-width: 600px)
|
||||
> h1, > h2, > h3, > h4, > h5, > h6
|
||||
.anchor-link
|
||||
padding-right 0.25em
|
||||
padding 0 0.25em
|
||||
font-weight normal
|
||||
font-size 75%
|
||||
text-decoration none
|
||||
display inline-flex
|
||||
display flex
|
||||
position absolute
|
||||
right 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue