feat: Replace deprecated sass things

- Global built-in functions
- Color functions
This commit is contained in:
sthag 2025-10-25 08:59:09 +02:00
parent 225c1dd55c
commit b739ddefda
13 changed files with 96 additions and 81 deletions

View file

@ -1,3 +1,4 @@
@use "sass:color";
@use "sass:math";
%expose_after {
@ -36,7 +37,7 @@
.exp_overlay {
@extend %full_parent;
background-color: transparentize($alpha_color, .6);
background-color: color.adjust($alpha_color, $alpha: -0.6);
}
.exp_pop {

View file

@ -1,5 +1,5 @@
// Custom extends and mixins
// ------------------------------------------------------------------------------
@use "sass:list";
@import "mixins";
@import "extends";
@ -31,18 +31,18 @@ $din: $a4, $a5, $a6;
}
@each $space in $din {
#{nth($space, 1)} {
padding-top: nth($space, 2) nth($space, 3) nth($space, 4) nth($space, 5);
#{list.nth($space, 1)} {
padding-top: list.nth($space, 2) list.nth($space, 3) list.nth($space, 4) list.nth($space, 5);
.page_head, .page_foot {
right: nth($space, 3);
left: nth($space, 5);
right: list.nth($space, 3);
left: list.nth($space, 5);
}
.page_head {
top: nth($space, 2);
top: list.nth($space, 2);
}
.page_foot {
bottom: nth($space, 4);
bottom: list.nth($space, 4);
}
}
}