Selaa lähdekoodia

Coutoire: Clean up dim support in cover block.

Allan Cole 5 vuotta sitten
vanhempi
commit
45c56ac7f2
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      coutoire/inc/wpcom-editor-colors.php

+ 4 - 2
coutoire/inc/wpcom-editor-colors.php

@@ -33,6 +33,8 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
 			#editor .editor-styles-wrapper .wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-image-text,
 			#editor .editor-styles-wrapper .wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-text,
 			#editor .editor-styles-wrapper .wp-block-cover:not([class="has-background-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,
 			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
 
 	/**
@@ -134,8 +136,8 @@ add_editor_color_rule( 'txt', '#444444', array(
 			#editor .editor-styles-wrapper', 'color' ),
 
 	// Background-color
-	array( '#editor .editor-styles-wrapper .wp-block-cover,
-			#editor .editor-styles-wrapper .wp-block-cover-image,
+	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' ),