Last active
April 19, 2020 07:46
-
-
Save victorwyee/fd7fc0754d38570df54ec308f587ed2b to your computer and use it in GitHub Desktop.
Prevent iframe embed from automatic inline resizing. #wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* https://github.com/WordPress/gutenberg/issues/8383 */ | |
| figure.is-embed { | |
| position: relative; | |
| width: 100%; | |
| height: 0; | |
| padding-bottom: 56.25%; /*16:9*/ | |
| } | |
| figure.is-embed iframe { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment