mirror of
https://github.com/thangisme/notes.git
synced 2024-11-17 23:35:55 -05:00
Anchor heading css
This commit is contained in:
parent
8d60dda67e
commit
15f1faae8a
@ -1,12 +0,0 @@
|
||||
a.anchor_heading {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
h1:hover > a.anchor_heading,
|
||||
h2:hover > a.anchor_heading,
|
||||
h3:hover > a.anchor_heading,
|
||||
h4:hover > a.anchor_heading,
|
||||
h5:hover > a.anchor_heading,
|
||||
h6:hover > a.anchor_heading {
|
||||
visibility: visible;
|
||||
}
|
@ -111,4 +111,34 @@
|
||||
margin-left: 1em;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.anchor-heading {
|
||||
fill: $link-color;
|
||||
visibility: hidden;
|
||||
|
||||
@include mq(md) {
|
||||
position: absolute;
|
||||
left: -$sp-5;
|
||||
width: $sp-5;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
h1:hover > .anchor-heading,
|
||||
h2:hover > .anchor-heading,
|
||||
h3:hover > .anchor-heading,
|
||||
h4:hover > .anchor-heading,
|
||||
h5:hover > .anchor-heading,
|
||||
h6:hover > .anchor-heading {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user