mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-31 00:59:51 +02:00
Migrate to Sass modules
fix function
This commit is contained in:
6
scss/vendor/_rfs.scss
vendored
6
scss/vendor/_rfs.scss
vendored
@@ -1,3 +1,5 @@
|
||||
@use "sass:map";
|
||||
|
||||
// stylelint-disable scss/dimension-no-non-numeric-values
|
||||
|
||||
// SCSS RFS mixin
|
||||
@@ -88,8 +90,8 @@ $rfs-base-value-unit: unit($rfs-base-value);
|
||||
"em": 1em,
|
||||
"%": 1%
|
||||
);
|
||||
@if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {
|
||||
$result: $result * map-get($unit-map, $dividend-unit);
|
||||
@if ($dividend-unit != $divisor-unit and map.has-key($unit-map, $dividend-unit)) {
|
||||
$result: $result * map.get($unit-map, $dividend-unit);
|
||||
}
|
||||
@return $result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user