Make WordPress Core

Changeset 43869


Ignore:
Timestamp:
11/06/2018 12:49:33 AM (6 years ago)
Author:
laurelfulford
Message:

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.

Location:
branches/5.0/src/wp-content/themes/twentyten
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-content/themes/twentyten/blocks.css

    r43793 r43869  
    156156--------------------------------------------------------------*/
    157157
    158 /* Columns */
    159 
    160 .wp-block-columns {
    161     margin: 0 -0.5em;
    162 }
    163 .wp-block-column {
    164     margin: 0 0.5em;
    165 }
    166 
    167158/* Separator */
    168159
    169160.wp-block-separator {
    170161    border: 0;
     162}
     163
     164/* Media & Text */
     165
     166.wp-block-media-text {
     167    margin-bottom: 24px;
    171168}
    172169
  • branches/5.0/src/wp-content/themes/twentyten/editor-blocks.css

    r43793 r43869  
    1818--------------------------------------------------------------*/
    1919
     20.edit-post-visual-editor .editor-block-list__block,
     21.edit-post-visual-editor .editor-block-list__block p,
     22.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
     23    font-size: 16px;
     24}
     25
     26.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
     27    font-family: Georgia, "Bitstream Charter", serif;
     28}
     29
    2030.edit-post-visual-editor .editor-block-list__block .mce-content-body,
    2131.wp-block-freeform.block-library-rich-text__tinymce p,
     
    6676/* Main column width */
    6777
    68 body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
    69 body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
    70 body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
    71     max-width: 670px; /* 640px + 30px for padding */
     78.wp-block {
     79    max-width: 670px; /* 640px + 30px to account for padding */
    7280}
    7381
     
    219227}
    220228
    221 /* Cover Image */
    222 
    223 .wp-block-cover-image-text {
     229/* Cover */
     230
     231.wp-block-cover-image-text,
     232.wp-block-cover-text {
    224233    font-size: 32px;
    225234}
Note: See TracChangeset for help on using the changeset viewer.