Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions packages/block-library/src/code/style.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// Provide a minimum of overflow handling and ensure the code markup inherits
// the font-family set on pre.
.wp-block-code code {
display: block;
font-family: inherit;
overflow-wrap: break-word;
white-space: pre-wrap;
.wp-block-code {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;

// Provide a minimum of overflow handling and ensure the code markup inherits
// the font-family set on pre.
code {
display: block;
font-family: inherit;
overflow-wrap: break-word;
white-space: pre-wrap;
}
}