Fix deprecated functions in sass files

This commit is contained in:
2025-09-26 16:33:45 +02:00
parent 06e918fe6c
commit 056a4d3474
14 changed files with 130 additions and 94 deletions

View File

@@ -1,3 +1,7 @@
@use 'tokens';
@use 'functions';
@use 'sass:map';
/* varela-round-regular - latin */
@font-face {
font-family: 'Varela Round';
@@ -57,8 +61,8 @@
}
body {
$line-height: get-size(600);
font-family: #{map-get($tokens, 'fonts', 'base')};
$line-height: functions.get-size(600);
font-family: #{map.get(tokens.$tokens, 'fonts', 'base')};
// Strip the unit off the size ratio to generate a line height
line-height: calc($line-height / 1);
@@ -66,7 +70,7 @@ body {
h1,
h2 {
font-family: #{map-get($tokens, 'fonts', 'brand')};
font-family: #{map.get(tokens.$tokens, 'fonts', 'brand')};
}
h1 {
@@ -81,7 +85,7 @@ h2 {
}
h3 {
font-size: get-size(500);
font-size: functions.get-size(500);
}
@media (max-width: 575.98px) {