Twenty Ten: Fix issues with theme's Gutenberg support.

A handful of issues were missed in Twenty Ten's Gutenberg support, added in #45038. This commit includes the following fixes:

* Update editor placeholder text to use the correct font family and size.
* Remove unnecessary spacing from the Columns block.
* Include non "image" variations of the Cover block classes `.wp-block-cover` and `.wp-block-cover-text` in the styles.
* Add spacing underneath the Media & Text block.
* Simplify selectors used to set editor width to just `.wp-block`.

Fixes #45238.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43869 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
laurelfulford 2018-11-06 00:49:33 +00:00
parent c99ccf859e
commit 1401fd3d72
2 changed files with 21 additions and 15 deletions

View File

@ -155,21 +155,18 @@ p.has-drop-cap:not(:focus)::first-letter {
4.0 Blocks - Layout Elements
--------------------------------------------------------------*/
/* Columns */
.wp-block-columns {
margin: 0 -0.5em;
}
.wp-block-column {
margin: 0 0.5em;
}
/* Separator */
.wp-block-separator {
border: 0;
}
/* Media & Text */
.wp-block-media-text {
margin-bottom: 24px;
}
/*--------------------------------------------------------------
5.0 Blocks - Widgets
--------------------------------------------------------------*/

View File

@ -17,6 +17,16 @@ Description: Used to style Gutenberg Blocks in the editor.
1.0 General Typography
--------------------------------------------------------------*/
.edit-post-visual-editor .editor-block-list__block,
.edit-post-visual-editor .editor-block-list__block p,
.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
font-size: 16px;
}
.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
font-family: Georgia, "Bitstream Charter", serif;
}
.edit-post-visual-editor .editor-block-list__block .mce-content-body,
.wp-block-freeform.block-library-rich-text__tinymce p,
.wp-block-freeform.block-library-rich-text__tinymce li {
@ -65,10 +75,8 @@ Description: Used to style Gutenberg Blocks in the editor.
/* Main column width */
body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
max-width: 670px; /* 640px + 30px for padding */
.wp-block {
max-width: 670px; /* 640px + 30px to account for padding */
}
/* Link styles */
@ -218,9 +226,10 @@ p.has-drop-cap:not(:focus)::first-letter {
font-size: 18px;
}
/* Cover Image */
/* Cover */
.wp-block-cover-image-text {
.wp-block-cover-image-text,
.wp-block-cover-text {
font-size: 32px;
}