Skip to content

Commit

Permalink
fixed sidebar overlapping toolbar on mobile safari
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed Apr 1, 2020
1 parent 67174b5 commit c6b1b4f
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions build/scss/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ body,
}
}

.layout-fixed & .sidebar {
height: calc(100vh - (#{$main-header-height-inner} + #{$main-header-bottom-border-width}));
}
.layout-fixed.text-sm & .sidebar {
height: calc(100vh - (#{$main-header-height-sm-inner} + #{$main-header-bottom-border-width}));
@supports not (-webkit-touch-callout: none) {
.layout-fixed & .sidebar {
height: calc(100vh - (#{$main-header-height-inner} + #{$main-header-bottom-border-width}));
}
.layout-fixed.text-sm & .sidebar {
height: calc(100vh - (#{$main-header-height-sm-inner} + #{$main-header-bottom-border-width}));
}
}

.layout-navbar-fixed.layout-fixed & {
Expand Down Expand Up @@ -566,6 +568,14 @@ body:not(.sidebar-mini-md) {
}
}

@supports (-webkit-touch-callout: none) {
.layout-fixed {
.main-sidebar {
height: inherit;
}
}
}

.main-footer {
background: $main-footer-bg;
border-top: $main-footer-border-top;
Expand Down

0 comments on commit c6b1b4f

Please sign in to comment.