1
0
Fork 0
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:
jarnedemeulemeester 2021-01-06 11:37:20 +01:00
parent 0ab9292558
commit d1d3e25d20
No known key found for this signature in database
GPG key ID: B61B7B150DB6A6D2

View file

@ -1,5 +1,3 @@
@use "sass:map";
// 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");
@ -10,7 +8,7 @@ $weight-names: (100: "Thin", 200: "ExtraLight", 300: "Light", 400: "Regular", 50
font-style: $style;
font-display: swap;
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;
}
}