From 627dd611781222c43983b0e8a272e473f15cf84d Mon Sep 17 00:00:00 2001 From: Brian Gardner Date: Fri, 12 Apr 2024 09:07:10 -0500 Subject: [PATCH] Streamline box shadow in theme. --- functions.php | 4 ---- style.css | 13 +++++++++++++ theme.json | 6 +----- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/functions.php b/functions.php index 934c9a0a..9d9a01ed 100644 --- a/functions.php +++ b/functions.php @@ -59,10 +59,6 @@ function frost_register_block_styles() { 'shadow-light' => __( 'Shadow', 'frost' ), 'shadow-solid' => __( 'Solid', 'frost' ), ), - 'core/image' => array( - 'shadow-light' => __( 'Shadow', 'frost' ), - 'shadow-solid' => __( 'Solid', 'frost' ), - ), 'core/list' => array( 'no-disc' => __( 'No Disc', 'frost' ), ), diff --git a/style.css b/style.css index f2c6158b..dfcb8a8f 100644 --- a/style.css +++ b/style.css @@ -147,6 +147,19 @@ textarea { padding: 2px 10px; } +/* Utility +---------------------------------------- */ + +/* -- Box Shadow -- */ + +.is-style-shadow-light { + box-shadow: var(--wp--preset--shadow--light); +} + +.is-style-shadow-solid { + box-shadow: var(--wp--preset--shadow--solid); +} + /* Media Queries ---------------------------------------- */ diff --git a/theme.json b/theme.json index 1cbc0644..cbcb3435 100644 --- a/theme.json +++ b/theme.json @@ -379,11 +379,7 @@ } } }, - "core/group": { - "css": "&.is-style-shadow-light {box-shadow: var(--wp--preset--shadow--light);} &.is-style-shadow-solid {box-shadow: var(--wp--preset--shadow--solid);}" - }, "core/image": { - "css": " &.is-style-shadow-light {box-shadow: var(--wp--preset--shadow--light);} &.is-style-shadow-solid {box-shadow: var(--wp--preset--shadow--solid);}", "spacing": { "margin": { "top": "30px", @@ -473,7 +469,7 @@ "style": "solid", "width": "1px" }, - "css": "& p {margin: 0;} &.is-style-shadow-light {box-shadow: var(--wp--preset--shadow--light);} &.is-style-shadow-solid {box-shadow: var(--wp--preset--shadow--solid);}", + "css": "& p {margin: 0;}", "elements": { "cite": { "typography": {