UX: improve fixed mode to account for sticky d-header

This commit is contained in:
Joe 2020-12-09 14:11:01 +08:00
parent 1de9acfefb
commit f32be592d7
1 changed files with 2 additions and 11 deletions

View File

@ -7,21 +7,12 @@ $item-height: 40px;
z-index: z("header") + 1;
}
.d-header {
.d-header-wrap {
top: $item-height;
position: fixed;
}
#main-outlet {
padding-top: calc(5.8572em + #{$item-height});
}
} @else {
.d-header {
top: $item-height;
.docked & {
top: 0;
}
padding-top: calc(1.8em + #{$item-height});
}
}