chore(header): remove all dummy-targets and update smooth scroll
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user