Skip to content

Commit

Permalink
Try: Move figure clearing CSS to editor style. (#17737)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored and gziolo committed Oct 15, 2019
1 parent ed6f4d4 commit 36a5832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/block-library/src/image/editor.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.wp-block-image {
position: relative;

// This resets the intrinsic margin on the figure in non-floated, wide, and full-wide alignments.
margin-left: 0;
margin-right: 0;

&.is-transient img {
opacity: 0.3;
}
Expand Down
4 changes: 0 additions & 4 deletions packages/block-library/src/image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
width: 100%;
}

// This resets the intrinsic margin on the figure in non-floated, wide, and full-wide alignments.
margin-left: 0;
margin-right: 0;

// Floats get an extra wrapping <div> element, so the <figure> becomes a child.
.alignleft,
.alignright,
Expand Down

0 comments on commit 36a5832

Please sign in to comment.