Skip to content

Commit 4bfc7f2

Browse files
authored
Merge pull request #340 from Aloso/heading-anchors
headers get § links
2 parents 388c486 + 57184d4 commit 4bfc7f2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/styles/app.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,24 @@ div.brand {
133133
background-color: rgba($gray, 0.05);
134134
border: 1px solid rgba($gray, 0.25);
135135
}
136+
137+
a.anchor::before {
138+
content: "§";
139+
display: none;
140+
position: absolute;
141+
width: 1em;
142+
margin-left: -1em;
143+
text-decoration: none;
144+
opacity: 0.7;
145+
color: $gray;
146+
font-weight: normal;
147+
}
148+
:hover > a.anchor::before {
149+
display: block;
150+
}
151+
a.anchor:hover::before {
152+
opacity: 1;
153+
}
136154
}
137155

138156
ul, ol {

0 commit comments

Comments
 (0)