use calc hack to prevent #content outgrowing the browser's window

This commit is contained in:
mrliptontea
2015-08-12 20:23:12 +02:00
parent b7efd10a99
commit f5ef9dba70
2 changed files with 5 additions and 3 deletions

View File

@@ -1,11 +1,11 @@
#main {
@extend %clearfix;
@if $flexbox-layout {
// scss-lint:disable VendorPrefix
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
} @else {
@extend %clearfix;
}
}
@@ -19,6 +19,8 @@
@if $flexbox-layout {
// scss-lint:disable VendorPrefix
$side-space: $sidebar-width + $padding-side * 2;
width: calc(100% - #{$side-space});
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;

File diff suppressed because one or more lines are too long