'::selection',
'property' => 'background',
'value' => $theme_color
),
array(
'elements' => '::selection',
'property' => 'color',
'value' => $theme_white
),
array(
'elements' => '::-moz-selection',
'property' => 'background',
'value' => $theme_color
),
array(
'elements' => '::-moz-selection',
'property' => 'color',
'value' => $theme_white
),
/* Link */
array(
'elements' => 'h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, a, .header-top a:hover, .site-branding h1.site-title a, #colophon .widget_calendar table a:hover, .woocommerce-message::before,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product .stock,
.woocommerce ul.products li.product .price,
#add_payment_method .cart-collaterals .cart_totals .discount td,
.woocommerce-cart .cart-collaterals .cart_totals .discount td,
.woocommerce-checkout .cart-collaterals .cart_totals .discount td',
'property' => 'color',
'value' => $theme_color
),
/* Background color style */
array(
'elements' => 'a#scroll-top, .read-more, .read-more.black:hover, .pager li > a:hover, .pager li > a:focus, #home-slider .slide-content .btn, table thead, a#scroll-top, .post-meta-info .entry-meta .comments_count, body input[type="submit"]:hover, body input[type="submit"]:focus, .mean-container .mean-bar, .mean-container .mean-bar .mean-nav ul li a.meanmenu-reveal, .mean-container .mean-bar .mean-nav ul li a.mean-expand:hover, #footer-info, .woocommerce span.onsale, .woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt',
'property' => 'background-color',
'value' => $theme_color
),
/* Background dark/hover color style */
array(
'elements' => 'a#scroll-top:hover, .read-more:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover',
'property' => 'background-color',
'value' => $theme_color_dark
),
/* Background style */
array(
'elements' => 'nav.main-menu ul > li:hover > a, nav.main-menu ul > .current-menu-item > a, nav.main-menu ul .current_page_item > a, nav.main-menu ul > li:hover > a, nav.main-menu ul > .current-menu-item > a, .mean-container a.meanmenu-reveal, .comment a.btn, .error-404, .mean-container .mean-bar .meanmenu-reveal, #home-slider .owl-dots .owl-dot.active span, #home-slider .owl-dots .owl-dot:hover span ',
'property' => 'background',
'value' => $theme_color
),
/* Border Color style */
array(
'elements' => '.wp-caption, .header-top, nav.main-menu ul > li ul, .pager li > a:hover, .pager li > a:focus, #colophon, .entry-content blockquote, .post-meta-info .entry-meta, .comment a.btn, body input[type="text"]:focus, body input[type="email"]:focus, body input[type="url"]:focus, body input[type="tel"]:focus, body input[type="number"]:focus, body input[type="date"]:focus, body input[type="range"]:focus, body input[type="password"]:focus, body input[type="text"]:focus, body textarea:focus, body .form-control:focus, select:focus, table thead th ',
'property' => 'border-color',
'value' => $theme_color
),
/* Border Top Color style */
array(
'elements' => '.woocommerce-message ',
'property' => 'border-top-color',
'value' => $theme_color
),
/* Light color style */
array(
'elements' => '.nav > li > a:hover, .nav > li > a:focus, .post-meta-info .entry-meta, .comment-form .alert-info',
'property' => 'background-color',
'value' => $theme_color_light
),
array(
'elements' => '.entry-content blockquote',
'property' => 'background',
'value' => $theme_color_light
),
array(
'elements' => '.error-404 a',
'property' => 'color',
'value' => $theme_color_light
),
array(
'elements' => '.comment-form .alert-info, table thead th',
'property' => 'border-color',
'value' => $theme_color_light
),
array(
'elements' => '.comment-form .alert-info',
'property' => 'border-color',
'value' => $theme_color_light
),
array(
'elements' => '.comment-form .alert-info',
'property' => 'color',
'value' => $theme_color_dark
),
);
$prop_count = count($dynamic_css);
if($prop_count > 0){
echo "';
}
}
}
add_action('wp_head', 'generate_dynamic_css');
if( !function_exists( 'ascent_theme_option_custom_style' ) ) :
function ascent_theme_option_custom_style() {
?>