h3:after, .widget_rss ul li a, .widget_calendar a, .alx-tabs-nav li.active a, .alx-tab .tab-item-category a, .alx-posts .post-item-category a, .alx-tab li:hover .tab-item-title a, .alx-tab li:hover .tab-item-comment a, .alx-posts li:hover .post-item-title a, .comment-tabs li.active a, .comment-awaiting-moderation, .child-menu a:hover, .child-menu .current_page_item > a, .wp-pagenavi a { color: '.esc_attr( get_theme_mod('color-1') ).'; } .themeform input[type="button"], .themeform input[type="reset"], .themeform input[type="submit"], .themeform button[type="button"], .themeform button[type="reset"], .themeform button[type="submit"], #btn-mode, #btn-sidebar-home, #flexslider-featured .flex-control-nav li a.flex-active, .post-tags a:hover, .author-bio .bio-avatar:after, .widget_calendar caption, .commentlist li.bypostauthor > .comment-body:after, .commentlist li.comment-author-admin > .comment-body:after { background-color: '.esc_attr( get_theme_mod('color-1') ).'; } .alx-tabs-nav li.active a, .comment-tabs li.active a, .wp-pagenavi a:hover, .wp-pagenavi a:active, .wp-pagenavi span.current { border-bottom-color: '.esc_attr( get_theme_mod('color-1') ).'; } @media only screen and (min-width: 720px) { #nav-header .nav li.current_page_item > a, #nav-header .nav li.current-menu-item > a, #nav-header .nav li.current-menu-ancestor > a, #nav-header .nav li.current-post-parent > a { border-bottom-color: '.esc_attr( get_theme_mod('color-1') ).'; } } @media only screen and (max-width: 719px) { #nav-mobile .nav li > a:hover, #nav-mobile .nav li.current_page_item > a, #nav-mobile .nav li.current-menu-item > a, #nav-mobile .nav li.current-post-parent > a, #nav-header .nav li > a:hover, #nav-header .nav li.current_page_item > a, #nav-header .nav li.current-menu-item > a, #nav-header .nav li.current-post-parent > a { color: '.esc_attr( get_theme_mod('color-1') ).'; } } '."\n"; } // header logo max-height if ( get_theme_mod('logo-max-height','60') != '60' ) { $styles .= '.site-title a img { max-height: '.esc_attr( get_theme_mod('logo-max-height') ).'px; }'."\n"; } // angled style if ( get_theme_mod('angled','on') != 'on' ) { $styles .= ' #header:after, #nav-header:after, #btn-mode:after, #btn-sidebar-home:after { display: none; } #nav-header.nav-container { margin-right: 0; } '."\n"; } // left bar top background if ( get_theme_mod('color-bar-top-left','#1e2021') != '#1e2021' ) { $styles .= ' #sidebar-top { background-color: '.esc_attr( get_theme_mod('color-bar-top-left') ).'; } #sidebar-top:before { border-color: '.esc_attr( get_theme_mod('color-bar-top-left') ).' transparent; } '."\n"; } // left bar background if ( get_theme_mod('color-bar-left','#1e2021') != '#1e2021' ) { $styles .= '.s2 { background-color: '.esc_attr( get_theme_mod('color-bar-left') ).'; }'."\n"; } // background color left if ( get_theme_mod('color-background-left','#1e2021') != '#1e2021' ) { $styles .= '.s2:after { background-color: '.esc_attr( get_theme_mod('color-background-left') ).'; }'."\n"; } // background color if ( get_theme_mod('color-background','') != '' ) { $styles .= 'body { background-color: '.esc_attr( get_theme_mod('color-background') ).'; }'."\n"; } // header text color if ( get_theme_mod( 'header_textcolor' ) != '' ) { $styles .= '.site-title a, .site-description { color: #'.esc_attr( get_theme_mod( 'header_textcolor' ) ).'; }'."\n"; } wp_add_inline_style( 'stylizer-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'stylizer_dynamic_css' );