1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Merge pull request #19257 from twbs/fix-19147

Add $gutter parameter to make-col mixin
This commit is contained in:
Chris Rebert 2016-02-17 03:25:04 -08:00
commit 3c2692447c
2 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@
@for $i from 1 through $columns {
.col-#{$breakpoint}-#{$i} {
@include make-col($i, $columns);
@include make-col($i, $columns, $gutter);
}
}

View file

@ -33,11 +33,11 @@
margin-right: ($gutter / -2);
}
@mixin make-col($size, $columns: $grid-columns) {
@mixin make-col($size, $columns: $grid-columns, $gutter: $grid-gutter-width) {
position: relative;
min-height: 1px;
padding-right: ($grid-gutter-width / 2);
padding-left: ($grid-gutter-width / 2);
padding-right: ($gutter / 2);
padding-left: ($gutter / 2);
@if $enable-flex {
flex: 0 0 percentage($size / $columns);