Skip to content

Commit

Permalink
Revert "Add Code and Preformatted Block CSS to theme.json."
Browse files Browse the repository at this point in the history
This reverts commit 974818c.
  • Loading branch information
bgardner committed Apr 17, 2023
1 parent 974818c commit 6ba39a3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Binary file removed .DS_Store
Binary file not shown.
16 changes: 16 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ mark {
/* Code
--------------------------------------------- */

.wp-block-code code {
overflow-wrap: normal;
overflow-x: scroll;
tab-size: 4;
white-space: pre !important;
}

*:not(.wp-block-code) > code {
background-color: var(--wp--preset--color--neutral);
font-size: var(--wp--preset--font-size--small);
Expand Down Expand Up @@ -234,6 +241,15 @@ p.has-background {
padding: 20px 30px;
}

/* Preformatted
--------------------------------------------- */

.wp-block-preformatted {
overflow-wrap: normal;
overflow-x: scroll;
white-space: pre;
}

/* Pullquote
--------------------------------------------- */

Expand Down
2 changes: 0 additions & 2 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@
"background": "var(--wp--preset--color--contrast)",
"text": "var(--wp--preset--color--base)"
},
"css": "& code {overflow-wrap: normal; overflow-x: scroll; tab-size: 4; white-space: pre;}",
"spacing": {
"padding": {
"bottom": "25px",
Expand Down Expand Up @@ -378,7 +377,6 @@
"background": "var(--wp--preset--color--contrast)",
"text": "var(--wp--preset--color--base)"
},
"css": "{overflow-wrap: normal; overflow-x: scroll; tab-size: 4; white-space: pre;}",
"spacing": {
"padding": {
"bottom": "25px",
Expand Down

0 comments on commit 6ba39a3

Please sign in to comment.