1
0
Fork 0
forked from gitea/nas

Fix SASS deprecation notices (#34278)

This commit is contained in:
Echo 2025-03-27 14:09:42 +01:00 committed by GitHub
parent aa575341c2
commit 8a3bed1933
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 232 additions and 155 deletions

View file

@ -0,0 +1,21 @@
@use 'sass:color';
$darken-multiplier: -1 !default;
$lighten-multiplier: 1 !default;
// Invert darkened and lightened colors
@function darken($color, $amount) {
@return color.adjust(
$color,
$lightness: $amount * $darken-multiplier,
$space: hsl
);
}
@function lighten($color, $amount) {
@return color.adjust(
$color,
$lightness: $amount * $lighten-multiplier,
$space: hsl
);
}