*:not(.alignfull) { max-width: '.esc_attr( get_theme_mod('single-content-width') ).'px; } '."\n"; } // page box max-width if ( get_theme_mod('page-box-width','960') != '960' ) { $styles .= ' .page .post-wrapper { max-width: '.esc_attr( get_theme_mod('page-box-width') ).'px; } '."\n"; } // page content max-width if ( get_theme_mod('page-content-width','680') != '680' ) { $styles .= ' .page .entry-header, .page .entry-footer, .page .entry > *:not(.alignfull) { max-width: '.esc_attr( get_theme_mod('page-content-width') ).'px; } '."\n"; } // gradient left if ( get_theme_mod('gradient-left','#d42121') != '#d42121' ) { $styles .= ' .wrap-content, .post-comments, .alx-tabs-nav li.active a { background: linear-gradient(90deg, '.esc_attr( get_theme_mod('gradient-left') ).' 0%, '.esc_attr( get_theme_mod('gradient-right') ).' 100%); } .entry-list .entry-title a:hover, .entry-meta li a, .entry-header .entry-meta .entry-category a { background-image: linear-gradient(to left,'.esc_attr( get_theme_mod('gradient-right') ).','.esc_attr( get_theme_mod('gradient-left') ).'); } .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','#5e59be') != '#5e59be' ) { $styles .= ' .wrap-content, .post-comments, .alx-tabs-nav li.active a { background: linear-gradient(90deg, '.esc_attr( get_theme_mod('gradient-left') ).' 0%, '.esc_attr( get_theme_mod('gradient-right') ).' 100%); } .entry-list .entry-title a:hover, .entry-meta li a, .entry-header .entry-meta .entry-category a { background-image: linear-gradient(to left,'.esc_attr( get_theme_mod('gradient-right') ).','.esc_attr( get_theme_mod('gradient-left') ).'); } '."\n"; } // link color if ( get_theme_mod('color-link','#000000') != '#000000' ) { $styles .= ' .entry a { color: '.esc_attr( get_theme_mod('color-link') ).'; } '."\n"; } // background color if ( get_theme_mod('color-background','#ececec') != '#ececec' ) { $styles .= ' body { background: '.esc_attr( get_theme_mod('color-background') ).'; } '."\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"; } // header text color if ( get_theme_mod( 'header_textcolor' ) != '' ) { $styles .= '.site-title a, .site-description { color: #'.esc_attr( get_theme_mod( 'header_textcolor' ) ).'; }'."\n"; } if ( get_theme_mod('dark','off') == 'on' ) { wp_add_inline_style( 'instorm-dark', $styles ); } else { wp_add_inline_style( 'instorm-style', $styles ); } } } } add_action( 'wp_enqueue_scripts', 'instorm_dynamic_css' );