Skip to content

Commit

Permalink
Merge pull request #4970 from WordPress/try/fix-centering
Browse files Browse the repository at this point in the history
Fix centering
  • Loading branch information
jasmussen authored Feb 9, 2018
2 parents 038b1a0 + 908f933 commit 98d6c7e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
16 changes: 16 additions & 0 deletions blocks/library/freeform/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,22 @@
&:focus code[data-mce-selected] {
background: $light-gray-400;
}

.alignright {
float: right;
margin: 0.5em 0 0.5em 1em;
}

.alignleft {
float: left;
margin: 0.5em 1em 0.5em 0;
}

.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
}

// freeform toolbar
Expand Down
13 changes: 10 additions & 3 deletions blocks/library/image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,14 @@
}
}

.editor-block-list__block[data-type="core/image"][data-align="center"] .wp-block-image {
margin-left: auto;
margin-right: auto;
.editor-block-list__block[data-type="core/image"][data-align="center"] {
.wp-block-image {
margin-left: auto;
margin-right: auto;
}

&[data-resized="false"] .wp-block-image div {
margin-left: auto;
margin-right: auto;
}
}
16 changes: 0 additions & 16 deletions edit-post/assets/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,22 +133,6 @@ body.gutenberg-editor-page {
.components-navigate-regions {
height: 100%;
}

.alignright {
float: right;
margin: 0.5em 0 0.5em 1em;
}

.alignleft {
float: left;
margin: 0.5em 1em 0.5em 0;
}

.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
}

.editor-post-title,
Expand Down

0 comments on commit 98d6c7e

Please sign in to comment.