:not(.alignfull), body.single .entry-header, body.single .entry-footer { max-width: '.esc_attr( get_theme_mod('content-width-single') ).'px; } '."\n"; } // page content max-width if ( get_theme_mod('content-width-page','680') != '680' ) { $styles .= ' body.page .entry > :not(.alignfull), body.page .entry-header, body.page .entry-footer { max-width: '.esc_attr( get_theme_mod('content-width-page') ).'px; } '."\n"; } // primary color if ( get_theme_mod('color-1','#00a0ff') != '#00a0ff' ) { $styles .= ' .entry a, .subheader ul.subheader-list li a, .card-header-title, .mini-card-title a:hover, .mini-card-category a, .entry-list .entry-title a:hover, .entry-meta li a, .sidebar .post-nav li a span, .widget a:hover, .alx-tab .tab-item-category a, .alx-posts .post-item-category a { color: '.esc_attr( get_theme_mod('color-1') ).'; } '."\n"; } // gradient left if ( get_theme_mod('gradient-left','#00d4ff') != '#00d4ff' ) { $styles .= ' .card-articles:after, .author-bio:after { background: linear-gradient(0deg, '.esc_attr( get_theme_mod('gradient-right') ).' 0%, '.esc_attr( get_theme_mod('gradient-left') ).' 100%); } #header, .post-comments, .header-comments li a:hover { background: linear-gradient(90deg, '.esc_attr( get_theme_mod('gradient-left') ).' 0%, '.esc_attr( get_theme_mod('gradient-right') ).' 100%); } .card-header:before, .alx-tabs-nav li.active a, .author-bio .bio-avatar:after, .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, .commentlist li.bypostauthor > .comment-body::after, .commentlist li.comment-author-admin > .comment-body::after { background: linear-gradient(130deg, '.esc_attr( get_theme_mod('gradient-left') ).' 0%, '.esc_attr( get_theme_mod('gradient-right') ).' 100%); } .post-comments > span:before { border-color: transparent '.esc_attr( get_theme_mod('gradient-left') ).' transparent transparent; } '."\n"; } // gradient right if ( get_theme_mod('gradient-right','#0072ff') != '#0072ff' ) { $styles .= ' .card-articles:after, .author-bio:after { background: linear-gradient(0deg, '.esc_attr( get_theme_mod('gradient-right') ).' 0%, '.esc_attr( get_theme_mod('gradient-left') ).' 100%); } #header, .post-comments, .header-comments li a:hover { background: linear-gradient(90deg, '.esc_attr( get_theme_mod('gradient-left') ).' 0%, '.esc_attr( get_theme_mod('gradient-right') ).' 100%); } .card-header:before, .alx-tabs-nav li.active a, .author-bio .bio-avatar:after, .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, .commentlist li.bypostauthor > .comment-body::after, .commentlist li.comment-author-admin > .comment-body::after { background: linear-gradient(130deg, '.esc_attr( get_theme_mod('gradient-left') ).' 0%, '.esc_attr( get_theme_mod('gradient-right') ).' 100%); } .post-comments > span:before { border-color: transparent '.esc_attr( get_theme_mod('gradient-left') ).' transparent transparent; } '."\n"; } // header logo max-height if ( get_theme_mod('logo-max-height','40') != '40' ) { $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( 'airl-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'airl_dynamic_css' );