Make WordPress Core

Changeset 44152

Timestamp:
12/14/2018 02:54:17 AM (6 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
     267
     268
     269
     270
     271
     272
     273
     274
     275
    263276/*--------------------------------------------------------------
    2642775.0 Blocks - Widgets
    265278--------------------------------------------------------------*/
     279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
     293
     294
     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-text {
    295297    font-size: 30px;
    296298    line-height: 37.5px;
     
    386388}
    387389
     390
     391
     392
     393
     394
     395
    388396/*--------------------------------------------------------------
    3893976.0 Blocks - Widgets
    390398--------------------------------------------------------------*/
     399
     400
     401
     402
     403
     404
     405
     406
     407
     408
    391409
    392410/* Latest Comments */
  • trunk/src/wp-content/themes/twentyfifteen/css/blocks.css

    r44145 r44152  
    6060}
    6161
     62
     63
     64
     65
     66
     67
     68
     69
     70
     71
     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
    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
     461
     462
     463
     464
     465
     466
     467
     468
     469
    442470/*--------------------------------------------------------------
    4434715.0 Blocks - Widgets
    444472--------------------------------------------------------------*/
     473
     474
     475
     476
     477
     478
     479
     480
     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
     771
     772
     773
     774
     775
    767776
    768777/*--------------------------------------------------------------
    7697786.0 Blocks - Widgets
    770779--------------------------------------------------------------*/
     780
     781
     782
     783
     784
     785
     786
     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
     257
     258
     259
     260
     261
     262
     263
    264264}
    265265
     
    273273.wp-block-categories.aligncenter,
    274274.wp-block-latest-posts.aligncenter {
     275
    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
    2425    line-height: 1.5;
     26
     27
     28
     29
    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
     408
     409
     410
     411
     412
    403413/*--------------------------------------------------------------
    4044146.0 Blocks - Widgets
     
    406416
    407417/* Archives, Categories & Latest Posts */
     418
     419
     420
     421
     422
     423
    408424
    409425.wp-block-archives li a,
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/blocks.css

    r44148 r44152  
    9898}
    9999
    100 /* Cover Image */
     100/* Cover */
    101101
    102102.wp-block-cover-image.alignright,
     103
    103104.wp-block-cover-image.alignleft,
    104 .wp-block-cover-image.aligncenter {
     105.wp-block-cover.alignleft,
     106.wp-block-cover-image.aligncenter,
     107.wp-block-cover.aligncenter {
    105108    display: flex;
    106109}
     
    220223}
    221224
     225
     226
     227
     228
     229
     230
     231
     232
     233
     234
    222235/*--------------------------------------------------------------
    2232365.0 Blocks - Widgets
    224237--------------------------------------------------------------*/
     238
     239
     240
     241
     242
     243
     244
     245
     246
    225247
    226248/* Comments */
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css

    r44148 r44152  
    2424    font-size: 15px;
    2525    font-size: 0.9375rem;
     26
     27
     28
     29
    2630}
    2731
     
    347351/* Main column width */
    348352
    349 body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
    350 body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
    351 body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
    352     max-width: 740px;
     353.editor-styles-wrapper {
     354    max-width: 100% !important; /* Override where editor-style.css is affecting this. */
     355}
     356
     357.wp-block {
     358    max-width: 674px; /* Based on one-column post width; 644px + 30px to account for padding. */
    353359}
    354360
     
    696702--------------------------------------------------------------*/
    697703
    698 /* Separators */
     704/* Separator */
    699705
    700706.edit-post-visual-editor .wp-block-separator {
     
    722728    white-space: nowrap;
    723729}
     730
     731
     732
     733
     734
     735
     736
    724737/*--------------------------------------------------------------
    7257386.0 Blocks - Widgets
    726739--------------------------------------------------------------*/
     740
     741
     742
     743
     744
     745
     746
     747
    727748
    728749/* Latest Comments */
  • trunk/src/wp-content/themes/twentysixteen/css/blocks.css

    r44147 r44152  
    7575    display: block;
    7676    width: 100%;
     77
     78
     79
     80
     81
     82
     83
    7784}
    7885
     
    241248}
    242249
     250
     251
     252
     253
     254
     255
     256
     257
     258
     259
    243260/*--------------------------------------------------------------
    2442615.0 Blocks - Widget Blocks
    245262--------------------------------------------------------------*/
     263
     264
     265
     266
     267
     268
     269
     270
     271
    246272
    247273/* Latest Comments */
  • trunk/src/wp-content/themes/twentysixteen/css/editor-blocks.css

    r44147 r44152  
    2121.edit-post-visual-editor .editor-block-list__block,
    2222.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
    23     color: #1a1a1a;
    2423    font-family: Merriweather, Georgia, serif;
    2524    font-size: 16px;
     
    174173/* Main column width */
    175174
    176 body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
    177 body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
    178 body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
    179     max-width: 630px; /* 600px + 30px for padding; should be 840px for pages */
     175.editor-styles-wrapper {
     176    max-width: 100% !important; /* Override where editor-style.css is affecting this */
     177}
     178
     179.wp-block {
     180    max-width: 630px; /* 600px + 30px to account for padding. */
    180181}
    181182
     
    536537
    537538/* Buttons */
     539
    538540.wp-block-button .wp-block-button__link {
    539541    background: #1a1a1a;
     
    549551}
    550552
     553
     554
     555
     556
     557
     558
    551559/*--------------------------------------------------------------
    5525606.0 Blocks - Widgets
    553561--------------------------------------------------------------*/
     562
     563
     564
     565
     566
     567
     568
     569
    554570
    555571/* Latest Comments */
  • trunk/src/wp-content/themes/twentyten/blocks.css

    r44137 r44152  
    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
     165
     166
     167
    171168}
    172169
  • trunk/src/wp-content/themes/twentyten/editor-blocks.css

    r44137 r44152  
    1818--------------------------------------------------------------*/
    1919
     20
     21
     22
     23
     24
     25
     26
     27
     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}
  • trunk/src/wp-content/themes/twentythirteen/css/blocks.css

    r44142 r44152  
    8787}
    8888
    89 /* Make sure the full and wide blocks still stay in Twenty Thirteen's wide container */
    90 
    9189@media (min-width: 1600px) {
     90
     91
    9292    body:not(.sidebar) .alignfull {
    9393        margin-left: calc(50% - 800px);
     
    9797    }
    9898
     99
     100
     101
     102
     103
     104
     105
     106
    99107    body:not(.sidebar) .wp-block-gallery.alignfull {
    100108        margin-left: calc(50% - 808px); /* Adjust for gallery margins */
     
    102110        width: auto;
    103111        max-width: 1000%;
     112
     113
     114
     115
     116
     117
    104118    }
    105119}
     
    173187}
    174188
    175 /* Cover Image */
    176 
    177 .wp-block-cover-image.aligncenter {
     189/* Cover */
     190
     191.wp-block-cover-image.aligncenter,
     192.wp-block-cover.aligncenter {
    178193    clear: both;
    179194    display: flex;
     
    263278}
    264279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
     293
     294
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
     322
     323
    265324/*--------------------------------------------------------------
    2663255.0 Blocks - Layout Elements
     
    320379}
    321380
     381
     382
     383
     384
     385
     386
     387
     388
     389
     390
    322391/*--------------------------------------------------------------
    3233926.0 Blocks - Widgets
    324393--------------------------------------------------------------*/
     394
     395
     396
     397
     398
     399
     400
     401
     402
    325403
    326404/* Latest Comments */
  • trunk/src/wp-content/themes/twentythirteen/css/editor-blocks.css

    r44142 r44152  
    5353--------------------------------------------------------------*/
    5454
    55 /* Main column width */
    56 
    57 .edit-post-visual-editor .editor-post-title__block,
    58 .edit-post-visual-editor .editor-default-block-appender,
    59 .edit-post-visual-editor .editor-block-list__block {
    60     max-width: 634px; /* 604 + 30 for editor block padding */
     55/* Main content width */
     56
     57.wp-block {
     58    max-width: 634px; /* 604px + 30px to account for padding */
     59}
     60
     61.wp-block.alignwide,
     62.wp-block.alignfull {
     63    max-width: inherit;
     64}
     65
     66[class^="wp-block-"] .wp-block {
     67    max-width: 100%;
    6168}
    6269
     
    231238}
    232239
    233 /* Cover Image */
    234 
    235 .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text {
     240/* Cover */
     241
     242.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text,
     243.edit-post-visual-editor .editor-block-list__block .wp-block-cover p.wp-block-cover-text {
    236244    font-size: 32px;
    237245    line-height: 1.25;
     
    340348}
    341349
     350
     351
     352
     353
     354
     355
    342356/*--------------------------------------------------------------
    3433577.0 Blocks - Widgets
    344358--------------------------------------------------------------*/
     359
     360
     361
     362
     363
     364
     365
     366
     367
    345368
    346369/* Latest Comments */
  • trunk/src/wp-content/themes/twentytwelve/css/blocks.css

    r44140 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}
     
    297298}
    298299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
    299311/*--------------------------------------------------------------
    3003125.0 Blocks - Widgets
    301313--------------------------------------------------------------*/
     314
     315
     316
     317
     318
     319
     320
     321
     322
    302323
    303324/* Latest Comments */
  • trunk/src/wp-content/themes/twentytwelve/css/editor-blocks.css

    r44140 r44152  
    2525}
    2626
     27
     28
     29
     30
    2731.edit-post-visual-editor .editor-block-list__block {
    2832    color: #444;
     
    7175/* Main column width */
    7276
    73 body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
    74 body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
    75 body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
    76     max-width: 655px;
     77.wp-block {
     78    max-width: 655px; /* 625px + 30px for padding */
    7779}
    7880
     
    219221}
    220222
    221 /* Cover Image */
    222 
    223 .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p {
     223/* Cover */
     224
     225.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p,
     226.edit-post-visual-editor .editor-block-list__block .wp-block-cover p {
    224227    font-size: 28px;
    225228}
     
    360363}
    361364
     365
     366
     367
     368
     369
     370
    362371/*--------------------------------------------------------------
    3633726.0 Blocks - Widgets
    364373--------------------------------------------------------------*/
    365374
     375
     376
     377
     378
     379
     380
     381
     382
    366383/* Archives */
     384
    367385.gutenberg ul.wp-block-archives {
    368386    padding-left: 0;
Note: See TracChangeset for help on using the changeset viewer.