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 17, 2021
1 parent 03c01e4 commit d69cbcb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 16 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--font-family);
padding-left: var(--wp--custom--list--padding--left);
}
4 changes: 3 additions & 1 deletion blockbase/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
}
},
"list": {
"fontFamily": "var(--wp--custom--font-family--base)",
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
Expand Down Expand Up @@ -320,6 +319,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
4 changes: 3 additions & 1 deletion mayland-blocks/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@
}
},
"list": {
"fontFamily": "var(--wp--custom--font-family--base)",
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
Expand Down Expand Up @@ -340,6 +339,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-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,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/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@
}
},
"list": {
"fontFamily": "var(--wp--custom--font-family--base)",
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
Expand Down Expand Up @@ -344,6 +343,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 @@ -442,11 +444,6 @@
}
}
},
"list": {
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
},
"core/query-pagination": {
"typography": {
"fontSize": "18px",
Expand Down
4 changes: 3 additions & 1 deletion seedlet-blocks/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@
}
},
"list": {
"fontFamily": "var(--wp--custom--font-family--base)",
"padding": {
"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
}
Expand Down Expand Up @@ -370,6 +369,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 d69cbcb

Please sign in to comment.