|
@@ -15,7 +15,6 @@ add_color_rule( 'bg', 'white', array(
|
|
.main-navigation > div > ul > li > .sub-menu', 'background-color' ),
|
|
.main-navigation > div > ul > li > .sub-menu', 'background-color' ),
|
|
|
|
|
|
// Text-color
|
|
// Text-color
|
|
- // Needs contrast against `link` (primary)
|
|
|
|
array( '.a8c-posts-list-item__featured span,
|
|
array( '.a8c-posts-list-item__featured span,
|
|
.a8c-posts-list__view-all,
|
|
.a8c-posts-list__view-all,
|
|
.a8c-posts-list__view-all:focus,
|
|
.a8c-posts-list__view-all:focus,
|
|
@@ -61,31 +60,23 @@ add_color_rule( 'bg', 'white', array(
|
|
input.has-focus[type="submit"],
|
|
input.has-focus[type="submit"],
|
|
input:focus[type="submit"],
|
|
input:focus[type="submit"],
|
|
input:hover[type="submit"],
|
|
input:hover[type="submit"],
|
|
- input[type="submit"]', 'color', 'link' ),
|
|
|
|
|
|
+ input[type="submit"]', 'color' ),
|
|
|
|
|
|
/**
|
|
/**
|
|
* Utility Classes
|
|
* Utility Classes
|
|
*/
|
|
*/
|
|
// Text-color
|
|
// Text-color
|
|
- // Needs contrast against `link` (primary)
|
|
|
|
- array( '.has-primary-background-color[class]', 'color', 'link' ),
|
|
|
|
- // Text-color
|
|
|
|
- // Needs contrast against `fg1` (secondary)
|
|
|
|
- array( '.has-secondary-background-color[class]', 'color', 'fg1' ),
|
|
|
|
-
|
|
|
|
- // Text-color
|
|
|
|
- // Needs contrast against `txt` (foreground)
|
|
|
|
- array( '.has-foreground-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-dark-background-color[class],
|
|
- .has-foreground-light-background-color[class]', 'color', 'txt', 12 ),
|
|
|
|
- // Text-color
|
|
|
|
- // Needs contrast against `txt` (background)
|
|
|
|
- array( '.has-background-color[class],
|
|
|
|
|
|
+ .has-foreground-light-background-color[class],
|
|
|
|
+ .has-background-color[class],
|
|
.has-background-dark-color[class],
|
|
.has-background-dark-color[class],
|
|
.has-background-light-color[class],
|
|
.has-background-light-color[class],
|
|
.has-background-background-color[class],
|
|
.has-background-background-color[class],
|
|
.has-background-dark-background-color[class],
|
|
.has-background-dark-background-color[class],
|
|
- .has-background-light-background-color[class]', 'color', 'bg', 12 ),
|
|
|
|
|
|
+ .has-background-light-background-color[class]', 'color' ),
|
|
// Background-color
|
|
// Background-color
|
|
array( '.has-background-background-color[class]', 'background-color' ),
|
|
array( '.has-background-background-color[class]', 'background-color' ),
|
|
// Background-color darkened
|
|
// Background-color darkened
|
|
@@ -114,7 +105,6 @@ add_color_rule( 'link', 'black', array(
|
|
input[type="submit"]', 'background-color' ),
|
|
input[type="submit"]', 'background-color' ),
|
|
|
|
|
|
// Text-color
|
|
// Text-color
|
|
- // Needs contrast against `bg`
|
|
|
|
array( '.has-drop-cap:not(:focus):first-letter,
|
|
array( '.has-drop-cap:not(:focus):first-letter,
|
|
.main-navigation a,
|
|
.main-navigation a,
|
|
.main-navigation a:link,
|
|
.main-navigation a:link,
|
|
@@ -127,16 +117,14 @@ add_color_rule( 'link', 'black', array(
|
|
.wp-block-button.is-style-outline.wp-block-button__link,
|
|
.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:active,
|
|
.wp-block-newspack-blocks-homepage-articles article .entry-title a,
|
|
.wp-block-newspack-blocks-homepage-articles article .entry-title a,
|
|
- a', 'color', 'bg' ),
|
|
|
|
|
|
+ a', 'color' ),
|
|
|
|
|
|
// Border color left
|
|
// Border color left
|
|
- // Needs contrast against `bg`
|
|
|
|
- array( '.wp-block-quote', 'border-left-color', 'bg' ),
|
|
|
|
|
|
+ array( '.wp-block-quote', 'border-left-color' ),
|
|
|
|
|
|
// Border color right
|
|
// Border color right
|
|
- // Needs contrast against `bg`
|
|
|
|
array( '.wp-block-quote[style*="text-align: right"],
|
|
array( '.wp-block-quote[style*="text-align: right"],
|
|
- .wp-block-quote[style*="text-align:right"]', 'border-right-color', 'bg' ),
|
|
|
|
|
|
+ .wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
|
|
|
|
|
|
/**
|
|
/**
|
|
* Utility Classes
|
|
* Utility Classes
|
|
@@ -144,8 +132,7 @@ add_color_rule( 'link', 'black', array(
|
|
// Background-color
|
|
// Background-color
|
|
array( '.has-primary-background-color[class]', 'background-color' ),
|
|
array( '.has-primary-background-color[class]', 'background-color' ),
|
|
// Text-color
|
|
// Text-color
|
|
- // Needs contrast against `bg`
|
|
|
|
- array( '.has-primary-color[class]', 'color', 'bg' ),
|
|
|
|
|
|
+ array( '.has-primary-color[class]', 'color' ),
|
|
|
|
|
|
), __( 'Link Color' ) );
|
|
), __( 'Link Color' ) );
|
|
|
|
|
|
@@ -154,7 +141,6 @@ add_color_rule( 'link', 'black', array(
|
|
add_color_rule( 'txt', '#444444', array(
|
|
add_color_rule( 'txt', '#444444', array(
|
|
|
|
|
|
// Text-color
|
|
// Text-color
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
|
array( '.comment-meta .comment-metadata,
|
|
array( '.comment-meta .comment-metadata,
|
|
.main-navigation,
|
|
.main-navigation,
|
|
.screen-reader-text:focus,
|
|
.screen-reader-text:focus,
|
|
@@ -195,20 +181,18 @@ add_color_rule( 'txt', '#444444', array(
|
|
input[type="week"],
|
|
input[type="week"],
|
|
input[type="week"]:focus,
|
|
input[type="week"]:focus,
|
|
textarea,
|
|
textarea,
|
|
- textarea:focus', 'color', 'bg', 7 ),
|
|
|
|
|
|
+ textarea:focus', 'color' ),
|
|
|
|
|
|
// Background-color
|
|
// Background-color
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
|
array( '.wp-block-cover,
|
|
array( '.wp-block-cover,
|
|
.wp-block-cover-image,
|
|
.wp-block-cover-image,
|
|
- body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color', 'bg', 7 ),
|
|
|
|
|
|
+ body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
|
|
|
|
|
|
/**
|
|
/**
|
|
* Utility Classes
|
|
* Utility Classes
|
|
*/
|
|
*/
|
|
// Foreground
|
|
// Foreground
|
|
- // Needs contrast against `bg`
|
|
|
|
- array( '.has-foreground-color[class]', 'color', 'bg' ),
|
|
|
|
|
|
+ array( '.has-foreground-color[class]', 'color' ),
|
|
array( '.has-foreground-background-color[class]', 'background-color' ),
|
|
array( '.has-foreground-background-color[class]', 'background-color' ),
|
|
|
|
|
|
// Text-color darkened
|
|
// Text-color darkened
|
|
@@ -228,7 +212,6 @@ add_color_rule( 'txt', '#444444', array(
|
|
add_color_rule( 'fg1', '#FF7A5C', array(
|
|
add_color_rule( 'fg1', '#FF7A5C', array(
|
|
|
|
|
|
// Text-color
|
|
// Text-color
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
|
array( '.a8c-posts-list__item .a8c-posts-list-item__meta a:active,
|
|
array( '.a8c-posts-list__item .a8c-posts-list-item__meta a:active,
|
|
.a8c-posts-list__item .a8c-posts-list-item__meta a:hover,
|
|
.a8c-posts-list__item .a8c-posts-list-item__meta a:hover,
|
|
.comment-meta .comment-metadata a:active,
|
|
.comment-meta .comment-metadata a:active,
|
|
@@ -253,10 +236,9 @@ add_color_rule( 'fg1', '#FF7A5C', array(
|
|
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:active,
|
|
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:active,
|
|
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:hover,
|
|
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:hover,
|
|
.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
|
|
.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
|
|
- a:hover', 'color', 'bg', 7 ),
|
|
|
|
|
|
+ a:hover', 'color' ),
|
|
|
|
|
|
// Background-color
|
|
// Background-color
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
|
array( '.a8c-posts-list__view-all:focus,
|
|
array( '.a8c-posts-list__view-all:focus,
|
|
.a8c-posts-list__view-all:hover,
|
|
.a8c-posts-list__view-all:hover,
|
|
.button:focus,
|
|
.button:focus,
|
|
@@ -278,10 +260,9 @@ add_color_rule( 'fg1', '#FF7A5C', array(
|
|
button:hover,
|
|
button:hover,
|
|
input.has-focus[type="submit"],
|
|
input.has-focus[type="submit"],
|
|
input:focus[type="submit"],
|
|
input:focus[type="submit"],
|
|
- input:hover[type="submit"]', 'background-color', 'bg', 7 ),
|
|
|
|
|
|
+ input:hover[type="submit"]', 'background-color' ),
|
|
|
|
|
|
// Border-color
|
|
// Border-color
|
|
- // Needs contrast against `bg`
|
|
|
|
array( 'input[type="color"]:focus,
|
|
array( 'input[type="color"]:focus,
|
|
input[type="date"]:focus,
|
|
input[type="date"]:focus,
|
|
input[type="datetime"]:focus,
|
|
input[type="datetime"]:focus,
|
|
@@ -297,21 +278,19 @@ add_color_rule( 'fg1', '#FF7A5C', array(
|
|
input[type="time"]:focus,
|
|
input[type="time"]:focus,
|
|
input[type="url"]:focus,
|
|
input[type="url"]:focus,
|
|
input[type="week"]:focus,
|
|
input[type="week"]:focus,
|
|
- textarea:focus', 'border-color', 'bg' ),
|
|
|
|
|
|
+ textarea:focus', 'border-color' ),
|
|
|
|
|
|
// Text-decoration-color
|
|
// Text-decoration-color
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
|
array( '.entry-content a,
|
|
array( '.entry-content a,
|
|
.main-navigation > div > ul > li > a,
|
|
.main-navigation > div > ul > li > a,
|
|
.wp-block-newspack-blocks-homepage-articles article .entry-title a,
|
|
.wp-block-newspack-blocks-homepage-articles article .entry-title a,
|
|
- a', 'text-decoration-color', 'bg', 7 ),
|
|
|
|
|
|
+ a', 'text-decoration-color' ),
|
|
|
|
|
|
/**
|
|
/**
|
|
* Utility Classes
|
|
* Utility Classes
|
|
*/
|
|
*/
|
|
// Text-color
|
|
// Text-color
|
|
- // Needs contrast against `bg`
|
|
|
|
- array( '.has-secondary-color[class]', 'color', 'bg' ),
|
|
|
|
|
|
+ array( '.has-secondary-color[class]', 'color' ),
|
|
|
|
|
|
// Background-color
|
|
// Background-color
|
|
array( '.has-secondary-background-color[class]', 'background-color' ),
|
|
array( '.has-secondary-background-color[class]', 'background-color' ),
|