ul li a:hover:before, .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 a:hover, .dark .widget_rss ul li a, .dark .widget_calendar 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"], .sidebar-toggle, #owl-featured .owl-buttons div, .stripe-comments li a:hover, .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, .more-link-custom { 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') ).'!important; } '."\n"; } // mobile menu color if ( get_theme_mod('color-mobile-menu','') != '' ) { $styles .= ' #nav-mobile.nav-container { background-color: '.esc_attr( get_theme_mod('color-mobile-menu') ).'; } #nav-mobile .nav-toggle { color: rgba(255,255,255,0.9); } #nav-mobile .nav-text { color: rgba(255,255,255,0.9); } @media only screen and (max-width: 719px) { #nav-mobile .nav li a { color: rgba(255,255,255,0.7); } #nav-mobile .nav li > a:hover { color: rgba(255,255,255,0.9); } #nav-mobile .nav li.current_page_item > a, #nav-mobile .nav li.current-menu-item > a, #nav-mobile .nav li.current-post-parent > a { color: rgba(255,255,255,0.9); } } '."\n"; } // topbar menu color if ( get_theme_mod('color-topbar-menu','') != '' ) { $styles .= ' #header-top { background: '.esc_attr( get_theme_mod('color-topbar-menu') ).'; } #nav-topbar .nav-toggle { color: rgba(255,255,255,0.9); } #nav-topbar .nav-text { color: rgba(255,255,255,0.9); } @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: rgba(255,255,255,0.9) } #nav-topbar .nav > li > a:hover, #nav-topbar .nav > li:hover > a { color: rgba(255,255,255,0.9); } #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: rgba(255,255,255,0.9)!important; } } @media only screen and (max-width: 719px) { #nav-topbar .nav li a { color: rgba(255,255,255,0.7); } #nav-topbar .nav li > a:hover { color: rgba(255,255,255,0.9); } #nav-topbar .nav li.current_page_item > a, #nav-topbar .nav li.current-menu-item > a, #nav-topbar .nav li.current-post-parent > a { color: rgba(255,255,255,0.9); } } '."\n"; } // header background if ( get_theme_mod('color-header','') != '' ) { $styles .= ' #header-middle { background: '.esc_attr( get_theme_mod('color-header') ).'; } .site-title a { color: #fff; } .site-description { color: rgba(255,255,255,0.7); } #header-middle .social-links li a, #header-middle .social-links li a:hover { color: #fff; } '."\n"; } // header menu color if ( get_theme_mod('color-header-menu','') != '#262626' ) { $styles .= '#header-bottom { background: '.esc_attr( get_theme_mod('color-header-menu') ).'; }'."\n"; } // page title color if ( get_theme_mod('color-page-title','') != '#262626' ) { $styles .= '.page-title { background: '.esc_attr( get_theme_mod('color-page-title') ).'; }'."\n"; } // sidebar background if ( get_theme_mod('color-sidebars','') != '#262626' ) { $styles .= '#page { background: '.esc_attr( get_theme_mod('color-sidebars') ).'; }'."\n"; } // sidebar widget title background if ( get_theme_mod('color-widget-title','') != '' ) { $styles .= '.sidebar .widget > h3 { background: '.esc_attr( get_theme_mod('color-widget-title') ).'; }'."\n"; } // footer menu color if ( get_theme_mod('color-footer-menu','#222222') != '#222222' ) { $styles .= ' #nav-footer.nav-container { 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') ).'; } } #footer-bottom #back-to-top { background-color: '.esc_attr( get_theme_mod('color-footer-menu') ).'; } '."\n"; } // footer color if ( get_theme_mod('color-comment-count','') != '' ) { $styles .= '.post-comments { background-color: '.esc_attr( get_theme_mod('color-comment-count') ).'; }'."\n"; } // footer color if ( get_theme_mod('color-footer','#282828') != '#262626' ) { $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"; } // border radius if ( get_theme_mod('border-radius') != '30' ) { $styles .= ' img, .themeform input[type="text"], .themeform input[type="password"], .themeform input[type="email"], .themeform input[type="url"], .themeform input[type="tel"], .themeform input[type="number"], .themeform input[type="submit"], .themeform select, .themeform button, .themeform textarea, .themeform input[type="submit"], .themeform button[type="submit"], .notebox, .toggle-search, .search-expand, .search-expand .themeform input, .bg-line, #owl-featured .owl-buttons .owl-prev, #owl-featured .owl-buttons .owl-next, .featured-large-inner, .featured-large-inner img, .featured-small, .featured-small img, .featured-o-thumb, .col-3cr .content, .col-2cr .content, .col-3cm .content, .stripe-comments, .stripe-comments li a, .stripe-comments li img, .stripe-popular, .post-thumbnail img, .post-standard .post-inner, .post-grid .post-inner, .post-list .post-inner, .sharrre-header, .sharrre-footer .sharrre .box, .sharrre-footer .sharrre .count, .author-bio, .author-bio .bio-avatar img, .related-posts li, .post-format, .alx-tab img, .alx-posts img, .alx-posts li, #commentform, .post-tags a, .social-count-plus > ul > li > a.icon { border-radius: '.esc_attr( get_theme_mod('border-radius') ).'px; } .col-3cr .sidebar .widget, .col-2cr .sidebar .widget, .col-3cm .sidebar.s1 .widget { border-radius: '.esc_attr( get_theme_mod('border-radius') ).'px 4px 4px '.esc_attr( get_theme_mod('border-radius') ).'px; } .sidebar .widget { border-radius: 4px '.esc_attr( get_theme_mod('border-radius') ).'px '.esc_attr( get_theme_mod('border-radius') ).'px 4px; } .content { border-radius: 0px '.esc_attr( get_theme_mod('border-radius') ).'px '.esc_attr( get_theme_mod('border-radius') ).'px 0px; } .col-2cr .s1 .sidebar-toggle, .col-2cl.s1-expand .sidebar-toggle, .col-3cl.s1-expand .sidebar-toggle, .col-3cl.s2-expand .s2 .sidebar-toggle, .col-3cr .sidebar-toggle, .col-3cm .s1 .sidebar-toggle, .col-3cm.s2-expand .s2 .sidebar-toggle { border-radius: 0px '.esc_attr( get_theme_mod('border-radius') ).'px '.esc_attr( get_theme_mod('border-radius') ).'px 0px; } .col-2cr.s1-expand .sidebar-toggle, .col-2cl .sidebar-toggle, .col-3cl .sidebar-toggle, .col-3cr.s1-expand .sidebar-toggle, .col-3cr.s2-expand .sidebar-toggle, .col-3cm.s1-expand .s1 .sidebar-toggle, .col-3cm .s2 .sidebar-toggle { border-radius: '.esc_attr( get_theme_mod('border-radius') ).'px 0px 0px '.esc_attr( get_theme_mod('border-radius') ).'px; } .more-link-custom { border-radius: '.esc_attr( get_theme_mod('border-radius') ).'px 0 0 0; } .entry .gallery .gallery-caption, .widget .gallery .gallery-caption { border-radius: 0 0 '.esc_attr( get_theme_mod('border-radius') ).'px '.esc_attr( get_theme_mod('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( 'magaziner-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'magaziner_dynamic_css' );