Selaa lähdekoodia

Rivington: Clean up dim support in cover block.

Allan Cole 5 vuotta sitten
vanhempi
commit
f1a09f7d46
1 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. 6 2
      rivington/inc/wpcom-editor-colors.php

+ 6 - 2
rivington/inc/wpcom-editor-colors.php

@@ -31,7 +31,9 @@ add_editor_color_rule( 'bg', '#060f29', array(
 			#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container,
 			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
 			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
-			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container', 'color' ),
+			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container
+			#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
+			#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim', 'color' ),
 
 	/**
 	 * Utility Classes
@@ -118,7 +120,9 @@ add_editor_color_rule( 'txt', '#f2f2f2', array(
 			#editor .editor-styles-wrapper', 'color' ),
 
 	// Background-color
-	array( '#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
+	array( '#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
+			#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
+			#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
 			#editor .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd)', 'background-color' ),
 
 	/**