feat: Resolve all deprecation warnings for sass

- Replace @import with @use and @forward
- Only color function is used in _basic.scss for now
- Change _all.scss to _index.scss
- Modules use direct dependencies
- Move @include from _config.scss to _common.scss, this was a long term mistake
- Remove $color_list
- Change basic_color()
This commit is contained in:
sthag 2025-10-26 11:33:54 +01:00
parent 867e96ea0a
commit 4e4f8814d3
26 changed files with 476 additions and 420 deletions

View file

@ -1,13 +1,15 @@
@use "sass:list";
@import "mixins";
@import "extends";
@use "../../global/config";
@use "../../global/typography";
@use "mixins";
@use "extends";
// Print module styles
// ------------------------------------------------------------------------------
%paper {
background-color: $color_front_basic;
background-color: config.$color_front_basic;
}
$a4: ".dina4" 1.2cm 1.2cm 1.2cm 2.4cm;
@ -17,7 +19,7 @@ $a6: ".dina6" 0 0 0 1.2cm;
$din: $a4, $a5, $a6;
.print_body {
font-size: $size_text_print;
font-size: config.$size_text_print;
margin: 10vh 20vw;
@page {
@ -25,7 +27,7 @@ $din: $a4, $a5, $a6;
margin: 1.2cm;
}
@page:first {
@page :first {
size: A4;
margin: 0;
}
@ -38,9 +40,11 @@ $din: $a4, $a5, $a6;
right: list.nth($space, 3);
left: list.nth($space, 5);
}
.page_head {
top: list.nth($space, 2);
}
.page_foot {
bottom: list.nth($space, 4);
}
@ -86,15 +90,18 @@ $din: $a4, $a5, $a6;
line-height: 1;
text-align: right;
}
p:first-child {
text-align: left;
}
}
.page_content {
margin-top: 10cm;
margin-bottom: 2cm;
}
margin: $space_small auto;
margin: config.$space_small auto;
}
.page_title, .page_date {