From 77e72105bc1d3bd5cd1c24d8481121aecd79f44b Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Thu, 21 Nov 2024 12:37:32 +0100 Subject: [PATCH] Update editor CSS and avoid unnecessary image width settings in columns --- assets/css/editor-style.css | 19 +++++++++---------- sass/wp-blocks/column.scss | 1 - 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/assets/css/editor-style.css b/assets/css/editor-style.css index d0e1d06..85c150c 100644 --- a/assets/css/editor-style.css +++ b/assets/css/editor-style.css @@ -290,18 +290,10 @@ } } -.wp-block-column img { - width: 100%; +.wp-block-columns .wp-block-column img { object-fit: cover; border-radius: 3px; -} - -.wp-block-image img { - box-sizing: border-box; - height: auto; - max-width: 100%; - vertical-align: bottom; -} + } p a { color: #008939; @@ -557,3 +549,10 @@ p a { .bg-white { background-color: #fff; } + +.entry-content { + margin: 0; + word-wrap: break-word; + hyphens: auto; + hyphenate-limit-chars: auto 3 4; + } diff --git a/sass/wp-blocks/column.scss b/sass/wp-blocks/column.scss index 40106dd..c78bfcd 100644 --- a/sass/wp-blocks/column.scss +++ b/sass/wp-blocks/column.scss @@ -24,7 +24,6 @@ } img { - width: 100%; object-fit: cover; border-radius: $border-radius; }