Skip to content

Commit 57184d4

Browse files
committed
headers get § links #280
1 parent dad2053 commit 57184d4

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
@@ -114,6 +114,24 @@ div.brand {
114114
background-color: rgba($gray, 0.05);
115115
border: 1px solid rgba($gray, 0.25);
116116
}
117+
118+
a.anchor::before {
119+
content: "§";
120+
display: none;
121+
position: absolute;
122+
width: 1em;
123+
margin-left: -1em;
124+
text-decoration: none;
125+
opacity: 0.7;
126+
color: $gray;
127+
font-weight: normal;
128+
}
129+
:hover > a.anchor::before {
130+
display: block;
131+
}
132+
a.anchor:hover::before {
133+
opacity: 1;
134+
}
117135
}
118136

119137
ol, ul {

0 commit comments

Comments
 (0)