Skip to content

Commit

Permalink
Blockbase: Move block styles to theme.json
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Jun 28, 2021
1 parent c562229 commit 71fb9f5
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 27 deletions.
1 change: 0 additions & 1 deletion blockbase/assets/ponyfill.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion blockbase/sass/blocks/_list.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ul,
ol {
font-family: var(--wp--custom--list--typography--font-family);
padding-left: var(--wp--custom--list--spacing--padding--left);
}
6 changes: 3 additions & 3 deletions blockbase/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@
}
},
"list": {
"typography": {
"fontFamily": "var(--wp--custom--body--typography--font-family)"
},
"spacing": {
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
Expand Down Expand Up @@ -333,6 +330,9 @@
"lineHeight": "var(--wp--custom--heading--typography--line-height)"
}
},
"core/list": {
"fontFamily": "var(--wp--custom--font-family--base)"
},
"core/navigation": {
"typography": {
"fontSize": "var(--wp--preset--font-size--normal)"
Expand Down
6 changes: 3 additions & 3 deletions mayland-blocks/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@
}
},
"list": {
"typography": {
"fontFamily": "var(--wp--custom--body--typography--font-family)"
},
"spacing": {
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
Expand Down Expand Up @@ -364,6 +361,9 @@
"lineHeight": "var(--wp--custom--heading--typography--line-height)"
}
},
"core/list": {
"fontFamily": "var(--wp--custom--font-family--base)"
},
"core/navigation": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
Expand Down
5 changes: 2 additions & 3 deletions quadrat/assets/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions quadrat/child-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,6 @@
"lineHeight": 1.2
}
},
"list": {
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
},
"core/quote": {
"border": {
"width": "0px"
Expand Down
11 changes: 3 additions & 8 deletions quadrat/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@
}
},
"list": {
"typography": {
"fontFamily": "var(--wp--custom--body--typography--font-family)"
},
"spacing": {
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
Expand Down Expand Up @@ -349,6 +346,9 @@
"lineHeight": "var(--wp--custom--heading--typography--line-height)"
}
},
"core/list": {
"fontFamily": "var(--wp--custom--font-family--base)"
},
"core/navigation": {
"typography": {
"fontSize": "18px"
Expand Down Expand Up @@ -448,11 +448,6 @@
}
}
},
"list": {
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
},
"core/query-pagination": {
"typography": {
"fontSize": "18px",
Expand Down
2 changes: 2 additions & 0 deletions seedlet-blocks/assets/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions seedlet-blocks/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@
}
},
"list": {
"typography": {
"fontFamily": "var(--wp--custom--body--typography--font-family)"
},
"spacing": {
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
Expand Down Expand Up @@ -393,6 +390,9 @@
"lineHeight": "var(--wp--custom--heading--typography--line-height)"
}
},
"core/list": {
"fontFamily": "var(--wp--custom--font-family--base)"
},
"core/navigation": {
"typography": {
"fontSize": "var(--wp--preset--font-size--normal)"
Expand Down

0 comments on commit 71fb9f5

Please sign in to comment.