@@ -68,7 +68,7 @@ public function add_theme_support() {
68
68
add_theme_support ( 'editor-styles ' );
69
69
70
70
// Add editor style.
71
- add_editor_style ( 'public/css/gutenberg.min.css ' );
71
+ add_editor_style ( 'public/css/gutenberg-css .min.css ' );
72
72
73
73
$ palette = [];
74
74
$ colors = bigbox_get_theme_colors ();
@@ -162,6 +162,10 @@ public function inline_editor_css( $settings ) {
162
162
$ weight_base = bigbox_get_theme_font_weight ( 'base ' );
163
163
$ weight_bold = bigbox_get_theme_font_weight ( 'bold ' );
164
164
165
+ if ( 'default ' === $ family ) {
166
+ $ family = "-apple-system, blinkmacsystemfont, 'Segoe UI', roboto, 'Helvetica Neue', arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' " ;
167
+ }
168
+
165
169
$ config = [];
166
170
167
171
// Base.
@@ -173,7 +177,7 @@ public function inline_editor_css( $settings ) {
173
177
'declarations ' => [
174
178
'color ' => esc_attr ( $ gray700 ),
175
179
'font-size ' => ( $ size * 16 ) . 'px ' ,
176
- 'font-family ' => esc_attr ( $ family ) ,
180
+ 'font-family ' => $ family ,
177
181
'font-weight ' => $ weight_base ,
178
182
],
179
183
];
@@ -215,12 +219,6 @@ public function inline_editor_css( $settings ) {
215
219
'selectors ' => [
216
220
'.editor-post-title__block .editor-post-title__input ' ,
217
221
'a ' ,
218
- 'h1 ' ,
219
- 'h2 ' ,
220
- 'h3 ' ,
221
- 'h4 ' ,
222
- 'h5 ' ,
223
- 'h6 ' ,
224
222
],
225
223
'declarations ' => [
226
224
'color ' => esc_attr ( $ gray800 ),
@@ -255,8 +253,7 @@ public function inline_editor_css( $settings ) {
255
253
}
256
254
257
255
$ settings ['styles ' ][] = [
258
- 'baseUrl ' => null ,
259
- 'css ' => $ css ->build (),
256
+ 'css ' => $ css ->build (),
260
257
];
261
258
262
259
return $ settings ;
0 commit comments