Skip to content

Commit

Permalink
Images: Try moving responsive rule to common.scss.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Feb 1, 2022
1 parent 4453635 commit f111f0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 10 additions & 0 deletions packages/block-library/src/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,13 @@ 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 f111f0c

Please sign in to comment.