replace deprecated scss

This commit is contained in:
2025-10-30 22:01:23 +00:00
parent 010160ce46
commit b258482ca3
17 changed files with 156 additions and 123 deletions

View File

@@ -1,3 +1,5 @@
@use "../variables/colours";
@use "sass:color";
@mixin generate_button_colors($name, $hex) {
@@ -10,13 +12,13 @@
@each $button in $buttons {
#{$button}.#{$name} {
color: $white;
color: colours.$white;
background: $hex;
border-color: $hex;
&:hover,
&:focus {
color: $white;
color: colours.$white;
background: color.adjust($hex, $lightness: 10%);
border-color: color.adjust($hex, $lightness: 10%);
}