add( array( 'selectors' => array( '.color-primary-color', '.entry-title a', '.nav-secondary a', ), 'declarations' => array( 'color' => $color_primary ) ) ); bizznis_get_css()->add( array( 'selectors' => array( '.color-primary-background', '.nav-primary', '.footer-widgets', '.footer-creds', ), 'declarations' => array( 'background-color' => $color_primary ) ) ); bizznis_get_css()->add( array( 'selectors' => array( 'input', 'select', 'textarea', '.color-primary-border', '.site-main', '.menu-bizznis .sub-menu a', '.nav-secondary', '.nav-header .sub-menu', 'article.entry', '.archive-pagination', '.entry-pagination', '.entry-pings', ), 'declarations' => array( 'border-color' => $color_primary ) ) ); } // Secondary color if ( $color_secondary ) { bizznis_get_css()->add( array( 'selectors' => array( '.nav-primary', '.nav-primary a', '.footer-widgets', '.footer-widgets a', '.footer-creds', '.footer-creds a', ), 'declarations' => array( 'color' => $color_secondary ) ) ); bizznis_get_css()->add( array( 'selectors' => array( '.author-box', '.archive-description', 'li.comment', '.sidebar .widget', '.after-entry .widget', ), 'declarations' => array( 'background-color' => $color_secondary ) ) ); bizznis_get_css()->add( array( 'selectors' => array( '.footer-widgets', ), 'declarations' => array( 'border-color' => $color_secondary ), 'media' => 'screen and (min-width: 800px)' # Also define media query if needed ) ); } // Link color if ( $color_link ) { bizznis_get_css()->add( array( 'selectors' => array( '.bizznis_link_color', 'a', ), 'declarations' => array( 'color' => $color_link ) ) ); } // Text color if ( $color_text ) { bizznis_get_css()->add( array( 'selectors' => array( '.bizznis_text_color', 'body', ), 'declarations' => array( 'color' => $color_text ) ) ); } // Detail color if ( $color_detail ) { bizznis_get_css()->add( array( 'selectors' => array( '.bizznis_detail_color-text', '.entry-meta', '.breadcrumb', ), 'declarations' => array( 'color' => $color_detail ) ) ); } }