Selaa lähdekoodia

Varia: config-elements uses font-family mixin

Andrés 5 vuotta sitten
vanhempi
commit
3a00a2d7fa

+ 4 - 1
varia/sass/child-theme/_config-child-theme-deep.scss

@@ -140,7 +140,10 @@ $config-elements: (
 
 
 		// Fonts
 		// Fonts
 		"font": (
 		"font": (
-			"family": map-deep-get($config-global, "font", "family", "secondary"),
+			"family": (
+				"fallback": map-deep-get($config-global, "font", "family", "secondary"),
+				"css-var": '--font-base',
+			),
 			"line-height": map-deep-get($config-global, "font", "line-height", "md"),
 			"line-height": map-deep-get($config-global, "font", "line-height", "md"),
 			"size": map-deep-get($config-global, "font", "size", "md"),
 			"size": map-deep-get($config-global, "font", "size", "md"),
 			"weight": bold,
 			"weight": bold,

+ 4 - 1
varia/sass/elements/_config.scss

@@ -11,7 +11,10 @@ $config-elements: (
 
 
 		// Fonts
 		// Fonts
 		"font": (
 		"font": (
-			"family": map-deep-get($config-global, "font", "family", "secondary"),
+			"family": (
+				"fallback": map-deep-get($config-global, "font", "family", "secondary"),
+				"css-var": '--font-base',
+			),
 			"line-height": map-deep-get($config-global, "font", "line-height", "md"),
 			"line-height": map-deep-get($config-global, "font", "line-height", "md"),
 			"size": map-deep-get($config-global, "font", "size", "md"),
 			"size": map-deep-get($config-global, "font", "size", "md"),
 			"weight": bold,
 			"weight": bold,