fix(header): Use data attributes for header mode

Partially fixes: #401

Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
This commit is contained in:
Khusika Dhamar Gusti
2020-11-26 06:52:07 +07:00
parent fbceb4ad5d
commit 1281b13109
9 changed files with 15 additions and 15 deletions

View File

@@ -52,11 +52,11 @@
.page {
width: 100%;
[header-mobile] & {
[data-header-mobile] & {
padding-top: $header-height;
}
[header-mobile=normal] & {
[data-header-mobile=normal] & {
padding-top: 0;
}

View File

@@ -4,11 +4,11 @@
width: 60%;
margin: 0 auto;
[header-desktop] & {
[data-header-desktop] & {
padding-top: $header-height;
}
[header-desktop=normal] & {
[data-header-desktop=normal] & {
padding-top: 0;
}

View File

@@ -151,7 +151,7 @@ header {
height: $header-height;
line-height: $header-height;
[header-desktop=normal] & {
[data-header-desktop=normal] & {
position: static;
}
@@ -216,7 +216,7 @@ header {
height: $header-height;
line-height: $header-height;
[header-mobile=normal] & {
[data-header-mobile=normal] & {
position: static;
}

View File

@@ -60,7 +60,7 @@
left: 0;
visibility: hidden;
[header-desktop=normal] & {
[data-header-desktop=normal] & {
top: 5rem;
}