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 youknowriad committed Oct 3, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 35e44b9 commit ed5ec9a
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;
}
4 changes: 0 additions & 4 deletions packages/block-library/src/image/style.scss
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit ed5ec9a

Please sign in to comment.