aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-06-17 22:29:54 -0700
committerMark Otto <[email protected]>2017-06-17 22:29:54 -0700
commitb1d07a8e7ca1c1d6914646423a9ffcec6adb6a35 (patch)
treeff845bdd73fd0dbcca85d6befb837d022fea01fa
parentbcc1f84d56fabae8941bb4f1b6c963dbf3e32815 (diff)
downloadbootstrap-b1d07a8e7ca1c1d6914646423a9ffcec6adb6a35.tar.xz
bootstrap-b1d07a8e7ca1c1d6914646423a9ffcec6adb6a35.zip
follow up to 4bab8b890e5337cda3a3221462ab40a84d96c3b4 to avoid the max-height if there's no sticky
-rw-r--r--assets/scss/_sidebar.scss6
1 files changed, 4 insertions, 2 deletions
diff --git a/assets/scss/_sidebar.scss b/assets/scss/_sidebar.scss
index b8f311f20..ebcc23c44 100644
--- a/assets/scss/_sidebar.scss
+++ b/assets/scss/_sidebar.scss
@@ -76,8 +76,10 @@
margin-left: -15px;
@include media-breakpoint-up(md) {
- max-height: calc(100vh - 9rem);
- overflow-y: auto;
+ @supports (position: sticky) {
+ max-height: calc(100vh - 9rem);
+ overflow-y: auto;
+ }
}
// Override collapse behaviors