浏览代码

Varia: revert changes to legacy code - dont have any effect

Andrés 5 年之前
父节点
当前提交
e03639deae

+ 1 - 2
varia/sass/base/legacy/_copy.scss

@@ -15,8 +15,7 @@ blockquote {
 	cite {
 		font-size: $font__size-xs;
 		font-style: normal;
-		@include font-family-old( $font__heading ); // For browsers without support for CSS variables.
-		font-family: var( --font-headings, $font_heading );
+		@include font-family( $font__heading );
 	}
 }
 

+ 2 - 4
varia/sass/base/legacy/_headings.scss

@@ -24,8 +24,7 @@ h3,
 h4,
 h5,
 h6 {
-	@include font-family-old( $font__heading ); // For browsers without support for CSS variables.
-	font-family: var( --font-headings, $font_heading );
+	@include font-family( $font__heading );
 }
 
 .main-navigation,
@@ -53,8 +52,7 @@ h6 {
 }
 
 .page-title {
-	@include font-family-old( $font__body ); // For browsers without support for CSS variables.
-	font-family: var( --font-base, $font_body );
+	@include font-family( $font__body );
 }
 
 .site-branding,

+ 2 - 3
varia/sass/base/legacy/_mixins-master.scss

@@ -107,8 +107,7 @@
 	}
 
 	ul > li > a::before {
-		font-family: $font__body; // For browsers without support for CSS variables.
-		font-family: var( --font-base, $font__body );
+		font-family: $font__body;
 		font-weight: normal;
 		content: "\2013\00a0" counters(submenu, "\2013\00a0", none);
 		counter-increment: submenu
@@ -116,6 +115,6 @@
 }
 
 /* Ensure all font family declarations come with non-latin fallbacks */
-@mixin font-family-old( $font_family: $font__body ) {
+@mixin font-family( $font_family: $font__body ) {
 	font-family: $font_family;
 }

+ 2 - 4
varia/sass/base/legacy/_typography.scss

@@ -7,8 +7,7 @@ body {
 	-webkit-font-smoothing: antialiased;
 	-moz-osx-font-smoothing: grayscale;
 	color: $color__text-main;
-	@include font-family-old( $font__body ); // For browsers without support for CSS variables.
-	font-family: var( --font-base, $font_body );
+	@include font-family( $font__body );
 	font-weight: 400;
 	font-size: 1em;
 	line-height: $font__line-height-body;
@@ -22,8 +21,7 @@ select,
 optgroup,
 textarea {
 	color: $color__text-main;
-	@include font-family-old( $font__body ); // For browsers without support for CSS variables.
-	font-family: var( --font-base, $font_body );
+	@include font-family( $font__body );
 	font-weight: 400;
 	line-height: $font__line-height-body;
 	text-rendering: optimizeLegibility;