1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-15 01:25:28 +01:00

linked headers fixes

This commit is contained in:
Matthias Kretschmann 2019-07-15 14:40:40 +02:00
parent f8b006f21b
commit 8de5c43119
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 26 additions and 1 deletions

View File

@ -51,7 +51,8 @@ module.exports = {
{
resolve: 'gatsby-remark-autolink-headers',
options: {
maintainCase: true
maintainCase: true,
icon: '<span>#</span>'
}
},
{

View File

@ -5,4 +5,28 @@
.anchor {
margin-top: $spacer / 3;
font-size: $font-size-large;
color: $brand-grey-light;
font-weight: 700;
span {
transition: opacity .2s ease-out;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
.anchor span {
opacity: 0;
}
&:hover {
.anchor span {
opacity: 1;
}
}
}