Skip to content

Commit

Permalink
Update editor CSS and avoid unnecessary image width settings in colum…
Browse files Browse the repository at this point in the history
…ns (#773)
  • Loading branch information
albig authored Nov 21, 2024
1 parent 4d686ab commit 8d5ed79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
19 changes: 9 additions & 10 deletions assets/css/editor-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
1 change: 0 additions & 1 deletion sass/wp-blocks/column.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
}

img {
width: 100%;
object-fit: cover;
border-radius: $border-radius;
}
Expand Down

0 comments on commit 8d5ed79

Please sign in to comment.