feat: markdown anchors

This commit is contained in:
Nicolas Giard
2018-09-17 00:36:44 -04:00
parent d393a95495
commit d52f213012
4 changed files with 41 additions and 0 deletions

View File

@@ -3,6 +3,26 @@
.contents {
color: mc('grey', '800');
h1, h2, h3, h4, h5, h6 {
position: relative;
&:hover {
.toc-anchor {
display: block;
}
}
.toc-anchor {
display: none;
position: absolute;
right: 1rem;
bottom: .5rem;
font-size: 1.25rem;
text-decoration: none;
color: mc('grey', '500');
}
}
h1 {
padding-left: 24px;
color: mc('blue', '800');