Browse Source

fixed sidebar overlapping toolbar on mobile safari

REJack 5 years ago
parent
commit
c6b1b4f586
1 changed files with 15 additions and 5 deletions
  1. 15 5
      build/scss/_layout.scss

+ 15 - 5
build/scss/_layout.scss

@@ -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 & {
@@ -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;