Skip to content

Commit

Permalink
Streamline box shadow in theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgardner committed Apr 12, 2024
1 parent b8ad6a9 commit 627dd61
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
4 changes: 0 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
),
Expand Down
13 changes: 13 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------------------------- */

Expand Down
6 changes: 1 addition & 5 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 627dd61

Please sign in to comment.