diff options
| author | XhmikosR <[email protected]> | 2017-10-03 22:12:31 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2017-10-05 09:42:17 +0300 |
| commit | 219ba7f2eae10b6df4cd2b65f1fb47515bc4285a (patch) | |
| tree | f6c64f8acde23060df5b3e759607f8db4ea79411 | |
| parent | 7b715ee7e846d0e53d9839b91254676f3795f3bd (diff) | |
| download | bootstrap-219ba7f2eae10b6df4cd2b65f1fb47515bc4285a.tar.xz bootstrap-219ba7f2eae10b6df4cd2b65f1fb47515bc4285a.zip | |
make-col-offset: Remove percentage if it's zero.
| -rw-r--r-- | scss/mixins/_grid.scss | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scss/mixins/_grid.scss b/scss/mixins/_grid.scss index b5612e922..b75ebcbca 100644 --- a/scss/mixins/_grid.scss +++ b/scss/mixins/_grid.scss @@ -47,5 +47,6 @@ } @mixin make-col-offset($size, $columns: $grid-columns) { - margin-left: percentage($size / $columns); + $num: $size / $columns; + margin-left: if($num == 0, 0, percentage($num)); } |
