Fixes padding when right sidebar is not present
This commit is contained in:
parent
13047483b3
commit
c684bcc8b7
1 changed files with 11 additions and 0 deletions
|
@ -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 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@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 @@
|
||||||
@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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue