Skip to content

Commit

Permalink
Images: Try moving responsive rule to common.scss. (#38399)
Browse files Browse the repository at this point in the history
* Images: Try moving responsive rule to common.scss.

* Update packages/block-library/src/common.scss

Co-authored-by: Kjell Reigstad <kjell.reigstad@automattic.com>
  • Loading branch information
jasmussen and kjellr authored Feb 2, 2022
1 parent 92ad3e3 commit d6d6e09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 9 additions & 0 deletions packages/block-library/src/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,12 @@ html :where(.has-border-color) {
html :where([style*="border-width"]) {
border-style: solid;
}


/**
* Provide baseline responsiveness for images.
*/
html :where(img) {
height: auto;
max-width: 100%;
}
2 changes: 0 additions & 2 deletions packages/block-library/src/image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
margin: 0 0 1em 0;

img {
height: auto;
max-width: 100%;
vertical-align: bottom;
}

Expand Down

0 comments on commit d6d6e09

Please sign in to comment.