瀏覽代碼

Enqueue IBM Plex Sans 500i for italicized/bolded text. Remove paragraph specificity.

Michael Cain 5 年之前
父節點
當前提交
ebe7dbb0eb

+ 1 - 1
maywood/functions.php

@@ -133,7 +133,7 @@ function maywood_fonts_url() {
 	if ( 'off' !== $ibm_plex_sans ) {
 		$font_families = array();
 
-		$font_families[] = 'IBM Plex Sans:300,300i,500,700';
+		$font_families[] = 'IBM Plex Sans:300,300i,500,500i,700';
 
 		$query_args = array(
 			'family' => urlencode( implode( '|', $font_families ) ),

+ 4 - 14
maywood/sass/_extra-child-theme.scss

@@ -27,6 +27,10 @@ a {
 	}
 }
 
+b, strong {
+	font-weight: 500;
+}
+
 .site-branding,
 .main-navigation,
 .entry-header,
@@ -259,20 +263,6 @@ a {
 	}
 }
 
-// Paragraph
-p {
-	b > i,
-	b > em,
-	em > b,
-	em > strong,
-	i > b,
-	i > strong,
-	strong > i,
-	strong > em {
-		font-weight: 700;
-	}
-}
-
 .wp-block-newspack-blocks-homepage-articles {
 	article {
 		.entry-title a:hover {

+ 0 - 13
maywood/sass/style-child-theme-editor.scss

@@ -51,19 +51,6 @@ b, strong {
 	font-weight: 500;
 }
 
-p {
-	b > i,
-	b > em,
-	em > b,
-	em > strong,
-	i > b,
-	i > strong,
-	strong > i,
-	strong > em {
-		font-weight: 700;
-	}
-}
-
 .editor-post-title__block .editor-post-title__input {
 	font-weight: 300;
 	text-align: center;

+ 0 - 11
maywood/style-editor.css

@@ -1257,17 +1257,6 @@ b, strong {
 	font-weight: 500;
 }
 
-p b > i,
-p b > em,
-p em > b,
-p em > strong,
-p i > b,
-p i > strong,
-p strong > i,
-p strong > em {
-	font-weight: 700;
-}
-
 .editor-post-title__block .editor-post-title__input {
 	font-weight: 300;
 	text-align: center;

+ 5 - 11
maywood/style-rtl.css

@@ -3979,6 +3979,11 @@ p:not(.site-title) a:hover {
 	text-decoration: none;
 }
 
+b,
+strong {
+	font-weight: 500;
+}
+
 .site-branding,
 .main-navigation,
 .entry-header,
@@ -4247,17 +4252,6 @@ p:not(.site-title) a:hover {
 	text-decoration: underline;
 }
 
-p b > i,
-p b > em,
-p em > b,
-p em > strong,
-p i > b,
-p i > strong,
-p strong > i,
-p strong > em {
-	font-weight: 700;
-}
-
 /**
  * Widgets
  */

+ 5 - 11
maywood/style.css

@@ -4008,6 +4008,11 @@ p:not(.site-title) a:hover {
 	text-decoration: none;
 }
 
+b,
+strong {
+	font-weight: 500;
+}
+
 .site-branding,
 .main-navigation,
 .entry-header,
@@ -4276,17 +4281,6 @@ p:not(.site-title) a:hover {
 	text-decoration: underline;
 }
 
-p b > i,
-p b > em,
-p em > b,
-p em > strong,
-p i > b,
-p i > strong,
-p strong > i,
-p strong > em {
-	font-weight: 700;
-}
-
 /**
  * Widgets
  */