chore(header): remove all dummy-targets and update smooth scroll

This commit is contained in:
Dillon
2020-02-16 16:42:14 +08:00
parent 4aac6b98a5
commit 69688661f4
11 changed files with 55 additions and 81 deletions

View File

@@ -54,13 +54,6 @@
@import "../_partial/_single/toc";
.content {
.post-dummy-target:target {
display: inline-block;
position: relative;
top: -5.6rem;
visibility: hidden;
}
h1,
h2,
h3,
@@ -75,17 +68,6 @@
}
}
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
display: block;
content: "";
height: 1.2 * $header-height;
margin: -1.2 * $header-height 0 0;
}
h2 > a:first-child::before {
content: "#";
margin-right: .3125rem;