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, .dark .widget_rss ul li a, .dark .alx-tabs-nav li.active a, .dark .alx-tab .tab-item-category a, .dark .alx-posts .post-item-category a, .dark .alx-tab li:hover .tab-item-title a, .dark .alx-tab li:hover .tab-item-comment a, .dark .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"], .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, .dark .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') ).'; } '."\n"; } // header top if ( get_theme_mod('color-header-top','') != '' ) { $styles .= ' #header-top { background: '.esc_attr( get_theme_mod('color-header-top') ).'; } .site-title a { color: #fff; } .site-description { color: rgba(255,255,255,0.65); } '."\n"; } // left bar if ( get_theme_mod('color-left-bar','') != '' ) { $styles .= ' .s2, .search-expand { background: '.esc_attr( get_theme_mod('color-left-bar') ).'; } .s2 .social-links li:before { background: rgba(255,255,255,0.2); } .s2 .social-links .social-tooltip { color: rgba(255,255,255,0.7); } .s2 .social-links .social-tooltip:hover, .s2 .social-links .social-tooltip:active { color: #fff; } @media only screen and (min-width: 480px) { .toggle-search { color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.2); } .toggle-search:hover, .toggle-search.active { color: #fff; } } '."\n"; } // footer menu if ( get_theme_mod('color-footer-menu','') != '' ) { $styles .= ' #footer .nav-menu:not(.mobile), #footer .nav-menu.mobile, #footer-bottom #back-to-top { background: '.esc_attr( get_theme_mod('color-footer-menu') ).'; } '."\n"; } // footer bottom if ( get_theme_mod('color-footer-bottom','') != '' ) { $styles .= ' #footer-bottom { background: '.esc_attr( get_theme_mod('color-footer-bottom') ).'; } '."\n"; } // post hover if ( get_theme_mod('color-post-hover','') != '' ) { $styles .= ' .post-featured:hover .post-inner-inner, .post-card:hover .post-inner, .related-posts li:hover .post { background: '.esc_attr( get_theme_mod('color-post-hover') ).'; } .post-hover:hover .post-thumbnail:after { border-color: '.esc_attr( get_theme_mod('color-post-hover') ).' transparent; } @media only screen and (min-width: 1281px) { .post-card:hover .post-thumbnail:after { border-color: transparent '.esc_attr( get_theme_mod('color-post-hover') ).'!important; } } .post-hover:hover .entry.excerpt { color: rgba(255,255,255,0.6); } '."\n"; } // page title if ( get_theme_mod('color-page-title','') != '' ) { $styles .= ' .page-title { background: '.esc_attr( get_theme_mod('color-page-title') ).'; border-bottom: 0; } .page-title:before { display: none; } .page-title:after { border-color: '.esc_attr( get_theme_mod('color-page-title') ).' transparent; } .page-title h1, .page-title h2, .page-title h4 { color: #fff; } .page-title span { color: rgba(255,255,255,0.65); } '."\n"; } // comment count if ( get_theme_mod('color-comment-count','') != '' ) { $styles .= ' .post-comments { background: '.esc_attr( get_theme_mod('color-comment-count') ).'; } '."\n"; } // carousel next/prev if ( get_theme_mod('color-carousel','') != '' ) { $styles .= ' #owl-featured .owl-buttons div { background: '.esc_attr( get_theme_mod('color-carousel') ).'; } '."\n"; } // body if ( get_theme_mod('color-body','') != '' ) { $styles .= ' body { background: '.esc_attr( get_theme_mod('color-body') ).'; } '."\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"; } // 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( 'readline-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'readline_dynamic_css' );