Fix minimalist mode ignoring card shadow: none

This commit is contained in:
Tetrakern 2024-04-01 16:53:51 +02:00
parent 8f92ce185c
commit f71016bd1f

View File

@ -778,6 +778,10 @@ function fictioneer_build_customize_css( $context = null ) {
--card-drop-shadow: " . str_replace( 'box-', 'drop-', $card_box_shadow ) . ";
}";
if ( $card_box_shadow === 'none' ) {
$css .= ".card{box-shadow:none!important;}";
}
// Only light mode
$css .= ":root[data-mode=light] {
--hue-offset: " . $hue_offset_light . "deg;