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 .= ' #wrap-nav-mobile .nav-menu.mobile { background: '.esc_attr( get_theme_mod('color-mobile-menu') ).'; } #wrap-nav-mobile .menu-toggle-icon span { background: #fff; } #wrap-nav-mobile .nav-menu .svg-icon { fill: #fff; } #wrap-nav-mobile .nav-menu.mobile { border-bottom: 1px solid rgba(255,255,255,0.12); } #wrap-nav-mobile .nav-menu.mobile button.active .svg-icon { fill: #fff; } #wrap-nav-mobile .nav-menu.mobile ul ul { background: rgba(0,0,0,0.04); } #wrap-nav-mobile .nav-menu.mobile ul li .menu-item-wrapper, #wrap-nav-mobile .nav-menu.mobile ul ul li .menu-item-wrapper { border-bottom: 1px solid rgba(255,255,255,0.12); } #wrap-nav-mobile .nav-menu.mobile ul li a { color: #fff; } #wrap-nav-mobile .nav-menu.mobile ul button, #wrap-nav-mobile .nav-menu.mobile ul ul button { border-left: 1px solid rgba(255,255,255,0.12); } #wrap-nav-mobile .nav-menu.mobile > div > ul { border-top: 1px solid rgba(255,255,255,0.12); } '."\n"; } // topbar menu color if ( get_theme_mod('color-topbar-menu','') != '' ) { $styles .= ' #wrap-nav-topbar { background: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; } #wrap-nav-topbar { border-bottom: 1px solid rgba(255,255,255,0.05); } #wrap-nav-topbar .nav-menu:not(.mobile) a { color: rgba(255,255,255,0.5); } #wrap-nav-topbar .nav-menu:not(.mobile) a:hover { color: rgba(255,255,255,0.9); } #wrap-nav-topbar .nav-menu:not(.mobile) .menu ul { background: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; } #wrap-nav-topbar .nav-menu:not(.mobile) .menu ul:after { border-bottom-color: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; } #wrap-nav-topbar .nav-menu:not(.mobile) ul ul a { color: rgba(255,255,255,0.6); } #wrap-nav-topbar .nav-menu:not(.mobile) ul ul a:hover { color: rgba(255,255,255,0.9); } #wrap-nav-topbar .nav-menu:not(.mobile) .menu ul ul:after { border-right-color: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; border-bottom-color: transparent; } #wrap-nav-topbar .nav-menu:not(.mobile) .menu ul span { border-bottom: 1px solid rgba(255,255,255,0.06); } #wrap-nav-topbar .nav-menu:not(.mobile) button .svg-icon { fill: rgba(255,255,255,0.2); } #wrap-nav-topbar .nav-menu:not(.mobile) button.active { background: rgba(255,255,255,0.1); } #wrap-nav-topbar .nav-menu:not(.mobile) ul ul button .svg-icon { fill: rgba(255,255,255,0.2); } #wrap-nav-topbar .nav-menu:not(.mobile) ul ul button.active { background: rgba(255,255,255,0.05); } #wrap-nav-topbar .menu-toggle-icon span { background: #fff; } #wrap-nav-topbar .nav-menu .svg-icon { fill: #fff; } #wrap-nav-topbar .nav-menu.mobile button.active .svg-icon { fill: #fff; } #wrap-nav-topbar .nav-menu.mobile ul ul { background: rgba(0,0,0,0.05); } #wrap-nav-topbar .nav-menu.mobile ul li .menu-item-wrapper, #wrap-nav-topbar .nav-menu.mobile ul ul li .menu-item-wrapper { border-bottom: 1px solid rgba(255,255,255,0.12); } #wrap-nav-topbar .nav-menu.mobile ul li a { color: #fff; } #wrap-nav-topbar .nav-menu.mobile ul button, #wrap-nav-topbar .nav-menu.mobile ul ul button { border-left: 1px solid rgba(255,255,255,0.12); } #wrap-nav-topbar .nav-menu.mobile > div > ul { border-top: 1px solid rgba(255,255,255,0.12); } '."\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') ).'; } #wrap-nav-header .nav-menu:not(.mobile) a { color: rgba(255,255,255,0.65); } #wrap-nav-header .nav-menu:not(.mobile) a:hover { color: rgba(255,255,255,0.9); } #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li:hover > span { border-color: rgba(255,255,255,0.1); } #wrap-nav-header .nav-menu:not(.mobile) button .svg-icon { fill: rgba(255,255,255,0.3); } #wrap-nav-header .nav-menu:not(.mobile) button.active { background: rgba(255,255,255,0.1); } #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current_page_item > span, #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current-menu-item > span, #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current-menu-ancestor > span, #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current-post-parent > span { background: rgba(255,255,255,0.1); } #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current_page_item > span > a, #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current-menu-item > span > a, #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current-menu-ancestor > span > a, #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current-post-parent > span > a { color: rgba(255,255,255,0.9); } #wrap-nav-header .menu-toggle-icon span { background: #fff; } #wrap-nav-header .nav-menu.mobile { } #wrap-nav-header .nav-menu.mobile .svg-icon { fill: #fff; } #wrap-nav-header .nav-menu.mobile button.active .svg-icon { fill: #fff; } #wrap-nav-header .nav-menu.mobile ul ul { background: rgba(0,0,0,0.05); } #wrap-nav-header .nav-menu.mobile ul li .menu-item-wrapper, #wrap-nav-header .nav-menu.mobile ul ul li .menu-item-wrapper { border-bottom: 1px solid rgba(255,255,255,0.12); } #wrap-nav-header .nav-menu.mobile ul li a { color: rgba(255,255,255,0.7); } #wrap-nav-header .nav-menu.mobile ul button, #wrap-nav-header .nav-menu.mobile ul ul button { border-left: 1px solid rgba(255,255,255,0.12); } #wrap-nav-header .nav-menu.mobile > div > ul { border-top: 1px solid rgba(255,255,255,0.12); } @media only screen and (max-width: 719px) { .toggle-search .svg-icon { fill: #fff; } .toggle-search:hover .svg-icon, .toggle-search.active .svg-icon { fill: #333; } } '."\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') ).'; } #footer-bottom #back-to-top { background-color: '.esc_attr( get_theme_mod('color-footer-menu') ).'; } #wrap-nav-footer, #wrap-nav-footer .nav-menu.mobile { background-color: '.esc_attr( get_theme_mod('color-footer-menu') ).'; } #wrap-nav-footer .nav-menu:not(.mobile) .menu ul { background: '.esc_attr( get_theme_mod('color-footer-menu') ).'; } #wrap-nav-footer .nav-menu:not(.mobile) .menu ul:after { border-top-color: '.esc_attr( get_theme_mod('color-footer-menu') ).'; border-bottom-color: transparent; } #wrap-nav-footer .nav-menu:not(.mobile) .menu ul ul:after { border-right-color: '.esc_attr( get_theme_mod('color-footer-menu') ).'; border-top-color: transparent; } '."\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' );