From 201aa01eeb051a3e47a5d2d4f7418294aa56d6e8 Mon Sep 17 00:00:00 2001 From: spidoche Date: Tue, 9 Oct 2018 11:19:00 +0900 Subject: [PATCH] add !important to change the width of the editor Since the editor width style is add in the html using style tag, !important is required to overwrite the editor width using css. --- docs/extensibility/theme-support.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/extensibility/theme-support.md b/docs/extensibility/theme-support.md index fa2f4b40626ab7..d4a2a1b686fe9c 100644 --- a/docs/extensibility/theme-support.md +++ b/docs/extensibility/theme-support.md @@ -241,17 +241,17 @@ To change the main column width of the editor, add the following CSS to `style-e body.gutenberg-editor-page .editor-post-title__block, body.gutenberg-editor-page .editor-default-block-appender, body.gutenberg-editor-page .editor-block-list__block { - max-width: 720px; + max-width: 720px !important; } /* Width of "wide" blocks */ body.gutenberg-editor-page .editor-block-list__block[data-align="wide"] { - max-width: 1080px; + max-width: 1080px !important; } /* Width of "full-wide" blocks */ body.gutenberg-editor-page .editor-block-list__block[data-align="full"] { - max-width: none; + max-width: none !important; } ```