Skip to content

Commit

Permalink
aligned embed videos fix (#3636)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathiu authored and aduth committed Nov 28, 2017
1 parent 8d3e230 commit 086931d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions blocks/library/embed/editor.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
.editor-block-list__block[data-type="core/embed"] {
&[data-align="left"],
&[data-align="right"] {
max-width: 100%;
}
}

.wp-block-embed {
margin: 0;
clear: both; // necessary because we use responsive trickery to set width/height, and therefore the video doesn't intrinsically clear floats like an img does

[data-align="left"] &,
[data-align="right"] & {
width: 300px;
max-width: 100%;
}

&.is-loading {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 086931d

Please sign in to comment.