Permalink
Browse files

First pass, adding stylesheet for Gutenberg editor to affix the editi…

…ng width properly (more or less)

Signed-off-by: Frumph <philip@frumph.net>
  • Loading branch information...
Frumph committed Oct 6, 2018
1 parent 63feb1c commit 5cc53d97b727355d6e726bee9f66f7e5b24b3ada
Showing with 20 additions and 0 deletions.
  1. +9 −0 functions.php
  2. +11 −0 gutenberg.css
View
@@ -370,3 +370,12 @@ function comicpress_themeinfo($whichinfo = null) {
/* translators: theme discription for wp-admin */
$bogus_translation = __( 'Publish a WebComic with the ComicPress theme and the Comic Easel plugin.', 'comicpress' );
}
/**
* Enqueue WordPress theme styles within Gutenberg.
*/
function comicpress_gutenberg_styles() {
// Load the theme styles within Gutenberg.
wp_enqueue_style( 'comicpress-gutenberg', get_theme_file_uri( '/gutenberg.css' ), false, '@@pkg.version', 'all' );
}
add_action( 'enqueue_block_editor_assets', 'comicpress_gutenberg_styles' );
View
@@ -0,0 +1,11 @@
/*
Style Specifically for the Gutenberg Editor
*/
@media screen and ( min-width: 768px ) {
.edit-post-visual-editor .editor-post-title,
.edit-post-visual-editor .editor-block-list__block {
max-width: 1100px;
}
}

0 comments on commit 5cc53d9

Please sign in to comment.