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"], .sidebar-toggle, .post-tags a:hover, .widget_calendar caption, .dark .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') ).'; } .widget > h3 > span, .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') ).'!important; } '."\n"; } // mobile menu color if ( get_theme_mod('color-mobile-menu','') != '' ) { $styles .= ' #nav-mobile.nav-container { background: '.esc_attr( get_theme_mod('color-mobile-menu') ).'; border-bottom: 1px solid rgba(255,255,255,0.2); position: relative; z-index: 104; } #nav-mobile .nav-toggle { background: transparent; color: #fff; -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,0.1); box-shadow: inset 1px 0 0 rgba(255,255,255,0.1); } #nav-mobile .nav-text { color: rgba(255,255,255,0.8); } @media only screen and (max-width: 719px) { #nav-mobile .nav li a { color: rgba(255,255,255,0.8); border-top: 1px solid rgba(255,255,255,0.1); } #nav-mobile .nav li > a:hover { background: rgba(0,0,0,0.04); color: #fff; } #nav-mobile .nav li.current_page_item > a, #nav-mobile .nav li.current-menu-item > a, #nav-mobile .nav li.current-post-parent > a { background: rgba(0,0,0,0.04); color: #fff; } } '."\n"; } // topbar menu color if ( get_theme_mod('color-topbar-menu','') != '' ) { $styles .= ' #nav-topbar.nav-container { background: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; border-bottom: 1px solid rgba(255,255,255,0.2); position: relative; z-index: 104; } #nav-topbar .nav-toggle { background: transparent; color: #fff; -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,0.1); box-shadow: inset 1px 0 0 rgba(255,255,255,0.1); } #nav-topbar .nav-text { color: rgba(255,255,255,0.8); } @media only screen and (min-width: 720px) { #nav-topbar .nav li a { color: rgba(255,255,255,0.7); } #nav-topbar .nav li a:hover { color: #fff; } #nav-topbar .nav > li { border-left: 1px solid rgba(255,255,255,0.1); } #nav-topbar .nav > li > a:hover, #nav-topbar .nav > li:hover > a { background: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; color: #fff; } #nav-topbar .nav > li.current_page_item > a, #nav-topbar .nav > li.current-menu-item > a, #nav-topbar .nav > li.current-menu-ancestor > a, #nav-topbar .nav > li.current-post-parent > a { background: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; color: #fff!important; } #nav-topbar .nav li.current_page_item > a, #nav-topbar .nav li.current-menu-item > a, #nav-topbar .nav li.current-menu-ancestor > a, #nav-topbar .nav li.current-post-parent > a { color: #fff; } #nav-topbar .nav ul { top: 48px; background: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; } #nav-topbar .nav ul li { -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.1); box-shadow: 0 1px 0 rgba(255,255,255,0.1); } } @media only screen and (max-width: 719px) { #nav-topbar .nav li a { color: rgba(255,255,255,0.8); border-top: 1px solid rgba(255,255,255,0.1); } #nav-topbar .nav li > a:hover { background: rgba(0,0,0,0.04); color: #fff; } #nav-topbar .nav li.current_page_item > a, #nav-topbar .nav li.current-menu-item > a, #nav-topbar .nav li.current-post-parent > a { background: rgba(0,0,0,0.04); color: #fff; } } '."\n"; } // header color if ( get_theme_mod('color-header','') != '' ) { $styles .= ' #header-top { background: '.esc_attr( get_theme_mod('color-header') ).'; border-bottom: 1px solid rgba(255,255,255,0.2) } .site-title a, .site-title a:hover { color: #fff; } .site-description { color: rgba(255,255,255,0.8); } #header-top .social-links .social-tooltip { color: rgba(255,255,255,0.7); } #header-top .social-links .social-tooltip:hover { color: #fff; } .toggle-search { color: #fff; border-left-color: rgba(255,255,255,0.2); border-right-color: rgba(255,255,255,0.2); } '."\n"; } // header menu color if ( get_theme_mod('color-header-menu','') != '' ) { $styles .= ' #header-bottom, #header-bottom.fixed { background: '.esc_attr( get_theme_mod('color-header-menu') ).'; } #nav-header .nav-toggle { color: #fff; -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,0.1); box-shadow: inset 1px 0 0 rgba(255,255,255,0.1); } #nav-header .nav-text { color: #999; } @media only screen and (min-width: 720px) { #nav-header .nav li a { color: rgba(255,255,255,0.8); } #nav-header .nav li a:hover { color: #444; } #nav-header .nav > li > a:hover, #nav-header .nav > li:hover > a { background: transparent; color: #fff; border-color: rgba(255,255,255,0.2); } #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 { background: rgba(255,255,255,0.2); color: #fff!important; } #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 { color: #444; } #nav-header .nav li li a { color: #777; } } @media only screen and (max-width: 719px) { #nav-header .nav li a { color: rgba(255,255,255,0.8); border-top: 1px solid rgba(255,255,255,0.1); } #nav-header .nav li > a:hover { background: rgba(0,0,0,0.04); color: #fff; } #nav-header .nav li.current_page_item > a, #nav-header .nav li.current-menu-item > a, #nav-header .nav li.current-post-parent > a { background: rgba(0,0,0,0.04); color: #fff; } } '."\n"; } // subheader color if ( get_theme_mod('color-subheader','') != '' ) { $styles .= ' #subheader, .owl-carousel, .page-title strong { background: '.esc_attr( get_theme_mod('color-subheader') ).'; } #subheader, .owl-carousel, .featured-large, .featured-large:nth-child(1), .featured-small { border-color: '.esc_attr( get_theme_mod('color-subheader') ).'; } .page-title span { color: rgba(255,255,255,0.8); } .page-title { border-color: rgba(255,255,255,0.3); } @media only screen and (max-width: 719px) { .featured-item { border-color: '.esc_attr( get_theme_mod('color-subheader') ).'; } } '."\n"; } // footer menu color if ( get_theme_mod('color-footer-menu','#222222') != '#222222' ) { $styles .= ' #footer-bottom #back-to-top { color: rgba(255,255,255,0.7); } #footer-bottom #back-to-top:hover { color: #fff; } #footer-bottom { border-color: '.esc_attr( get_theme_mod('color-footer-menu') ).'; } #nav-footer.nav-container, #footer-bottom #back-to-top { background-color: '.esc_attr( get_theme_mod('color-footer-menu') ).'; } @media only screen and (min-width: 720px) { #nav-footer .nav ul { background-color: '.esc_attr( get_theme_mod('color-footer-menu') ).'; } } '."\n"; } // footer color if ( get_theme_mod('color-footer','#282828') != '#282828' ) { $styles .= '#footer-bottom { background-color: '.esc_attr( get_theme_mod('color-footer') ).'; }'."\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"; } // featured section height if ( get_theme_mod('featured-height','540') != '540' ) { $styles .= '.featured-posts-inner { height: '.esc_attr( get_theme_mod('featured-height') ).'px; }'."\n"; } // image border radius if ( get_theme_mod('image-border-radius') != '0' ) { $styles .= '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 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( 'featureon-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'featureon_dynamic_css' );