a:hover, .nav-menu ul ul li:hover > a, .nav-menu ul ul li.focus a, .nav-menu ul ul li.current_page_item > a, .nav-menu ul ul li.current-menu-item > a, .nav-menu ul ul li.current-menu-ancestor > a, .nav-menu ul ul li.current_page_ancestor > a, .nav-menu ul ul li.current-post-parent > a, .entry-title a:hover, .entry-title a:focus', 'color', '#fff' ), // Needs contrast against #f7f7f7 array( '.site-main .post-navigation a:hover, .site-main .post-navigation a:focus', 'color', '#f7f7f7' ), array( '.widget_flickr #flickr_badge_uber_wrapper td a:last-child:hover', 'color', '#f7f7f7' ), ), __( 'Main Accent' ) ); // Light blue, used for header background and footer links add_color_rule( 'fg2', '#bed4df', array( // No contrast array( '.site-header ', 'background-color' ), // Needs contrast against #323e4e array( '.site-footer a', 'color', 'txt' ), array( '.footer-widget-area .widget_flickr #flickr_badge_uber_wrapper td a:last-child', 'color', 'txt' ), ), __( 'Accent' ) ); add_color_rule( 'extra', '#ffffff', array( // Contrast against navy background (txt) array( '.site-footer, .footer-widget-area .widget-title, .site-footer a:hover', 'color', 'txt' ), array( '.nav-menu > ul > li > a', 'color', 'txt' ), // Contrast against light blue background (fg2) array( '.site-title a, .site-title a:hover', 'color', 'fg2' ), ) ); add_color_rule( 'extra', '#f7f7f7', array( // Doesn't need contrast array( '.site-main .post-navigation a:hover, .site-main .post-navigation a:focus', 'background' ), ) ); add_color_rule( 'extra', '#828a8c', array( // Doesn't need contrast array( 'blockquote p', 'color' ), ) ); add_color_rule( 'extra', '#384750', array( // Doesn't need contrast array( 'blockquote cite', 'color' ), ) ); add_color_rule( 'extra', '#789', array( // Needs contrast against #bed4df array( '.site-description', 'color', 'fg2' ), ) ); // Extra CSS function plane_extra_css() { ?> .site-main .post-navigation a:hover { background-color: transparent !important; } @media only screen and (min-width: 767px) { .nav-menu ul ul a { color: #333; } } @media only screen and (max-width: 767px) { .nav-menu ul ul li:hover > a, .nav-menu ul ul li.current_page_item > a, .nav-menu ul ul li.current-menu-item > a, .nav-menu ul ul li.current-menu-ancestor > a, .nav-menu ul ul li.current_page_ancestor > a, .nav-menu ul ul li.current-post-parent > a { opacity: 1; } }