Skip to content

Commit

Permalink
Restore a rule for the title block.
Browse files Browse the repository at this point in the history
This fixes an issue with TwentyNineteen.
  • Loading branch information
jasmussen committed Nov 1, 2019
1 parent 4c4ef90 commit c104127
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/edit-post/src/components/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@
}
}


// The base width of the title should match that of blocks even if it isn't a block.
// @todo: This duplicates CSS from line 49 in block-list/style.scss, and should be
// removed when the Title field becomes an actual block.
.editor-post-title {
// Beyond the mobile breakpoint, compensate for side UI.
@include break-small() {
padding-left: $block-padding + $block-side-ui-width + $block-padding + $border-width * 2;
padding-right: $block-padding + $block-side-ui-width + $block-padding + $border-width * 2;
}
}

.edit-post-visual-editor .editor-post-title__block {
// Center.
margin-left: auto;
Expand Down

0 comments on commit c104127

Please sign in to comment.