style: replace deprecated function darken with scss color module color.adjust

This commit is contained in:
Younes ENNAJI
2024-09-19 07:38:53 +01:00
parent e44c1d675e
commit ae0b5e8f9a
@@ -1,3 +1,5 @@
@use "sass:color";
body.fl-dark .fl-flasher, body.fl-dark .fl-flasher,
html.fl-dark .fl-flasher { html.fl-dark .fl-flasher {
--background-color: var(--dark-background-color); --background-color: var(--dark-background-color);
@@ -69,7 +71,7 @@ html.fl-dark .fl-flasher {
transition: color 0.3s ease, transform 0.3s ease; transition: color 0.3s ease, transform 0.3s ease;
&:hover { &:hover {
color: darken(#a8aaab, 10%); color: color.adjust(#a8aaab, $lightness: -10%);
transform: scale(1.1); transform: scale(1.1);
} }
} }