瀏覽代碼

Rivington: Cleanup button, table, cover, utility annotations

Allan Cole 5 年之前
父節點
當前提交
f30b588e6a
共有 1 個文件被更改,包括 20 次插入5 次删除
  1. 20 5
      rivington/inc/wpcom-colors.php

+ 20 - 5
rivington/inc/wpcom-colors.php

@@ -40,6 +40,8 @@ add_color_rule( 'bg', '#060f29', array(
 			.wp-block-button__link,
 			.wp-block-button__link:focus,
 			.wp-block-button__link:hover,
+			.wp-block-button.is-style-outline.wp-block-button__link,
+			.wp-block-button.is-style-outline .wp-block-button__link,
 			.wp-block-file .wp-block-file__button,
 			.wp-block-file a.wp-block-file__button:active,
 			.wp-block-file a.wp-block-file__button:focus,
@@ -49,6 +51,12 @@ add_color_rule( 'bg', '#060f29', array(
 			.wp-block-file__button:focus,
 			.wp-block-file__button:hover,
 			.wp-block-pullquote.is-style-solid-color,
+			.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover-image-text,
+			.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover-text,
+			.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover__inner-container,
+			.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-image-text,
+			.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-text,
+			.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover__inner-container,
 			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,
@@ -101,7 +109,12 @@ add_color_rule( 'bg', '#060f29', array(
 	 */
 	// Text-color
 	// Needs contrast against `link` (primary)
-	array( '.has-background-color[class],
+	array( '.has-primary-background-color[class],
+			.has-secondary-background-color[class],
+			.has-foreground-background-color[class],
+			.has-foreground-dark-background-color[class],
+			.has-foreground-light-background-color[class],
+			.has-background-color[class],
 			.has-background-dark-color[class],
 			.has-background-light-color[class]', 'color' ),
 	// Background-color
@@ -183,10 +196,10 @@ add_color_rule( 'link', '#CAAB57', array(
 			.page-title a:focus,
 			.page-title a:hover,
 			.site-title a:hover,
-			.wp-block-button.is-style-outline .wp-block-button__link,
-			.wp-block-button.is-style-outline .wp-block-button__link:active,
-			.wp-block-button.is-style-outline.wp-block-button__link,
-			.wp-block-button.is-style-outline.wp-block-button__link:active,
+			.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
+			.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):active,
+			.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color),
+			.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color):active,
 			.wp-block-newspack-blocks-homepage-articles article .entry-title a,
 			.wp-block-newspack-blocks-homepage-articles article .entry-title a:active,
 			.wp-block-newspack-blocks-homepage-articles article .entry-title a:focus,
@@ -248,6 +261,8 @@ add_color_rule( 'txt', '#f2f2f2', array(
 
 	// Background-color
 	array( '.has-foreground-background-color[class],
+			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' ),
 
 	/**