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 <[email protected]>
  • Loading branch information
2 people authored and Mamaduka committed Feb 16, 2022
1 parent 83440d9 commit d29c334
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions packages/block-library/src/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,11 @@
width: auto;
z-index: 100000;
}

/**
* 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 d29c334

Please sign in to comment.