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

Make size margins auto for resized images #1002

Merged
merged 2 commits into from
Nov 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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