Add $container-offset variable

This commit is contained in:
Jeremy Thomas
2017-07-31 20:22:27 +01:00
parent 915d0b4a15
commit d14a703b5e
5 changed files with 611 additions and 1856 deletions

View File

@@ -1,31 +1,33 @@
.block
+block
$container-offset: 60px !default
.container
margin: 0 auto
position: relative
+desktop
+from($desktop + $container-offset)
max-width: $desktop - (2 * $gap)
// width: $desktop - (2 * $gap)
width: $desktop - (2 * $gap)
&.is-fluid
margin-left: $gap
margin-right: $gap
max-width: none
// width: auto
+until($widescreen)
width: auto
+until($widescreen + $container-offset)
&.is-widescreen
max-width: $widescreen - (2 * $gap)
// width: auto
+until($fullhd)
width: auto
+until($fullhd + $container-offset)
&.is-fullhd
max-width: $fullhd - (2 * $gap)
// width: auto
+widescreen
width: auto
+from($widescreen + $container-offset)
max-width: $widescreen - (2 * $gap)
// width: $widescreen - (2 * $gap)
+fullhd
width: $widescreen - (2 * $gap)
+from($fullhd + $container-offset)
max-width: $fullhd - (2 * $gap)
// width: $fullhd - (2 * $gap)
width: $fullhd - (2 * $gap)
.delete
+delete