Commit c684bcc8 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Fixes padding when right sidebar is not present

parent 13047483
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
height: 100%; height: 100%;
transition-duration: .3s; transition-duration: .3s;
} }
&.right-sidebar-expanded {
padding-right: $gutter_width;
}
} }
.sidebar-wrapper { .sidebar-wrapper {
...@@ -179,6 +183,9 @@ ...@@ -179,6 +183,9 @@
} }
@mixin expanded-sidebar { @mixin expanded-sidebar {
&.right-sidebar-collapsed {
padding-right: $sidebar_collapsed_width;
}
// when the screen is small enough // when the screen is small enough
@media (max-width: $screen-md-max) { @media (max-width: $screen-md-max) {
...@@ -212,6 +219,10 @@ ...@@ -212,6 +219,10 @@
@mixin collapsed-sidebar { @mixin collapsed-sidebar {
padding-left: $sidebar_collapsed_width; padding-left: $sidebar_collapsed_width;
&.right-sidebar-collapsed {
padding-right: $sidebar_collapsed_width;
}
.sidebar-wrapper { .sidebar-wrapper {
width: $sidebar_collapsed_width; width: $sidebar_collapsed_width;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment