Bläddra i källkod

Varia: Clean up nested text-color specificity.

Allan Cole 5 år sedan
förälder
incheckning
f4b98bb5d5

+ 7 - 1
varia/sass/blocks/utilities/_editor.scss

@@ -59,7 +59,13 @@
 .has-background {
 	&:not(.has-background-background-color) a:not(.wp-block-button__link),
 	a:not(.wp-block-button__link),
-	p, h1, h2, h3, h4, h5, h6 {
+	p:not(.has-text-color),
+	h1:not(.has-text-color),
+	h2:not(.has-text-color),
+	h3:not(.has-text-color),
+	h4:not(.has-text-color),
+	h5:not(.has-text-color),
+	h6:not(.has-text-color) {
 		color: currentColor;
 	}
 }

+ 7 - 1
varia/sass/blocks/utilities/_style.scss

@@ -145,7 +145,13 @@
 .has-background {
 	&:not(.has-background-background-color) a:not(.wp-block-button__link),
 	a:not(.wp-block-button__link),
-	p, h1, h2, h3, h4, h5, h6 {
+	p:not(.has-text-color),
+	h1:not(.has-text-color),
+	h2:not(.has-text-color),
+	h3:not(.has-text-color),
+	h4:not(.has-text-color),
+	h5:not(.has-text-color),
+	h6:not(.has-text-color) {
 		color: currentColor;
 	}
 }

+ 7 - 1
varia/style-editor.css

@@ -1089,7 +1089,13 @@ table.is-style-stripes tbody tr:nth-child(odd),
 
 .has-background:not(.has-background-background-color) a:not(.wp-block-button__link),
 .has-background a:not(.wp-block-button__link),
-.has-background p, .has-background h1, .has-background h2, .has-background h3, .has-background h4, .has-background h5, .has-background h6 {
+.has-background p:not(.has-text-color),
+.has-background h1:not(.has-text-color),
+.has-background h2:not(.has-text-color),
+.has-background h3:not(.has-text-color),
+.has-background h4:not(.has-text-color),
+.has-background h5:not(.has-text-color),
+.has-background h6:not(.has-text-color) {
 	color: currentColor;
 }
 

+ 7 - 1
varia/style-rtl.css

@@ -2486,7 +2486,13 @@ table.is-style-stripes tbody tr:nth-child(odd),
 
 .has-background:not(.has-background-background-color) a:not(.wp-block-button__link),
 .has-background a:not(.wp-block-button__link),
-.has-background p, .has-background h1, .has-background h2, .has-background h3, .has-background h4, .has-background h5, .has-background h6 {
+.has-background p:not(.has-text-color),
+.has-background h1:not(.has-text-color),
+.has-background h2:not(.has-text-color),
+.has-background h3:not(.has-text-color),
+.has-background h4:not(.has-text-color),
+.has-background h5:not(.has-text-color),
+.has-background h6:not(.has-text-color) {
 	color: currentColor;
 }
 

+ 7 - 1
varia/style.css

@@ -2491,7 +2491,13 @@ table.is-style-stripes tbody tr:nth-child(odd),
 
 .has-background:not(.has-background-background-color) a:not(.wp-block-button__link),
 .has-background a:not(.wp-block-button__link),
-.has-background p, .has-background h1, .has-background h2, .has-background h3, .has-background h4, .has-background h5, .has-background h6 {
+.has-background p:not(.has-text-color),
+.has-background h1:not(.has-text-color),
+.has-background h2:not(.has-text-color),
+.has-background h3:not(.has-text-color),
+.has-background h4:not(.has-text-color),
+.has-background h5:not(.has-text-color),
+.has-background h6:not(.has-text-color) {
 	color: currentColor;
 }