From b1d07a8e7ca1c1d6914646423a9ffcec6adb6a35 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 17 Jun 2017 22:29:54 -0700 Subject: [PATCH] follow up to 4bab8b890e5337cda3a3221462ab40a84d96c3b4 to avoid the max-height if there's no sticky --- assets/scss/_sidebar.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/scss/_sidebar.scss b/assets/scss/_sidebar.scss index b8f311f209..ebcc23c449 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