div, #posts .post-content, #header', 'border-color', 'bg', 1.31 ), array( 'ol.commentlist li.bypostauthor div.comment, ol.commentlist li.bypostauthor li.bypostauthor div.comment, ol.commentlist li.bypostauthor li.bypostauthor li.bypostauthor div.comment', 'background-color', '-.3' ), ) ); /** * Foreground #1 */ add_color_rule( 'fg1', '#dfdfdf', array( array( '.lay1 > div .read-more', 'background-color' ), array( '.widget-area .widgets .widgettitle, .widget-area .widgets .widgettitle a', 'color', 'bg' ), array( '.amp-page, .amp-next, .amp-prev, .page-numbers', 'background-color' ), ), __( 'Page Links', 'triton-lite' ) ); /** * Foreground #2 * Pull accent color from options */ $accent_color = ( isset( $options['accent_color'] ) ) ? $options['accent_color'] : '#171717'; add_color_rule( 'fg2', $accent_color, array( array( '#masthead, #access ul ul, #comments .form-submit input, #comments .form-submit input:hover, .site-footer', 'background-color' ), array( '#logo h1 a', 'color', 'bg' ), array( '.widget-area .widgets .widgettitle, .widget-area .widgets .widgettitle a', 'color', 'bg' ), array( '#posts .postitle, #posts .postitle a', 'color', 'bg' ), ), __( 'Titles & Navigation', 'triton-lite' ) ); /** * Links * * Pull link color from options */ $link_color = ( isset( $options['link_color'] ) ) ? $options['link_color'] :'#333'; add_color_rule( 'link', $link_color, array( array( 'a, .post-wrap a, .by-author a, #posts .post-content .post-foot a', 'color', 'bg' ), ), __( 'Links', 'triton-lite' ) ); /** * Text */ add_color_rule( 'txt', '#444444', array( array( '.lay1 > div .postitle a', 'color', 'bg', '+2' ), array( '.site-midrow .widgettitle, .site-midrow .widgettitle a', 'color', '#f4f4f4' ), array( '#posts .post-content .post-cat a, #posts .post-content .post-tag a', 'color', 'bg' ), array( '.nav-previous a, .nav-next a', 'color', 'bg' ), array( '.widget-area .widgets .widget_twitter a, .widget-area .widgets .widget_recent_comments a, .widget-area .widget_authors strong', 'color', 'bg', '-5' ), ), __( 'Home Page Post Titles', 'triton-lite' ) ); /** * We can pass extra color rules via 'extra' as below. * Note that we are using $cat for the 3rd rule args to calculate contrast against. */ add_color_rule( 'extra', '#757575', array( array( '.lay1 > div .post-content', 'color', 'bg' ) ) ); add_color_rule( 'extra', '#7f7f7f', array( array( '#posts, .widget-area .widgets ul li a', 'color', 'bg' ), array( 'body', 'color', 'bg' ), ) ); add_color_rule( 'extra', '#f6f6f6', array( array( '#access ul ul a:hover, #access ul ul :hover > a', 'background-color', .8 ), ) ); add_color_rule( 'extra', '#6b6b6b', array( array( '.archive-title', 'color', 'bg' ), ) ); add_color_rule( 'extra', '#ffffff', array( array( '.lay1 > div .read-more, .amp-page, .amp-next, .amp-prev, .page-numbers', 'color', 'fg1' ), array( '.lay1 > div:hover .read-more, .page-numbers:hover', 'color', '#ccc', '+3' ), array( '#access li:hover > a', 'color', 'fg2' ), array( '#access ul ul a', 'color', 'fg2' ), array( '.post tr th, .post thead th, .org-comment tbody th', 'background-color', .2 ), ) ); add_color_rule( 'extra', '#777777', array( array( '#access a', 'color', 'fg2', 6 ), array( '#access .current-menu-item > a, #access .current-menu-ancestor > a, #access .current_page_item > a, #access .current_page_ancestor > a', 'color', 'fg2', 15 ), ) ); add_color_rule( 'extra', '#999999', array( array( '#posts .post-content .post-foot a, #posts .post-content .post-foot', 'color', 'bg' ), ) ); add_color_rule( 'extra', '#cccccc', array( array( '.lay1 > div:hover .read-more, .page-numbers:hover', 'background-color', .5 ), ) ); add_color_rule( 'extra', '#fafafa', array( array( '.sticky', 'background-color', .15 ), ) ); add_color_rule( 'extra', '#f4f4f4', array( array( '.site-midrow', 'background-color', .7 ), array( '.post table, .org-comment table', 'background-color', .2 ), ) ); add_color_rule( 'extra', '#979797', array( array( '.site-footer, .site-footer .widget ul li a, .site-footer .widget a', 'color', 'fg2' ), array( '.site-midrow .widgets .widget ul li a, .site-midrow .widgets .widget a, .site-midrow', 'color', '#f4f4f4', 10 ), ) ); add_color_rule( 'extra', '#dfdfdf', array( array( '.widget-area .widgets .widgettitle, .widget-area .widgets .widgettitle a', 'border-color', 'bg' ), ) ); add_color_rule( 'extra', '#d8d8d8', array( array( 'ol.commentlist li.bypostauthor div.comment, ol.commentlist li.bypostauthor li.bypostauthor div.comment, ol.commentlist li.bypostauthor li.bypostauthor li.bypostauthor div.comment', 'border-color', .15 ), ) ); add_color_rule( 'extra', '#171717', array( array( '.desc', 'color', 'bg' ), ) ); add_color_rule( 'extra', '#1c1c1c', array( array( '.site-footer .widget ul li', 'border-color', .2 ), ) ); add_color_rule( 'extra', '#333333', array( array( '#reply-title, #comments-title', 'color', 'bg' ), ) ); /* * Extra CSS to remove background image from tables when Custom Colors are activated */ add_theme_support( 'custom_colors_extra_css', 'triton_lite_extra_css' ); function triton_lite_extra_css() { ?> .post table, .org-comment table, .post tr th, .post thead th, .org-comment tbody th { background-image: none; }