Skip to content

Commit

Permalink
fix(theworld): editor layout styles
Browse files Browse the repository at this point in the history
  • Loading branch information
rpeterman-gp committed Feb 1, 2024
1 parent 3ac1d2c commit a32bddb
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions wp-content/themes/the-world/css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body {
margin-block-start: 1.75rem !important;
}
.wp-block-post-content > * + *:not(.alignleft, .alignright) {
margin-block-end: 0;
margin-block-end: 0 !important;
}

.block-editor-block-list__layout.is-root-container
Expand All @@ -35,13 +35,8 @@ body {
}
.block-editor-block-list__layout.is-root-container
> .wp-block:is(.alignleft, .alignright) {
width: 44%;
}
.block-editor-block-list__layout.is-root-container > .wp-block:is(.alignleft) {
margin-inline-start: calc(var(--_editor--content--gutter) * -1);
}
.block-editor-block-list__layout.is-root-container > .wp-block:is(.alignright) {
margin-inline-end: calc(var(--_editor--content--gutter) * -1);
float: none;
margin-inline: 0 !important;
}
.block-editor-block-list__layout.is-root-container
> .wp-block:is(.aligncenter) {
Expand Down Expand Up @@ -70,6 +65,11 @@ body {
border-color: var(--_editor--color--muted);
text-wrap: balance;
}
.block-editor-block-list__layout.is-root-container
> :where(.wp-block-pullquote):where(.alignleft, .alignright) {
max-width: none;
padding-block: 1.5rem;
}
.block-editor-block-list__layout.is-root-container
> :where(.wp-block-pullquote)
> blockquote {
Expand Down Expand Up @@ -117,4 +117,21 @@ body {
.wp-block-post-content {
--_editor--content--width: 960px;
}

.block-editor-block-list__layout.is-root-container
> .wp-block:is(.alignleft, .alignright) {
width: 44%;
margin-block-end: 2rem !important;
margin-inline: 2rem !important;
}
.block-editor-block-list__layout.is-root-container
> .wp-block:is(.alignleft) {
float: left;
margin-inline-start: calc(var(--_editor--content--gutter) * -1) !important;
}
.block-editor-block-list__layout.is-root-container
> .wp-block:is(.alignright) {
float: right;
margin-inline-end: calc(var(--_editor--content--gutter) * -1) !important;
}
}

0 comments on commit a32bddb

Please sign in to comment.