mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Upgrade dependencies, Fix #4026
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user