🐛 Fix(RWD): add scroll-margin to headerlink

This commit is contained in:
Cell
2021-12-24 00:30:01 +08:00
parent 222436664e
commit ebc53f6eea
2 changed files with 18 additions and 9 deletions
+9
View File
@@ -60,6 +60,15 @@
padding-top: 0;
}
.headerLink {
[header-mobile] & {
scroll-margin-top: 0;
}
[header-mobile=fixed] & {
scroll-margin-top: $header-height;
}
}
.categories-card {
.card-item {
width: 100%;
+9 -9
View File
@@ -11,19 +11,19 @@
[header-desktop=normal] & {
padding-top: 0;
}
.headerLink {
[header-desktop] & {
scroll-margin-top: $header-height;
}
[header-desktop=normal] & {
scroll-margin-top: 0;
}
}
@include blur;
}
.headerLink {
scroll-margin-top: 0;
[header-desktop=fixed] &,
[header-mobile=fixed] & {
scroll-margin-top: $header-height;
}
}
@import "_single";
@import "_special";
@import "_archive";