:not(.alignfull) { max-width: '.esc_attr( get_theme_mod('content-width') ).'px; } '."\n"; } // border radius design if ( get_theme_mod('border-radius-design','0') != '0' ) { $styles .= ' .slick-featured, .blog-card, .blog-card-right, .blog-card-right-inner, .blog-card-bottom, .blog-card-bottom-list li.blog-card-more a, .blog-card-date, .featured-card-more, .alx-tabs-nav, .alx-posts img, .author-bio, .sharrre-footer .sharrre .box, .sharrre-footer .sharrre .count, .themeform input[type="submit"], .themeform input:not([type="submit"]):not([type="checkbox"]), .themeform textarea { border-radius: '.esc_attr( get_theme_mod('border-radius-design') ).'px; } .blog-card:after, .blog-card-single-content, .blog-card-single-content:after { border-radius: 0 0 '.esc_attr( get_theme_mod('border-radius-design') ).'px '.esc_attr( get_theme_mod('border-radius-design') ).'px; } @media only screen and (max-width: 719px) { .blog-card-single-content { border-radius: '.esc_attr( get_theme_mod('border-radius-design') ).'px; } } '."\n"; } // gradient left if ( get_theme_mod('gradient-left','#be1e1e') != '#be1e1e' ) { $styles .= ' #theme-toggle-btn:before, .author-bio .bio-avatar:after, .commentlist li.bypostauthor > .comment-body:after, .commentlist li.comment-author-admin > .comment-body:after, .themeform input[type="submit"], .blog-card-bottom-list li.blog-card-more a, .featured-card-more { background-image: linear-gradient(90deg, '.esc_attr( get_theme_mod('gradient-left') ).' 0%, '.esc_attr( get_theme_mod('gradient-right') ).' 100%)!important; } '."\n"; } // gradient right if ( get_theme_mod('gradient-right','#ff0000') != '#ff0000' ) { $styles .= ' #theme-toggle-btn:before, .author-bio .bio-avatar:after, .commentlist li.bypostauthor > .comment-body:after, .commentlist li.comment-author-admin > .comment-body:after, .themeform input[type="submit"], .blog-card-bottom-list li.blog-card-more a, .featured-card-more { background-image: linear-gradient(90deg, '.esc_attr( get_theme_mod('gradient-left') ).' 0%, '.esc_attr( get_theme_mod('gradient-right') ).' 100%)!important; } '."\n"; } // theme color if ( get_theme_mod('theme-color','#1e1e1e') != '#1e1e1e' ) { $styles .= ' body:where(.dark) { background: '.esc_attr( get_theme_mod('theme-color') ).'!important; } body:where(.dark) .blog-card:before { opacity: 0.08!important; } body:where(.dark) .slick-featured, body:where(.dark) .blog-card, body:where(.dark) .blog-card-single-content { background-color: rgba(255,255,255,0.12)!important; } body:where(.dark) .blog-card-right-inner { background-color: rgba(0,0,0,0.12)!important; } body:where(.dark) .blog-card-bottom, body:where(.dark) #theme-toggle { background-color: rgba(255,255,255,0.04)!important; box-shadow: inset 0 0 2px rgba(255,255,255,0.3)!important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); } body:where(.dark) .blog-card:after, body:where(.dark) .blog-card-single-content:after { background-color: rgba(255,255,255,0.25)!important; } '."\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( 'blogcards-dark', $styles ); } else { wp_add_inline_style( 'blogcards-style', $styles ); } } } } add_action( 'wp_enqueue_scripts', 'blogcards_dynamic_css' );