Last active
January 10, 2017 21:01
-
-
Save mdahlke/c8a62ab2152f22159c339e13c93372ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$breakpoints: ( | |
'xs': 0px, | |
'sm': 768px, | |
'md': 992px, | |
'lg': 1200px, | |
); | |
$gutters: ( | |
'no': 0, | |
'xs': 1px, | |
'sm': 7px, | |
'md': 15px, | |
'lg': 22px, | |
'xl': 30px | |
); | |
@each $breakpoint, $screen-size in $breakpoints { | |
@each $name, $size in $gutters { | |
/* #{$name} gutters */ | |
@debug $screen-size; | |
@media (min-width: $screen-size) { | |
.container.#{$breakpoint}-gutters-#{$name}, | |
.container-fluid.#{$breakpoint}-gutters-#{$name} { | |
padding-right: #{$size}; | |
padding-left: #{$size}; | |
.row { | |
margin-right: -#{$size}; | |
margin-left: -#{$size}; | |
> { | |
[class^="col-"], | |
[class*=" col-"] { | |
padding-right: #{$size}; | |
padding-left: #{$size}; | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment