a, #nav ul li.current_page_item > a, #nav ul li.current_page_parent > a, #nav ul li.current_page_ancestor > a, #nav ul li.current-cat > a, #nav ul li.current-menu-ancestor > a, #nav ul li.current-menu-item > a, #nav ul li.current-menu-parent a,input[type=text],input[type=email],#searchform input#searchsubmit,.form-submit input:hover,input[type=submit]:hover,.required', 'color', 'bg', 16 ), array( 'blockquote', 'border-color', .5 ), array( '.form-submit input:hover,input[type=submit]:hover, input[type=text]:hover,input[type=email]:hover, textarea:hover', 'background', '+1' ), ) ); /** * Foreground #1 */ add_color_rule( 'fg1', '#4e8abe', array( array( '#footer,.nocomments,.comment-author,.comment-meta,#commentform p,#header h1,h2.archive-title, h2.page-title,.entry-content a:hover,.meta', 'color', 'bg' ), array( '#searchform input#searchsubmit', 'color', 'fg1', 16 ), array( '#searchform input#searchsubmit', 'background' ), array( '#infinite-handle span', 'background-color', 'bg', 8 ), array( '.infinite-scroll .infinite-loader', 'color', 'bg' ) ) ); /** * Links */ add_color_rule( 'link', '#87B2D8', array( array( 'a,h2.entry-title span,.navigation,.navigation a', 'color', 'bg', 6 ), array( '.commentlist li.bypostauthor .comment-body', 'border-color' ), array( '#sidebar h3 a', 'color', .5 ), ) ); /** * Foreground #2 */ add_color_rule( 'fg2', '#004B8D', array( ) ); /** * Text */ add_color_rule( 'txt', '#4E8ABE', array( ) ); add_color_rule( 'extra', '#fff', array( array( '#footer,.nocomments,.comment-author,.comment-meta,#commentform p,#header h1,h2.archive-title, h2.page-title,.entry-content a:hover,.meta', 'color', 'bg', '0.6' ), ) ); /** * If you need extra, non-color CSS when Custom Colors is active, supply a callback function with raw CSS * Straight echoing or using a return var is fine. */ add_theme_support( 'custom_colors_extra_css', 'andrea_extra_css' ); function andrea_extra_css() { ?> #searchform input#searchsubmit,#footer,.nocomments,.comment-author,.comment-meta,#commentform p,#header h1,h2.archive-title, h2.page-title,.entry-content a:hover,.meta { color: rgba(255, 255, 255, 0.6); } .meta { background: none; }