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 May 27, 2021
1 parent 5c1e93b commit 8d5b0b9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 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.

4 changes: 3 additions & 1 deletion blockbase/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@
}
},
"list": {
"fontFamily": "var(--wp--custom--font-family--base)",
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
Expand Down Expand Up @@ -310,6 +309,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
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--font-family);
padding-left: var(--wp--custom--list--padding--left);
}
4 changes: 3 additions & 1 deletion mayland-blocks/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@
}
},
"list": {
"fontFamily": "var(--wp--custom--font-family--base)",
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
Expand Down Expand Up @@ -339,6 +338,9 @@
"lineHeight": "var(--wp--custom--line-height--headings)"
}
},
"core/list": {
"fontFamily": "var(--wp--custom--font-family--base)"
},
"core/navigation": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
Expand Down
5 changes: 0 additions & 5 deletions quadrat/child-experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,6 @@
"lineHeight": "var(--wp--custom--line-height--headings--h1)"
}
},
"list": {
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
},
"core/quote": {
"border": {
"width": "0px"
Expand Down
9 changes: 3 additions & 6 deletions quadrat/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@
}
},
"list": {
"fontFamily": "var(--wp--custom--font-family--base)",
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
Expand Down Expand Up @@ -345,6 +344,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 @@ -443,11 +445,6 @@
}
}
},
"list": {
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
},
"core/query-pagination": {
"typography": {
"fontSize": "18px",
Expand Down
6 changes: 4 additions & 2 deletions seedlet-blocks/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@
}
},
"list": {
"fontFamily": "var(--wp--custom--font-family--base)",
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
Expand Down Expand Up @@ -369,6 +368,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 Expand Up @@ -434,7 +436,7 @@
},
"core/site-title": {
"typography": {
"fontSize": "60px",
"fontSize": "var(--wp--preset--font-size--normal)",
"fontWeight": 700
},
"color": {
Expand Down

0 comments on commit 8d5b0b9

Please sign in to comment.