article { max-width: '.esc_attr( get_theme_mod('article-width') ).'px; } '."\n"; } // primary color if ( get_theme_mod('color-1','#00a389') != '#00a389' ) { $styles .= ' .themeform label .required, .entry a, .s2 .social-links .social-tooltip:hover, .type-list-title a:hover, .type-list-more, .type-list-meta li a:hover, .nav-menu:not(.mobile) a, .nav-menu.mobile ul li a, .alx-tabs-nav li 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, .related-title a:hover { 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"], .themeform input[type="button"]:hover, .themeform input[type="reset"]:hover, .themeform input[type="submit"]:hover, .themeform button[type="button"]:hover, .themeform button[type="reset"]:hover, .themeform button[type="submit"]:hover, .type-list-more:hover, .toggle-search.active, .menu-toggle-icon span, .nav-menu:not(.mobile) .menu > li.current_page_item > span, .nav-menu:not(.mobile) .menu > li.current-menu-item > span, .nav-menu:not(.mobile) .menu > li.current-menu-ancestor > span, .nav-menu:not(.mobile) .menu > li.current-post-parent > span, .author-bio .bio-avatar:after, .sidebar .post-nav li a:hover, .alx-tabs-nav li.active a { background-color: '.esc_attr( get_theme_mod('color-1') ).'; } #profile { border-top-color: '.esc_attr( get_theme_mod('color-1') ).'; } .search-expand .themeform input, .search-expand .themeform input:focus { border: 1px solid '.esc_attr( get_theme_mod('color-1') ).'; } .nav-menu .svg-icon, .nav-menu.mobile button.active .svg-icon { fill:'.esc_attr( get_theme_mod('color-1') ).'; } .nav-menu.mobile button:focus, .menu-toggle:focus { box-shadow: inset 0 0px 2px '.esc_attr( get_theme_mod('color-1') ).'; } '."\n"; } // secondary color if ( get_theme_mod('color-2','#e0f4f1') != '#e0f4f1' ) { $styles .= ' .s2 .social-links .social-tooltip:hover, #profile, .type-list-more, .search-expand, .nav-menu:not(.mobile), .nav-menu.mobile, .alx-tabs-nav, .comment-tabs li.active a { background-color: '.esc_attr( get_theme_mod('color-2') ).'; } '."\n"; } // header logo max-height if ( get_theme_mod('logo-max-height','50') != '50' ) { $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( 'dashscroll-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'dashscroll_dynamic_css' );