[Fix] fix header(navbar) position to sticky

This commit is contained in:
barrystone 2021-03-30 23:02:23 +08:00
parent 796c6b1c44
commit 87af6ce6b3
2 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,8 @@ $font-header-apply: "Noto Serif CJK TC -Black";
background-color: $white;
&--sticky {
position: fixed;
// position: fixed;
position: sticky;
z-index: 99;
left: 6%;
top: 65px;

View File

@ -130,7 +130,7 @@ $font-home-button: "Noto Serif CJK TC -Black";
.section {
&-title {
margin-top: 150px;
margin-top: 88px;
@include sectionTitleHeight;
// background-color: chartreuse;
}