mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01: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:
parent
4927388197
commit
16d5041a76
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user