浏览代码

Varia: Cleaning up table color-annotations

Allan Cole 5 年之前
父节点
当前提交
cb4fd7fc89
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      varia/inc/wpcom-colors.php

+ 5 - 1
varia/inc/wpcom-colors.php

@@ -47,6 +47,8 @@ add_color_rule( 'bg', '#ffffff', array(
 			.wp-block-gallery .blocks-gallery-image figcaption,
 			.wp-block-gallery .blocks-gallery-item figcaption,
 			.wp-block-pullquote.is-style-solid-color,
+			table.is-style-stripes tbody tr:nth-child(odd),
+			.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
 			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
 			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
 			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
@@ -322,7 +324,9 @@ add_color_rule( 'txt', '#444444', array(
 			hr.wp-block-separator', 'border-bottom-color', 0.8 ),
 
 	// Background-color
-	array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
+	array( 'table.is-style-stripes tbody tr:nth-child(odd),
+			.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
+			body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
 
 	// Background-color
 	array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept.has-focus,