From ab6a43f91d98bd88dc9800e9be6acfc38d161ef4 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Fri, 4 Dec 2020 15:21:47 +0000 Subject: [PATCH] CSS Reset: Add more rules --- packages/block-library/src/style.scss | 11 +++++++++++ packages/edit-post/src/style.scss | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/packages/block-library/src/style.scss b/packages/block-library/src/style.scss index e9b44f287033cc..514646e3f4027a 100644 --- a/packages/block-library/src/style.scss +++ b/packages/block-library/src/style.scss @@ -108,3 +108,14 @@ .aligncenter { clear: both; } + +// This resets the WordPress default +img { + height: auto; + max-width: 100%; +} + +pre { + white-space: pre-wrap; + overflow-wrap: break-word; +} diff --git a/packages/edit-post/src/style.scss b/packages/edit-post/src/style.scss index f902e64e5848ba..75f38f0d4c402b 100644 --- a/packages/edit-post/src/style.scss +++ b/packages/edit-post/src/style.scss @@ -90,6 +90,11 @@ body.block-editor-page { iframe { width: 100%; } + + pre { + white-space: pre-wrap; + overflow-wrap: break-word; + } } @include default-block-widths();