Maywood: add darkened link color annotations.

This commit is contained in:
Allan Cole 2020-08-20 17:31:19 -04:00
parent 3e4b85426d
commit 76a48bbbc0
2 changed files with 96 additions and 0 deletions

View file

@ -141,6 +141,72 @@ add_color_rule( 'link', '#897248', array(
array( '.wp-block-quote[style*="text-align: right"],
.wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
// Text-color darkened
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 a:active,
.comment-meta .comment-metadata a:hover,
.entry-footer a:active,
.entry-footer a:hover,
.entry-meta a:active,
.entry-meta a:hover,
.footer-navigation .footer-menu a:hover,
.site-info a:hover,
.wp-block-button.is-style-outline .wp-block-button__link.has-focus,
.wp-block-button.is-style-outline .wp-block-button__link:focus,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline.wp-block-button__link.has-focus,
.wp-block-button.is-style-outline.wp-block-button__link:focus,
.wp-block-button.is-style-outline.wp-block-button__link:hover,
.wp-block-newspack-blocks-homepage-articles article .cat-links a:active,
.wp-block-newspack-blocks-homepage-articles article .cat-links a:hover,
.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-title a:hover,
.wp-block-newspack-blocks-homepage-articles article .more-link:hover,
a:hover', 'color', '-1' ),
// Background-color darkened
array( '.a8c-posts-list__view-all:focus,
.a8c-posts-list__view-all:hover,
.button:focus,
.button:hover,
.has-focus.a8c-posts-list__view-all,
.has-focus.button,
.has-focus.wp-block-button__link,
.has-focus.wp-block-file__button,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-file__button:focus,
.wp-block-file__button:hover,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept,
button.has-focus,
button:focus,
button:hover,
input.has-focus[type="submit"],
input:focus[type="submit"],
input:hover[type="submit"]', 'background-color', '-1' ),
// Background-color darkened
array( 'input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="range"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
textarea:focus', 'border-color', '-1' ),
/**
* Utility Classes
*/

View file

@ -85,6 +85,36 @@ add_editor_color_rule( 'link', '#897248', array(
array( '#editor .editor-styles-wrapper .wp-block-quote[style*="text-align: right"],
#editor .editor-styles-wrapper .wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
// Text-color darkened
array( '#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link.has-focus,
#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:focus,
#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:hover,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .cat-links a:active,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .cat-links a:hover,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-meta a:active,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-meta a:hover,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:hover,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .more-link:active,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .more-link:hover,
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline.has-focus,
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:focus,
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:hover,
#editor .editor-styles-wrapper a:hover', 'color', '-1' ),
// Background-color darkened
array( '#editor .editor-styles-wrapper .button.has-focus,
#editor .editor-styles-wrapper .button:focus,
#editor .editor-styles-wrapper .button:hover,
#editor .editor-styles-wrapper .fse-template-part .main-navigation .button:focus,
#editor .editor-styles-wrapper .fse-template-part .main-navigation .button:hover,
#editor .editor-styles-wrapper .fse-template-part .main-navigation .has-focus.button,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:focus,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:hover,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .has-focus.button,
#editor .editor-styles-wrapper .wp-block-button__link.has-focus,
#editor .editor-styles-wrapper .wp-block-button__link:focus,
#editor .editor-styles-wrapper .wp-block-button__link:hover', 'background-color', '-1' ),
/**
* Utility Classes
*/