Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save voneff/80e3e1f1dc02eb831b93da680f54f6d0 to your computer and use it in GitHub Desktop.
Save voneff/80e3e1f1dc02eb831b93da680f54f6d0 to your computer and use it in GitHub Desktop.
// *******************************
// Make Gutenberg Sidebar Wider / Fluid
// -------------------------------
function wider_gutenberg_settings_sidebar() { ?>
<style>
@media (min-width: 1080px) {
#wpwrap .edit-post-layout.is-sidebar-opened .components-notice-list {
right: 26vw !important;
}
#wpwrap .edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout,
#wpwrap .edit-post-layout.is-sidebar-opened .edit-post-sidebar {
width: 26vw !important;
}
#wpwrap .edit-post-layout.is-sidebar-opened .edit-post-layout__content {
margin-right: 26vw !important;
}
}
</style>
<?php
}
add_action('admin_head','wider_gutenberg_settings_sidebar');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment