Skip to content

Commit

Permalink
fix(sidebar): fix center content not being shrink
Browse files Browse the repository at this point in the history
  • Loading branch information
nnixaa committed Sep 21, 2017
1 parent 6d05ea9 commit 156dba2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@

&.center {
width: nb-theme(layout-content-width);
flex: 0 1 nb-theme(layout-content-width) !important;
flex: 0 100 nb-theme(layout-content-width) !important;
}

.columns nb-layout-column {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@
margin-left: 0;
margin-right: nb-theme(sidebar-width-compact);
}

&.left.fixed ~ .content.center {
padding-left: nb-theme(sidebar-width-compact);
}

&.fixed.right ~ .content.center {
padding-left: 0;
padding-right: nb-theme(sidebar-width-compact);
}
}

&.fixed.left.collapsed + .content {
Expand Down

0 comments on commit 156dba2

Please sign in to comment.