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, .post-hover:hover .post-title a, .post-title a:hover, .post-nav li a:hover span, .post-nav li a:hover i, .widget > 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="submit"], .themeform button[type="submit"], .s2, #profile-curve, .toggle-search, #footer:before, .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-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"; } // background color if ( get_theme_mod('color-background','#eeeeee') != '#eeeeee' ) { $styles .= 'body { background-color: '.esc_attr( get_theme_mod('color-background') ).'; }'."\n"; } // image border radius if ( get_theme_mod('image-border-radius') != '10' ) { $styles .= ' img, .alx-tab img, .alx-posts img, #profile-image img, .post-list .post-thumbnail img, .post-format, .post-thumbnail img { -webkit-border-radius: '.esc_attr( get_theme_mod('image-border-radius') ).'px; border-radius: '.esc_attr( get_theme_mod('image-border-radius') ).'px; } '."\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"; } // comment count color if ( get_theme_mod('color-comment-count','') != '' ) { $styles .= '.post-comments { background-color: '.esc_attr( get_theme_mod('color-comment-count') ).'; }'."\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( 'boxstyle-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'boxstyle_dynamic_css' );