Add $duration to initial-variables

This commit is contained in:
Michiel Vermeersch
2024-12-04 14:29:56 +01:00
parent 2172fa18c9
commit 944caf8c75
4 changed files with 10 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
- Fix #3842: restore use of `$easing`, `$radius-rounded` and `$speed` Sass variables - Fix #3842: restore use of `$easing`, `$radius-rounded` and `$speed` Sass variables
- Fix #3920: migrate code to avoid Sass 1.80 deprecation warning of global built-in functions - Fix #3920: migrate code to avoid Sass 1.80 deprecation warning of global built-in functions
- Fix #3945: add `$duration` Sass variable
### Documentation Fixes ### Documentation Fixes

View File

@@ -184,6 +184,10 @@
"name": "breakpoints", "name": "breakpoints",
"value": "(\n \"mobile\": (\n \"until\": $tablet,\n ),\n \"tablet\": (\n \"from\": $tablet,\n ),\n \"tablet-only\": (\n \"from\": $tablet,\n \"until\": $desktop,\n ),\n \"touch\": (\n \"from\": $desktop,\n ),\n \"desktop\": (\n \"from\": $desktop,\n ),\n \"desktop-only\": (\n \"from\": $desktop,\n \"until\": $widescreen,\n ),\n \"until-widescreen\": (\n \"until\": $widescreen,\n ),\n \"widescreen\": (\n \"from\": $widescreen,\n ),\n \"widescreen-only\": (\n \"from\": $widescreen,\n \"until\": $fullhd,\n ),\n \"until-fullhd\": (\n \"until\": $fullhd,\n ),\n \"fullhd\": (\n \"from\": $fullhd,\n ),\n)" "value": "(\n \"mobile\": (\n \"until\": $tablet,\n ),\n \"tablet\": (\n \"from\": $tablet,\n ),\n \"tablet-only\": (\n \"from\": $tablet,\n \"until\": $desktop,\n ),\n \"touch\": (\n \"from\": $desktop,\n ),\n \"desktop\": (\n \"from\": $desktop,\n ),\n \"desktop-only\": (\n \"from\": $desktop,\n \"until\": $widescreen,\n ),\n \"until-widescreen\": (\n \"until\": $widescreen,\n ),\n \"widescreen\": (\n \"from\": $widescreen,\n ),\n \"widescreen-only\": (\n \"from\": $widescreen,\n \"until\": $fullhd,\n ),\n \"until-fullhd\": (\n \"until\": $fullhd,\n ),\n \"fullhd\": (\n \"from\": $fullhd,\n ),\n)"
}, },
{
"name": "duration",
"value": "294ms"
},
{ {
"name": "easing", "name": "easing",
"value": "ease-out" "value": "ease-out"

View File

@@ -73,7 +73,7 @@ $scheme-main: hsl(iv.$scheme-h, iv.$scheme-s, $scheme-main-l);
// Other // Other
"block-spacing": iv.$block-spacing, "block-spacing": iv.$block-spacing,
"duration": 294ms, "duration": iv.$duration,
"easing": iv.$easing, "easing": iv.$easing,
"radius-small": iv.$radius-small, "radius-small": iv.$radius-small,
"radius": iv.$radius, "radius": iv.$radius,

View File

@@ -134,6 +134,7 @@ $breakpoints: (
// Miscellaneous // Miscellaneous
$duration: 294ms !default;
$easing: ease-out !default; $easing: ease-out !default;
$radius-small: 0.25rem !default; $radius-small: 0.25rem !default;
$radius: 0.375rem !default; $radius: 0.375rem !default;