⚡ NEW: Changeset/ - Uncensored 2025

Changeset 44152


Ignore:
Timestamp:
12/14/2018 02:54:17 AM (7 years ago)
Author:
desrosj
Message:

Bundled Themes: Expand initial block editor support.

A handful of items were missed when adding initial support for the new block editor to bundled themes in [43793]-[43800]. This adds support for those missed items.

Props pento, davidakennedy, laurelfulford.

Merges [43869], [43870], [43871], [43872], [43873], [43874], [43875], [43876] to trunk.

Fixes #45238, #45239, #45240, #45242, #45243, #45244, #45245, #45246.

Location:
trunk
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-content/themes/twentyeleven/blocks.css

    r44139 r44152  
    131131}
    132132
    133 /* Cover Image */
    134 
    135 .wp-block-cover-image.aligncenter {
     133/* Cover */
     134
     135.wp-block-cover-image.aligncenter,
     136.wp-block-cover.aligncenter {
    136137    clear: both;
    137138    display: flex;
    138139}
    139140
    140 .wp-block-cover-image.alignleft {
     141.wp-block-cover-image.alignleft,
     142.wp-block-cover.alignleft {
    141143    margin-right: 1.625em;
    142144}
    143145
    144 .wp-block-cover-image.alignright {
     146.wp-block-cover-image.alignright,
     147.wp-block-cover.alignright {
    145148    margin-left: 1.625em;
    146149}
     
    261264}
    262265
     266/* Media & Text */
     267
     268.wp-block-media-text {
     269    margin-bottom: 1.625em;
     270}
     271
     272.wp-block-media-text *:last-child {
     273    margin-bottom: 0;
     274}
     275
    263276/*--------------------------------------------------------------
    2642775.0 Blocks - Widgets
    265278--------------------------------------------------------------*/
     279
     280/* Archives, Categories & Latest Posts */
     281
     282.wp-block-archives.aligncenter,
     283.wp-block-categories.aligncenter,
     284.wp-block-latest-posts.aligncenter {
     285    list-style-position: inside;
     286    margin-left: 2.5em;
     287    text-align: center;
     288}
     289
     290.rtl .wp-block-archives.aligncenter,
     291.rtl .wp-block-categories.aligncenter,
     292.rtl .wp-block-latest-posts.aligncenter {
     293    margin-left: 0;
     294    margin-right: 2.5em;
     295}
    266296
    267297/* Latest Comments */
  • trunk/src/wp-content/themes/twentyeleven/editor-blocks.css

    r44139 r44152  
    7373/* Main column width */
    7474
    75 body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
    76 body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
    77 body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
    78     max-width: 614px;
     75.editor-styles-wrapper {
     76    max-width: 100% !important; /* Override where editor-style.css is affecting this. */
     77}
     78
     79.wp-block {
     80    max-width: 614px; /* 584px + 30px to account for padding */
    7981}
    8082
     
    289291}
    290292
    291 
    292 /* Cover Image */
    293 
    294 .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text {
     293/* Cover */
     294
     295.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text,
     296.edit-post-visual-editor .editor-block-list__block .wp-block-cover p.wp-block-cover-text {
    295297    font-size: 30px;
    296298    line-height: 37.5px;
     
    386388}
    387389
     390/* Media & Text */
     391
     392.wp-block-media-text *:last-child {
     393    margin-bottom: 0;
     394}
     395
    388396/*--------------------------------------------------------------
    3893976.0 Blocks - Widgets
    390398--------------------------------------------------------------*/
     399
     400/* Archives, Categories & Latest Posts */
     401
     402[data-align="center"] .wp-block-archives ul,
     403[data-align="center"] .wp-block-categories ul,
     404[data-align="center"] .wp-block-latest-posts ul {
     405    list-style-position: inside;
     406    margin-left: 2.5em;
     407    text-align: center;
     408}
    391409
    392410/* Latest Comments */
  • trunk/src/wp-content/themes/twentyfifteen/css/blocks.css

    r44145 r44152  
    6060}
    6161
     62/* Alignments */
     63
     64[class^="wp-block-"].alignleft,
     65[class^="wp-block-"] .alignleft {
     66    margin-right: 1em;
     67}
     68
     69[class^="wp-block-"].alignright,
     70[class^="wp-block-"] .alignright {
     71    margin-left: 1em;
     72}
     73
     74
    6275/*--------------------------------------------------------------
    63762.0 Blocks - Common Blocks
     
    8396}
    8497
    85 /* Cover Image */
     98/* Cover */
    8699
    87100.wp-block-cover-image .wp-block-cover-image-text,
    88 .wp-block-cover-image h2 {
     101.wp-block-cover .wp-block-cover-text,
     102.wp-block-cover-image h2,
     103.wp-block-cover h2 {
    89104    font-size: 29px;
    90105    line-height: 1.2069;
     
    188203
    189204.wp-block-cover-image.aligncenter,
     205.wp-block-cover.aligncenter,
    190206.wp-block-cover-image.alignleft,
    191 .wp-block-cover-image.alignright {
     207.wp-block-cover.alignleft,
     208.wp-block-cover-image.alignright,
     209.wp-block-cover.alignright {
    192210    display: flex;
    193211}
     
    440458}
    441459
     460/* Media & Text */
     461
     462.wp-block-media-text {
     463    margin-bottom: 1.6em;
     464}
     465
     466.wp-block-media-text *:last-child {
     467    margin-bottom: 0;
     468}
     469
    442470/*--------------------------------------------------------------
    4434715.0 Blocks - Widgets
    444472--------------------------------------------------------------*/
     473
     474/* Archives, Categories & Latest Posts */
     475
     476.wp-block-archives.aligncenter,
     477.wp-block-categories.aligncenter,
     478.wp-block-latest-posts.aligncenter {
     479    list-style-position: inside;
     480    text-align: center;
     481}
    445482
    446483/* Latest Comments */
  • trunk/src/wp-content/themes/twentyfifteen/css/editor-blocks.css

    r44145 r44152  
    306306/* Main column width */
    307307
    308 body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
    309 body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
    310 body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
    311     max-width: 690px; /* 660px + 30px for the editor padding */
     308.editor-styles-wrapper {
     309    max-width: 100% !important; /* Override where editor-style.css is affecting this. */
     310}
     311
     312.wp-block {
     313    max-width: 690px; /* 660px + 30px to account for padding. */
    312314}
    313315
     
    557559}
    558560
    559 /* Cover Image */
     561/* Cover */
    560562
    561563.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p,
    562 .wp-block-cover-image h2 {
     564.edit-post-visual-editor .editor-block-list__block .wp-block-cover p,
     565.wp-block-cover-image h2,
     566.wp-block-cover h2 {
    563567    font-size: 29px;
    564568    line-height: 1.2069;
    565569}
    566 
    567570
    568571/* File */
     
    765768}
    766769
     770/* Media & Text */
     771
     772.wp-block-media-text *:last-child {
     773    margin-bottom: 0;
     774}
     775
    767776
    768777/*--------------------------------------------------------------
    7697786.0 Blocks - Widgets
    770779--------------------------------------------------------------*/
     780
     781/* Archives, Categories & Latest Posts */
     782
     783[data-align="center"] .wp-block-archives ul,
     784[data-align="center"] .wp-block-categories ul,
     785[data-align="center"] .wp-block-latest-posts ul {
     786    list-style-position: inside;
     787}
     788
    771789
    772790/* Latest Comments */
  • trunk/src/wp-content/themes/twentyfourteen/css/blocks.css

    r44144 r44152  
    128128}
    129129
    130 /* Cover Image */
    131 
    132 .wp-block-cover-image.aligncenter {
     130/* Cover */
     131
     132.wp-block-cover-image.aligncenter,
     133.wp-block-cover.aligncenter {
    133134    display: flex;
    134135}
    135 
    136136
    137137/* File */
     
    243243}
    244244
    245 /* Columns */
    246 
    247 .wp-block-columns {
    248     margin: 0 -0.5em;
    249 }
    250 
    251 .wp-block-column {
    252     margin: 0 0.5em;
    253 }
    254 
    255245/* Separator */
    256246
     
    262252.wp-block-separator.is-style-wide {
    263253    max-width: 100%;
     254}
     255
     256/* Media & Text */
     257
     258.wp-block-media-text {
     259    margin-bottom: 24px;
     260}
     261
     262.wp-block-media-text *:last-child {
     263    margin-bottom: 0;
    264264}
    265265
     
    273273.wp-block-categories.aligncenter,
    274274.wp-block-latest-posts.aligncenter {
     275    list-style-position: inside;
    275276    margin-left: 20px;
    276277    text-align: center;
  • trunk/src/wp-content/themes/twentyfourteen/css/editor-blocks.css

    r44144 r44152  
    2222.edit-post-visual-editor .editor-block-list__block p,
    2323.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
     24    font-size: 16px;
    2425    line-height: 1.5;
     26}
     27
     28.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
     29    font-family: Lato, sans-serif;
    2530}
    2631
     
    6974/* Main column width */
    7075
    71 body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
    72 body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
    73 body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
    74     max-width: 504px; /* 474 + 30 for editor block padding */
     76.wp-block {
     77    max-width: 504px; /* 474px + 30px to account for padding */
    7578}
    7679
     
    308311}
    309312
    310 /* Cover Image */
    311 
    312 .wp-block-cover-image.aligncenter {
     313/* Cover */
     314
     315.wp-block-cover-image.aligncenter,
     316.wp-block-cover.aligncenter {
    313317    display: flex;
    314318}
     
    401405}
    402406
     407/* Media & Text */
     408
     409.wp-block-media-text *:last-child {
     410    margin-bottom: 0;
     411}
     412
    403413/*--------------------------------------------------------------