From c684bcc8b7b9361e65197841db69d82176206b88 Mon Sep 17 00:00:00 2001 From: Alfredo Sumaran Date: Tue, 23 Feb 2016 15:15:24 -0500 Subject: [PATCH] Fixes padding when right sidebar is not present --- app/assets/stylesheets/framework/sidebar.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/assets/stylesheets/framework/sidebar.scss b/app/assets/stylesheets/framework/sidebar.scss index 194bd803930..e2b978b50bd 100644 --- a/app/assets/stylesheets/framework/sidebar.scss +++ b/app/assets/stylesheets/framework/sidebar.scss @@ -12,6 +12,10 @@ height: 100%; transition-duration: .3s; } + + &.right-sidebar-expanded { + padding-right: $gutter_width; + } } .sidebar-wrapper { @@ -179,6 +183,9 @@ } @mixin expanded-sidebar { + &.right-sidebar-collapsed { + padding-right: $sidebar_collapsed_width; + } // when the screen is small enough @media (max-width: $screen-md-max) { @@ -212,6 +219,10 @@ @mixin collapsed-sidebar { padding-left: $sidebar_collapsed_width; + &.right-sidebar-collapsed { + padding-right: $sidebar_collapsed_width; + } + .sidebar-wrapper { width: $sidebar_collapsed_width;