|
@@ -13,7 +13,6 @@ add_color_rule( 'bg', 'white', array(
|
|
|
.main-navigation > div > ul > li > .sub-menu', 'background-color' ),
|
|
|
|
|
|
// Text-color
|
|
|
- // Needs contrast against `link` (primary)
|
|
|
array( '.a8c-posts-list-item__featured span,
|
|
|
.a8c-posts-list__view-all,
|
|
|
.a8c-posts-list__view-all:focus,
|
|
@@ -61,31 +60,23 @@ add_color_rule( 'bg', 'white', array(
|
|
|
.main-navigation > div > ul > li.focus > a,
|
|
|
.main-navigation > div > ul > li.focus li > a,
|
|
|
.main-navigation > div > ul > li:hover > a,
|
|
|
- .main-navigation > div > ul > li:hover li > a', 'color', 'link' ),
|
|
|
+ .main-navigation > div > ul > li:hover li > a', 'color' ),
|
|
|
|
|
|
/**
|
|
|
* Utility Classes
|
|
|
*/
|
|
|
// 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-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-light-color[class],
|
|
|
.has-background-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
|
|
|
array( '.has-background-background-color[class]', 'background-color' ),
|
|
|
// Background-color darkened
|
|
@@ -127,7 +118,6 @@ add_color_rule( 'link', '#CA2017', array(
|
|
|
.main-navigation > div > ul > li:hover li:hover > a', 'background-color' ),
|
|
|
|
|
|
// Text-color
|
|
|
- // Needs contrast against `bg`
|
|
|
array( '.a8c-posts-list-item__title a:active,
|
|
|
.a8c-posts-list-item__title a:focus,
|
|
|
.a8c-posts-list-item__title a:hover,
|
|
@@ -163,16 +153,14 @@ add_color_rule( 'link', '#CA2017', array(
|
|
|
a,
|
|
|
article .entry-header .entry-title a:active,
|
|
|
article .entry-header .entry-title a:focus,
|
|
|
- article .entry-header .entry-title a:hover', 'color', 'bg' ),
|
|
|
+ article .entry-header .entry-title a:hover', 'color' ),
|
|
|
|
|
|
// 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
|
|
|
- // Needs contrast against `bg`
|
|
|
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
|
|
@@ -180,8 +168,7 @@ add_color_rule( 'link', '#CA2017', array(
|
|
|
// Background-color
|
|
|
array( '.has-primary-background-color[class]', 'background-color' ),
|
|
|
// Text-color
|
|
|
- // Needs contrast against `bg`
|
|
|
- array( '.has-primary-color[class]', 'color', 'bg' ),
|
|
|
+ array( '.has-primary-color[class]', 'color' ),
|
|
|
|
|
|
), __( 'Link Color' ) );
|
|
|
|
|
@@ -190,7 +177,6 @@ add_color_rule( 'link', '#CA2017', array(
|
|
|
add_color_rule( 'txt', '#222222', array(
|
|
|
|
|
|
// Text-color
|
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
array( '.a8c-posts-list__item .a8c-posts-list-item__meta a:active,
|
|
|
.a8c-posts-list__item .a8c-posts-list-item__meta a:hover,
|
|
|
.comment-meta .comment-metadata,
|
|
@@ -256,10 +242,9 @@ add_color_rule( 'txt', '#222222', array(
|
|
|
input[type="week"],
|
|
|
input[type="week"]:focus,
|
|
|
textarea,
|
|
|
- textarea:focus', 'color', 'bg', 7 ),
|
|
|
+ textarea:focus', 'color' ),
|
|
|
|
|
|
// Background-color
|
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
array( '.a8c-posts-list__view-all:focus,
|
|
|
.a8c-posts-list__view-all:hover,
|
|
|
.button:focus,
|
|
@@ -287,10 +272,9 @@ add_color_rule( 'txt', '#222222', array(
|
|
|
input:hover[type="submit"],
|
|
|
.main-navigation > div > ul > li.current-menu-item li > a,
|
|
|
.main-navigation > div > ul > li.focus li > a,
|
|
|
- .main-navigation > div > ul > li:hover li > a', 'background-color', 'bg', 7 ),
|
|
|
+ .main-navigation > div > ul > li:hover li > a', 'background-color' ),
|
|
|
|
|
|
// Border-color
|
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
array( 'input[type="color"]:focus,
|
|
|
input[type="date"]:focus,
|
|
|
input[type="datetime"]:focus,
|
|
@@ -306,18 +290,16 @@ add_color_rule( 'txt', '#222222', array(
|
|
|
input[type="time"]:focus,
|
|
|
input[type="url"]:focus,
|
|
|
input[type="week"]:focus,
|
|
|
- textarea:focus', 'border-color', 'bg', 7 ),
|
|
|
+ textarea:focus', 'border-color' ),
|
|
|
|
|
|
// Border-top-color
|
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
- array( '.site', 'border-top-color', 'bg', 7 ),
|
|
|
+ array( '.site', 'border-top-color' ),
|
|
|
|
|
|
/**
|
|
|
* Utility Classes
|
|
|
*/
|
|
|
// 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' ),
|
|
|
|
|
|
// Text-color darkened
|
|
@@ -340,8 +322,7 @@ add_color_rule( 'fg1', '#007FDB', array(
|
|
|
* Utility Classes
|
|
|
*/
|
|
|
// Text-color
|
|
|
- // Needs contrast against `bg`
|
|
|
- array( '.has-secondary-color[class]', 'color', 'bg' ),
|
|
|
+ array( '.has-secondary-color[class]', 'color' ),
|
|
|
|
|
|
// Background-color
|
|
|
array( '.has-secondary-background-color[class]', 'background-color' ),
|