From 60782d7369204a461e7f1799660352f4a9640c2a Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Sat, 14 Jan 2017 09:36:32 +0100 Subject: [PATCH] User overflow:auto instead of overflow:scroll Firefox does not support scrollbars customization like webkit does because it is not part of the CSS standard. So it is better to hide the scrollbars when they are not needed. Fix #96 Signed-off-by: Julien Pivotto --- src/assets/stylesheets/layout/_nav.scss | 2 +- src/assets/stylesheets/layout/_sidebar.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/stylesheets/layout/_nav.scss b/src/assets/stylesheets/layout/_nav.scss index 59400e37f..8bdd7187d 100644 --- a/src/assets/stylesheets/layout/_nav.scss +++ b/src/assets/stylesheets/layout/_nav.scss @@ -260,7 +260,7 @@ // List of items .md-nav__list { flex: 1; - overflow-y: scroll; + overflow-y: auto; } // List item diff --git a/src/assets/stylesheets/layout/_sidebar.scss b/src/assets/stylesheets/layout/_sidebar.scss index d751d0150..b486c43c1 100644 --- a/src/assets/stylesheets/layout/_sidebar.scss +++ b/src/assets/stylesheets/layout/_sidebar.scss @@ -108,7 +108,7 @@ // Wrapper for scrolling on overflow &__scrollwrap { margin: 2.4rem 0.4rem; - overflow-y: scroll; + overflow-y: auto; // [tablet -]: Adjust margins @include break-to-device(tablet) {