1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-12 00:24:03 +02:00

Fix another Sass division (#34332)

* Fix another Sass division

* Revert the percentage division in the mixins for accuracy

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Mark Otto
2021-06-22 10:39:13 -07:00
committed by GitHub
parent 4927388197
commit 16d5041a76

View File

@@ -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;
@@ -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));
}