Skip to content
Snippets Groups Projects
Unverified Commit 29656cb9 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix sass deprecation warning (#31961)

parent 8b708340
No related branches found
No related tags found
No related merge requests found
@use 'sass:color';
// Dependent colors
$black: #000000;
$white: #ffffff;
......@@ -47,11 +49,19 @@ $account-background-color: $white !default;
// Invert darkened and lightened colors
@function darken($color, $amount) {
@return hsl(hue($color), saturation($color), lightness($color) + $amount);
@return hsl(
hue($color),
color.channel($color, 'saturation', $space: hsl),
color.channel($color, 'lightness', $space: hsl) + $amount
);
}
@function lighten($color, $amount) {
@return hsl(hue($color), saturation($color), lightness($color) - $amount);
@return hsl(
hue($color),
color.channel($color, 'saturation', $space: hsl),
color.channel($color, 'lightness', $space: hsl) - $amount
);
}
$emojis-requiring-inversion: 'chains';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment