Forráskód Böngészése

Varia: Clean up table color-annotations

Allan Cole 5 éve
szülő
commit
137f1b1fa7
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      varia/inc/wpcom-editor-colors.php

+ 6 - 0
varia/inc/wpcom-editor-colors.php

@@ -31,6 +31,8 @@ add_editor_color_rule( 'bg', '#ffffff', array(
 			#editor .editor-styles-wrapper .wp-block-button__link.has-focus,
 			#editor .editor-styles-wrapper .wp-block-button__link:focus,
 			#editor .editor-styles-wrapper .wp-block-button__link:hover,
+			#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),
 			#editor .editor-styles-wrapper .wp-block-cover,
 			#editor .editor-styles-wrapper .wp-block-cover-image,
 			#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .block-editor-block-list__block,
@@ -191,6 +193,10 @@ add_editor_color_rule( 'txt', '#444444', array(
 	array( '#editor .editor-styles-wrapper .wp-block-pullquote,
 			#editor .editor-styles-wrapper .wp-block-separator', 'border-bottom-color', 0.8 ),
 
+	// Background-color
+	array( '#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' ),
+
 	/**
 	 * Utility Classes
 	 */