Skip to content

Commit

Permalink
fix(layout): fix layout height when header is not fixed (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnixaa authored May 22, 2018
1 parent a5bcd3c commit 084391b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,13 @@
}
}

& ~ .layout-container {
min-height: calc(#{nb-theme(layout-min-height)} - #{nb-theme(header-height)});
}

&.fixed ~ .layout-container {
padding-top: nb-theme(header-height);
min-height: nb-theme(layout-min-height);
}

&.fixed ~ .layout-container > nb-sidebar > .main-container {
Expand All @@ -148,7 +153,6 @@
}

.layout-container {
min-height: nb-theme(layout-min-height);

nb-sidebar.fixed {
top: nb-theme(header-height);
Expand Down

0 comments on commit 084391b

Please sign in to comment.