Adds anchors to all headings (#439)

This commit is contained in:
Codruț Constantin Gușoi
2021-01-25 20:13:58 +00:00
committed by GitHub
parent 2ae5eec336
commit 8384e09033
12 changed files with 74 additions and 13 deletions

View File

@@ -47,6 +47,24 @@ h6 {
font-weight: 700;
color: $alt-fg-color;
margin: 6.4rem 0 3.2rem 0;
&:hover .heading-link {
visibility: visible;
}
.heading-link {
color: $link-color;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden;
}
.title-link {
color: inherit;
font-weight: inherit;
text-decoration: none;
}
}
h1 {

View File

@@ -14,6 +14,24 @@
h5,
h6 {
color: $alt-fg-color-dark;
&:hover .heading-link {
visibility: visible;
}
.heading-link {
color: $link-color-dark;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden;
}
.title-link {
color: inherit;
font-weight: inherit;
text-decoration: none;
}
}
code {