Skip to content

Commit

Permalink
Move Separator block styles to theme.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgardner committed May 10, 2023
1 parent d5c550b commit bac066f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
21 changes: 0 additions & 21 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,27 +153,6 @@ mark {
padding: 2px 10px;
}

/* Separator
--------------------------------------------- */

.wp-block-separator.is-style-dots:before {
font-family: inherit;
font-size: var(--wp--preset--font-size--large);
letter-spacing: 10px;
padding-left: 10px;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
width: 100px;
}

.wp-block-separator:not(.is-style-dots),
.wp-block-separator.has-background:not(.is-style-dots) {
border-bottom: 1px solid currentColor;
border-top: none;
height: 1px;
}

/* Table
--------------------------------------------- */

Expand Down
9 changes: 9 additions & 0 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,15 @@
}
}
},
"core/separator": {
"border": {
"color": "currentColor",
"radius": "0",
"style": "solid",
"width": "1px 0 0"
},
"css": ":not(.is-style-wide):not(.is-style-dots) {width: 100px;}"
},
"core/site-title": {
"elements": {
"link": {
Expand Down

0 comments on commit bac066f

Please sign in to comment.