Independent Publisher 2: Fix contrast issue with visited button styles. Fixes #486.

This commit is contained in:
Laurel Fulford 2019-02-08 10:12:25 -08:00
parent 9ad17a39c7
commit 8f18ecbb56

View file

@ -86,6 +86,13 @@ add_color_rule( 'fg1', '#0087be', array(
.button, .button,
#content #infinite-handle span button, #content #infinite-handle span button,
.more-link', 'background-color' ), .more-link', 'background-color' ),
array( 'button:not(.menu-toggle):hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
#content #infinite-handle span button:hover,
.more-link:hover', 'background-color', '-1' ),
), ),
__( 'Buttons' ) ); __( 'Buttons' ) );
@ -110,12 +117,20 @@ add_color_rule( 'extra', '#ffffff', array(
.main-navigation > div > ul > li.current_page_item > ul > li a', 'color', 'link' ), .main-navigation > div > ul > li.current_page_item > ul > li a', 'color', 'link' ),
array( 'button:not(.menu-toggle), array( 'button:not(.menu-toggle),
button:not(.menu-toggle):hover,
input[type="button"], input[type="button"],
input[type="button"]:hover,
input[type="reset"], input[type="reset"],
input[type="reset"]:hover,
input[type="submit"], input[type="submit"],
input[type="submit"]:hover,
.button, .button,
.button:hover,
#content #infinite-handle span button, #content #infinite-handle span button,
.more-link', 'color', 'fg1' ), #content #infinite-handle span button:hover,
.more-link,
.more-link:hover,
.more-link:visited', 'color', 'fg1' ),
) ); ) );
add_color_rule( 'extra', '#dddddd', array( add_color_rule( 'extra', '#dddddd', array(