mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use old map-get function
This commit is contained in:
parent
0ab9292558
commit
d1d3e25d20
1 changed files with 1 additions and 3 deletions
|
@ -1,5 +1,3 @@
|
||||||
@use "sass:map";
|
|
||||||
|
|
||||||
// Map font weight numbers to names
|
// Map font weight numbers to names
|
||||||
$weight-names: (100: "Thin", 200: "ExtraLight", 300: "Light", 400: "Regular", 500: "Medium", 600: "SemiBold", 700: "Bold", 800: "ExtraBold", 900: "Black");
|
$weight-names: (100: "Thin", 200: "ExtraLight", 300: "Light", 400: "Regular", 500: "Medium", 600: "SemiBold", 700: "Bold", 800: "ExtraBold", 900: "Black");
|
||||||
|
|
||||||
|
@ -10,7 +8,7 @@ $weight-names: (100: "Thin", 200: "ExtraLight", 300: "Light", 400: "Regular", 50
|
||||||
font-style: $style;
|
font-style: $style;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-weight: $weight;
|
font-weight: $weight;
|
||||||
src: local($family), local("#{$family} #{map.get($weight-names, $weight)}"), url($url) format("woff2");
|
src: local($family), local("#{$family} #{map-get($weight-names, $weight)}"), url($url) format("woff2");
|
||||||
unicode-range: $range;
|
unicode-range: $range;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue