ul li a:hover:before, .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') ).'; } #wrap-nav-header .nav-menu:not(.mobile) a:hover { color: '.esc_attr( get_theme_mod('color-1') ).'; } #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current_page_item > span > a:before, #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current-menu-item > span > a:before, #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current-menu-ancestor > span > a:before, #wrap-nav-header .nav-menu:not(.mobile) > div > ul > li.current-post-parent > span > a:before { border-bottom: 8px solid '.esc_attr( get_theme_mod('color-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 { border-bottom-color: '.esc_attr( get_theme_mod('color-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: '.esc_attr( get_theme_mod('color-1') ).'; } #wrap-nav-header .nav-menu:not(.mobile) ul ul li.current_page_item > span > a, #wrap-nav-header .nav-menu:not(.mobile) ul ul li.current-menu-item > span > a, #wrap-nav-header .nav-menu:not(.mobile) ul ul li.current-menu-ancestor > span > a, #wrap-nav-header .nav-menu:not(.mobile) ul ul li.current-post-parent > span > a { color: '.esc_attr( get_theme_mod('color-1') ).'; } #wrap-nav-footer .nav-menu:not(.mobile) a:hover { color: '.esc_attr( get_theme_mod('color-1') ).'; } #wrap-nav-footer .nav-menu:not(.mobile) li.current_page_item > span > a, #wrap-nav-footer .nav-menu:not(.mobile) li.current-menu-item > span > a, #wrap-nav-footer .nav-menu:not(.mobile) li.current-menu-ancestor > span > a, #wrap-nav-footer .nav-menu:not(.mobile) li.current-post-parent > span > a { color: '.esc_attr( get_theme_mod('color-1') ).'; } #wrap-nav-footer .nav-menu:not(.mobile) ul ul li.current_page_item > span > a, #wrap-nav-footer .nav-menu:not(.mobile) ul ul li.current-menu-item > span > a, #wrap-nav-footer .nav-menu:not(.mobile) ul ul li.current-menu-ancestor > span > a, #wrap-nav-footer .nav-menu:not(.mobile) ul ul li.current-post-parent > span > 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"], .featured-category-title, .post-comments, .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') ).'; } .flex-item .avatar:hover { border-color: '.esc_attr( get_theme_mod('color-1') ).'; } #header-content, .featured-category-title span:before, .alx-tabs-nav li.active a { border-top-color: '.esc_attr( get_theme_mod('color-1') ).'; } .featured-category-title span:before, .widget > h3 > span, .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') ).'; } .featured-category-title span:after, .post-comments > span:before { border-right-color: '.esc_attr( get_theme_mod('color-1') ).'; } .featured-category-title span:before { border-left-color: '.esc_attr( get_theme_mod('color-1') ).'; } '."\n"; } // mobile menu color if ( get_theme_mod('color-mobile-menu','#222222') != '#222222' ) { $styles .= ' #wrap-nav-mobile .nav-menu.mobile { background: '.esc_attr( get_theme_mod('color-mobile-menu') ).'; } #wrap-nav-mobile .nav-menu.mobile ul ul { background: rgba(0,0,0,0.05); } #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 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','#222222') != '#222222' ) { $styles .= ' #wrap-nav-topbar { background: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; } #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) .menu ul ul:after { border-right-color: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; border-bottom-color: transparent; } #wrap-nav-topbar .nav-menu.mobile { background: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; } #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 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 border color if ( get_theme_mod('color-border-line','#00b2d7') != '#00b2d7' ) { $styles .= '#header-content { border-top-color: '.esc_attr( get_theme_mod('color-border-line') ).'; }'."\n"; } // header border color height if ( get_theme_mod('color-border-line-height','6') != '6' ) { $styles .= '#header-content { border-top-width: '.esc_attr( get_theme_mod('color-border-line-height') ).'px; }'."\n"; } // header color if ( get_theme_mod('color-header','#ffffff') != '#ffffff' ) { $styles .= ' #header-content { background: '.esc_attr( get_theme_mod('color-header') ).'; border-bottom: 1px solid rgba(0,0,0,0.2) } .site-title a { color: #fff; } .site-description { color: rgba(255,255,255,0.7); } .toggle-search { color: #fff; border-color: rgba(255,255,255,0.2); } @media only screen and (min-width: 720px) { .toggle-search .svg-icon { fill: #fff; } .toggle-search:hover .svg-icon, .toggle-search.active .svg-icon { fill: #fff; } } .search-expand { background: '.esc_attr( get_theme_mod('color-header') ).'; border-color: rgba(255,255,255,0.2); } #header .social-links .social-tooltip { color: #fff; } @media only screen and (max-width: 719px) { #header .social-links { border-top-color: rgba(255,255,255,0.2)!important; } .toggle-search { background: #fff; color: #555; border-right-color: #eee; } .toggle-search:hover, .toggle-search.active { color: #555; } .search-expand { background: transparent; } } '."\n"; } // footer menu color if ( get_theme_mod('color-footer-menu','#eeeeee') != '#eeeeee' ) { $styles .= ' #footer-bottom #back-to-top, #footer-bottom #back-to-top:hover { background-color: '.esc_attr( get_theme_mod('color-footer-menu') ).'; color: #fff; } #wrap-nav-footer { background-color: '.esc_attr( get_theme_mod('color-footer-menu') ).'; } #wrap-nav-footer .nav-menu:not(.mobile) a { color: rgba(255,255,255,0.8); } #wrap-nav-footer .nav-menu:not(.mobile) a:hover { color: #fff; } #wrap-nav-footer .nav-menu:not(.mobile) ul ul a { color: rgba(0,0,0,0.65); } #wrap-nav-footer .nav-menu:not(.mobile) ul ul a:hover { color: rgba(0,0,0,0.9); } #wrap-nav-footer .nav-menu:not(.mobile) li.current_page_item > span > a, #wrap-nav-footer .nav-menu:not(.mobile) li.current-menu-item > span > a, #wrap-nav-footer .nav-menu:not(.mobile) li.current-menu-ancestor > span > a, #wrap-nav-footer .nav-menu:not(.mobile) li.current-post-parent > span > a { color: #fff; } #wrap-nav-footer .nav-menu:not(.mobile) ul ul li.current_page_item > span > a, #wrap-nav-footer .nav-menu:not(.mobile) ul ul li.current-menu-item > span > a, #wrap-nav-footer .nav-menu:not(.mobile) ul ul li.current-menu-ancestor > span > a, #wrap-nav-footer .nav-menu:not(.mobile) ul ul li.current-post-parent > span > a { color: #333; } #wrap-nav-footer .nav-menu:not(.mobile) button .svg-icon { fill: rgba(255,255,255,0.2); } #wrap-nav-footer .nav-menu:not(.mobile) button.active { background: rgba(255,255,255,0.1); } #wrap-nav-footer .nav-menu:not(.mobile) ul ul button .svg-icon { fill: rgba(0,0,0,0.2); } #wrap-nav-footer .nav-menu:not(.mobile) ul ul button.active { background: rgba(0,0,0,0.05); } #wrap-nav-footer .menu-toggle-icon span { background: #fff; } #wrap-nav-footer .nav-menu.mobile { background: '.esc_attr( get_theme_mod('color-footer-menu') ).'; border-top: none; } #wrap-nav-footer .nav-menu.mobile .svg-icon { fill: #fff; } #wrap-nav-footer .nav-menu.mobile button.active .svg-icon { fill: #fff; } #wrap-nav-footer .nav-menu.mobile ul ul { background: rgba(0,0,0,0.05); } #wrap-nav-footer .nav-menu.mobile ul li .menu-item-wrapper, #wrap-nav-footer .nav-menu.mobile ul ul li .menu-item-wrapper { border-bottom: 1px solid rgba(255,255,255,0.07); } #wrap-nav-footer .nav-menu.mobile ul li a { color: rgba(255,255,255,0.7); } #wrap-nav-footer .nav-menu.mobile ul button, #wrap-nav-footer .nav-menu.mobile ul ul button { border-left: 1px solid rgba(255,255,255,0.07); } #wrap-nav-footer .nav-menu.mobile > div > ul { border-top: 1px solid rgba(255,255,255,0.07); } '."\n"; } // footer color if ( get_theme_mod('color-footer','#eeeeee') != '#eeeeee' ) { $styles .= ' #footer-bottom { background-color: '.esc_attr( get_theme_mod('color-footer') ).'; border-top: none; } #footer-bottom #copyright, #footer-bottom #credit { color: rgba(255,255,255,0.75); } #footer-bottom a { color: #fff; } #footer .social-links .social-tooltip { color: #fff; } '."\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"; } // site description top margin if ( get_theme_mod('site-description-margin','28') != '28' ) { $styles .= '.site-description { margin-top: '.esc_attr( get_theme_mod('site-description-margin') ).'px; }'."\n"; } // footer logo max-height if ( get_theme_mod('logo-max-height-footer','50') != '50' ) { $styles .= '#footer-bottom #footer-logo { max-height: '.esc_attr( get_theme_mod('logo-max-height-footer') ).'px; }'."\n"; } // featured section height if ( get_theme_mod('featured-height','560') != '560' ) { $styles .= '.featured-posts { height: '.esc_attr( get_theme_mod('featured-height') ).'px; }'."\n"; } // image border radius if ( get_theme_mod('image-border-radius','0') != '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( 'agnar-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'agnar_dynamic_css' );