Upgrade dependencies, Fix #4026

This commit is contained in:
Jeremy Thomas
2026-03-01 20:10:40 +00:00
parent 210b6f03b7
commit 193c7aaa73
5 changed files with 94 additions and 70 deletions

View File

@@ -7,8 +7,12 @@
@mixin typography-size($target: "") {
@each $size in dv.$sizes {
$i: list.index(dv.$sizes, $size);
$suffix: "";
@if $target != "" {
$suffix: "-" + $target;
}
.#{iv.$class-prefix}#{iv.$helpers-prefix}size-#{$i}#{if($target == "", "", "-" + $target)} {
.#{iv.$class-prefix}#{iv.$helpers-prefix}size-#{$i}#{$suffix} {
font-size: $size !important;
}
}

View File

@@ -286,12 +286,21 @@
"9": 9,
);
@for $i from if($minus, 2, 1) through string.length($value) {
$start: 1;
@if $minus {
$start: 2;
}
@for $i from $start through string.length($value) {
$character: string.slice($value, $i, $i);
@if not(list.index(map.keys($numbers), $character) or $character == ".") {
$signed-result: $result;
@if $minus {
$signed-result: -$result;
}
@return to-length(
if($minus, -$result, $result),
$signed-result,
string.slice($value, $i)
);
}
@@ -306,5 +315,8 @@
}
}
@return if($minus, -$result, $result);
@if $minus {
@return -$result;
}
@return $result;
}

View File

@@ -409,8 +409,12 @@
}
@mixin ltr-property($property, $spacing, $right: true) {
$normal: if($right, "right", "left");
$opposite: if($right, "left", "right");
$normal: "right";
$opposite: "left";
@if not $right {
$normal: "left";
$opposite: "right";
}
@if iv.$rtl {
#{$property}-#{$opposite}: $spacing;
@@ -420,8 +424,12 @@
}
@mixin ltr-position($spacing, $right: true) {
$normal: if($right, "right", "left");
$opposite: if($right, "left", "right");
$normal: "right";
$opposite: "left";
@if not $right {
$normal: "left";
$opposite: "right";
}
@if iv.$rtl {
#{$opposite}: $spacing;