-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repair and refine embed block styles #21599
Conversation
Size Change: -86 B (0%) Total Size: 824 kB
ℹ️ View Unchanged
|
f8c0d75
to
be5f8ba
Compare
621c8c4
to
e82f93e
Compare
e82f93e
to
46b03bd
Compare
46b03bd
to
91aff35
Compare
I tried to test this PR on gutenberg.run, but trying to embed anything keeps failing there. Just looking at the code changes, though, they seem like an improvement to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally. LGTM!
THANK YOU! |
&.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { | ||
padding-top: 177.78%; // 16 / 9 * 100 | ||
} | ||
.wp-embed-aspect-9-6 .wp-block-embed__wrapper::before { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasmussen This appears to have been typo, to provide 6
instead of 16
. Fix provided in #25972.
This is a rebased version of #14648, so props to @m-e-h.
It's a good PR that aims to improve and refine the embed CSS to be less specific and work better. It also fixes some code quality and is overall a good PR.
Thank you @m-e-h for the PR!