Enhance Theme Templates and Editor Layout

This commit is contained in:
2026-07-27 12:34:55 +02:00
parent cbcdbc1bb8
commit 243fb51770
14 changed files with 382 additions and 82 deletions
+17 -2
View File
@@ -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;