Skip to content

Commit 16d5041

Browse files
mdoXhmikosR
andauthored
Fix another Sass division (#34332)
* Fix another Sass division * Revert the percentage division in the mixins for accuracy Co-authored-by: XhmikosR <[email protected]>
1 parent 4927388 commit 16d5041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scss/mixins/_grid.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@mixin make-col($size: false, $columns: $grid-columns) {
3030
@if $size {
3131
flex: 0 0 auto;
32-
width: divide(100%, divide($columns, $size));
32+
width: percentage(divide($size, $columns));
3333

3434
} @else {
3535
flex: 1 1 0;
@@ -43,7 +43,7 @@
4343
}
4444

4545
@mixin make-col-offset($size, $columns: $grid-columns) {
46-
$num: $size / $columns;
46+
$num: divide($size, $columns);
4747
margin-left: if($num == 0, 0, percentage($num));
4848
}
4949

0 commit comments

Comments
 (0)