fixed css

This commit is contained in:
2023-12-03 23:30:30 +01:00
parent f05c4517cd
commit d0ecf1aec4
10 changed files with 178 additions and 36 deletions

View File

@@ -1,6 +1,8 @@
//////////////////////////////
// Converts the input value to Base EMs
//////////////////////////////
@use "sass:math";
@function breakpoint-to-base-em($value) {
$value-unit: unit($value);
@@ -25,16 +27,16 @@
$unit: unit($value);
@if $unit == 'px' {
@return $value / 16px * 1em;
@return math.div($value, 16px) * 1em;
}
@else if $unit == '%' {
@return $value / 100% * 1em;
@return math.div($value, 100%) * 1em;
}
@else if $unit == 'em' {
@return $value;
}
@else if $unit == 'pt' {
@return $value / 12pt * 1em;
@return math.div($value, 12pt) * 1em;
}
@else {
@return $value;