Skip to content

Instantly share code, notes, and snippets.

@alexstandiford
Created December 18, 2018 21:49
Show Gist options
  • Save alexstandiford/e82af54d4878e3cb9e255b0218fa8872 to your computer and use it in GitHub Desktop.
Save alexstandiford/e82af54d4878e3cb9e255b0218fa8872 to your computer and use it in GitHub Desktop.
Bookmarklet to make the Gutenberg editor wider
javascript:(function(){
style = document.createElement('style');
style.classList.add('outline-everything-with-red');
style.appendChild(document.createTextNode('@media screen and ( min-width: 768px ) {
.edit-post-visual-editor .editor-post-title,
.edit-post-visual-editor .editor-block-list__block {
max-width: 1100px;
}
}
.edit-post-visual-editor .editor-block-list__block[data-align="wide"] {
max-width: 1300px;
}'));
document.head.appendChild(style);
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment