Skip to content

Commit

Permalink
Fix another Sass division (twbs#34332)
Browse files Browse the repository at this point in the history
* Fix another Sass division

* Revert the percentage division in the mixins for accuracy

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
  • Loading branch information
2 people authored and marvin-hinkley-vortx committed Aug 18, 2021
1 parent a4f0d7e commit 29ef42e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scss/mixins/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@mixin make-col($size: false, $columns: $grid-columns) {
@if $size {
flex: 0 0 auto;
width: divide(100%, divide($columns, $size));
width: percentage(divide($size, $columns));

} @else {
flex: 1 1 0;
Expand All @@ -43,7 +43,7 @@
}

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

Expand Down

0 comments on commit 29ef42e

Please sign in to comment.