Removed editor-style style files in favor of adding a simple _tinymce.scss partial. This cuts styles compiling time in about half.

`add_editor_style` now just references `main.css`
This commit is contained in:
Julien Melissas
2015-10-13 11:51:57 -04:00
parent 8e271f98bd
commit 5a621210db
4 changed files with 3 additions and 9 deletions

View File

@@ -12,11 +12,6 @@
], ],
"main": true "main": true
}, },
"editor-style.css": {
"files": [
"styles/editor-style.scss"
]
},
"jquery.js": { "jquery.js": {
"bower": ["jquery"] "bower": ["jquery"]
} }

View File

@@ -1,5 +1,3 @@
@import "main"; body#tinymce {
body {
margin: 12px !important; margin: 12px !important;
} }

View File

@@ -16,3 +16,4 @@
@import "layouts/_footer"; @import "layouts/_footer";
@import "layouts/_pages"; @import "layouts/_pages";
@import "layouts/_posts"; @import "layouts/_posts";
@import "layouts/_tinymce";

View File

@@ -45,7 +45,7 @@ function setup() {
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']); add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']);
// Custom stylesheet for visual editor // Custom stylesheet for visual editor
add_editor_style(Assets\asset_path('styles/editor-style.css')); add_editor_style(Assets\asset_path('styles/main.css'));
} }
add_action('after_setup_theme', __NAMESPACE__ . '\\setup'); add_action('after_setup_theme', __NAMESPACE__ . '\\setup');