Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Commit

Permalink
Make size margins auto for resized images (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonwebz authored Nov 12, 2019
1 parent 0bcf762 commit 509d540
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/css/editor-style-block-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,11 @@ hr.wp-block-separator.is-style-dots::before {
margin-top: 30px;
}

.editor-styles-wrapper .wp-block-image.is-resized {
margin-right: auto;
margin-left: auto;
}

/* Block: Group ------------------------------ */

.editor-styles-wrapper .wp-block-group.has-background {
Expand Down
5 changes: 5 additions & 0 deletions assets/css/editor-style-block.css
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,11 @@ hr.wp-block-separator.is-style-dots::before {
margin-top: 30px;
}

.editor-styles-wrapper .wp-block-image.is-resized {
margin-left: auto;
margin-right: auto;
}

/* Block: Group ------------------------------ */

.editor-styles-wrapper .wp-block-group.has-background {
Expand Down
4 changes: 4 additions & 0 deletions style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,10 @@ button.toggle {
}
}

.wp-block-image.is-resized {
margin-right: auto;
margin-left: auto;
}

/* Search Form ------------------------------- */

Expand Down
4 changes: 4 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,10 @@ button.toggle {
}
}

.wp-block-image.is-resized {
margin-left: auto;
margin-right: auto;
}

/* Search Form ------------------------------- */

Expand Down

0 comments on commit 509d540

Please sign in to comment.