瀏覽代碼

Maywood: Cleaning up color-annotations.

Allan Cole 4 年之前
父節點
當前提交
fe2faf2567
共有 2 個文件被更改,包括 10 次插入3 次删除
  1. 5 2
      maywood/inc/wpcom-colors.php
  2. 5 1
      maywood/inc/wpcom-editor-colors.php

+ 5 - 2
maywood/inc/wpcom-colors.php

@@ -21,6 +21,10 @@ add_color_rule( 'bg', '#FFFFFF', array(
 	// Text-color darkened
 	array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
 
+	// Background-color darkened
+	array( '.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
+			table.is-style-stripes tbody tr:nth-child(odd)', 'background-color', '-1' ),
+
 	// Background-color darkened
 	array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept.has-focus,
 			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:focus,
@@ -117,7 +121,7 @@ add_color_rule( 'link', '#897248', array(
 			.wp-block-newspack-blocks-homepage-articles article .entry-title a:active,
 			.wp-block-newspack-blocks-homepage-articles article .entry-title a:focus,
 			.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
-			a:not(.has-text-color)', 'color'),
+			a', 'color'),
 
 	// Background-color
 	array( '.a8c-posts-list-item__featured span,
@@ -280,7 +284,6 @@ add_color_rule( 'txt', '#181818', array(
 			.entry-footer,
 			.entry-meta,
 			.footer-navigation .footer-menu,
-			.has-foreground-light-color[class],
 			.post-navigation .meta-nav,
 			.site-branding,
 			.site-info,

+ 5 - 1
maywood/inc/wpcom-editor-colors.php

@@ -23,6 +23,10 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
 	array( '#editor .editor-styles-wrapper .wp-block-pullquote,
 			#editor .editor-styles-wrapper .wp-block-separator', 'border-bottom-color', '-1' ),
 
+	// Background-color darkened
+	array( '#editor .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
+			#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd)', 'color', '-1' ),
+
 	/**
 	 * Utility Classes
 	 */
@@ -142,7 +146,7 @@ add_editor_color_rule( 'txt', '#181818', array(
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation a,
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation a:link,
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation a:visited', 'color' ),
-
+			
 	/**
 	 * Utility Classes
 	 */