Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
chore(header): remove all dummy-targets and update smooth scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Feb 16, 2020
1 parent 4aac6b9 commit 6968866
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 81 deletions.
2 changes: 1 addition & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@

* `assets/css/_varibales.scss`: 你可以覆盖 `_variables.scss` 中的变量来自定义样式
* `assets/css/_custom.scss`: 你可以把自定义的样式放在这个文件
* 需要使用hugo extended版本编译sass,否则修改css无法生效
* 需要使用hugo extended版本编译sass,否则修改css无法生效

## 网站图标、浏览器配置、网站清单

Expand Down
6 changes: 3 additions & 3 deletions assets/css/_core/_media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}

@media only screen and (max-width: 960px) {
header.desktop {
#header-desktop {
.header-wrapper {
margin: 0 1rem;
}
Expand All @@ -52,11 +52,11 @@
}

@media only screen and (max-width: 560px) {
header.desktop {
#header-desktop {
display: none;
}

header.mobile {
#header-mobile {
display: block;
}

Expand Down
18 changes: 0 additions & 18 deletions assets/css/_page/_single.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions assets/css/_partial/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ header {
}
}

header.desktop {
#header-desktop {
display: block;
z-index: 100;

Expand Down Expand Up @@ -45,7 +45,7 @@ header.desktop {
}
}

header.mobile {
#header-mobile {
display: none;
z-index: 100;
transition: all 0.3s ease 0s;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/lib/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected].0
[email protected].2
4 changes: 2 additions & 2 deletions assets/js/lib/smooth-scroll/smooth-scroll.polyfills.min.js
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6968866

Please sign in to comment.