Skip to content

Commit

Permalink
Styles: Give embedded content a max-width to avoid breaking out of co…
Browse files Browse the repository at this point in the history
…ntent width.

Fixes WordPress/wordpress.org#259.
  • Loading branch information
ryelle committed Apr 16, 2024
1 parent 76abfe2 commit e99ac8c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ figure[class*="wp-block-"],
}
}

// Iframes & embeds should have a default max-width.
embed,
iframe,
object {
max-width: 100%;
}

// Forms
input.wp-block-search__input,
Expand Down

0 comments on commit e99ac8c

Please sign in to comment.