From d1d3e25d20fb90dd79f75e9611b1d2d934cf5a24 Mon Sep 17 00:00:00 2001 From: jarnedemeulemeester Date: Wed, 6 Jan 2021 11:37:20 +0100 Subject: [PATCH] Use old map-get function --- src/styles/noto-sans/index.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/styles/noto-sans/index.scss b/src/styles/noto-sans/index.scss index dfce426690..3611eaf02f 100644 --- a/src/styles/noto-sans/index.scss +++ b/src/styles/noto-sans/index.scss @@ -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; } }