Last active
December 3, 2021 08:43
-
-
Save bartwttewaall/8b3519593a46bcdb7cfe68f73c1683d8 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
// mixin for setting the gutter size | |
@mixin row-gutters($size) { | |
margin-right: -$size; | |
margin-left: -$size; | |
> .col, | |
> [class*='col-'] { | |
padding-right: $size; | |
padding-left: $size; | |
} | |
} | |
// add padding at the bottom of each col so we get even spacing throughout the columns and rows | |
.row.gutter-bottom { | |
> .col, | |
> [class^='col-'], | |
> [class*=' col-'] { | |
padding-bottom: $grid-gutter-width; | |
} | |
} | |
.small-gutters { | |
@include row-gutters(10px); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment