Skip to content

Commit

Permalink
Fix aspect ratio typo and recalculate padding in embed block CSS (#16573
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gregsullivan authored and youknowriad committed Jul 26, 2019
1 parent fc0b94b commit 2e43198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/embed/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
padding-top: 100%; // 1 / 1 * 100
}

&.wp-embed-aspect-9-6 .wp-block-embed__wrapper::before {
padding-top: 66.66%; // 6 / 9 * 100
&.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before {
padding-top: 177.78%; // 16 / 9 * 100
}

&.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before {
Expand Down

0 comments on commit 2e43198

Please sign in to comment.