Enhance Theme Templates and Editor Layout
This commit is contained in:
+17
-2
@@ -44,7 +44,8 @@
|
||||
|
||||
/* Match the frontend's light canvas. The admin chrome is intentionally untouched. */
|
||||
body.editor-styles-wrapper {
|
||||
max-width: 760px;
|
||||
/* The canvas may be wide; theme.json constrains normal blocks to contentSize. */
|
||||
max-width: var(--wp--style--global--wide-size, 1180px);
|
||||
padding: 2rem;
|
||||
margin: 0 auto;
|
||||
background: #f8f5f0;
|
||||
@@ -86,10 +87,24 @@ body.editor-styles-wrapper {
|
||||
|
||||
/*
|
||||
* theme.json supplies contentSize and wideSize to Gutenberg's root container.
|
||||
* Do not override its alignment geometry here: it also handles full-width blocks
|
||||
* Do not override block alignment geometry here: it also handles full-width blocks
|
||||
* in the editor sidebar and other constrained editor layouts.
|
||||
*/
|
||||
|
||||
/* The post-title control sits outside Gutenberg's root block container. */
|
||||
.editor-post-title,
|
||||
.editor-post-title__block {
|
||||
width: 100%;
|
||||
max-width: var(--wp--style--global--wide-size, 1180px) !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
}
|
||||
|
||||
.editor-post-title__input {
|
||||
width: 100%;
|
||||
max-width: none !important;
|
||||
}
|
||||
|
||||
|
||||
.editor-styles-wrapper a {
|
||||
color: #c3480b;
|
||||
|
||||
Reference in New Issue
Block a user