WordPress.org

Make WordPress Core

Changeset 49511


Ignore:
Timestamp:
11/06/2020 11:51:12 AM (12 months ago)
Author:
SergeyBiryukov
Message:

Bundled Themes: Correct list block alignment in editor styles.

Additionally:

  • Indent nested lists in list and category blocks.
  • Match ordered and unordered indentation for the classic block's lists.

This applies to:

  • Twenty Ten
  • Twenty Eleven
  • Twenty Thirteen
  • Twenty Fourteen
  • Twenty Fifteen
  • Twenty Sixteen
  • Twenty Seventeen

Props sabernhardt, amolv, kjellr, audrasjb, francina.
Fixes #51157.

Location:
trunk/src/wp-content/themes
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/editor-blocks.css

    r48459 r49511  
    9797.edit-post-visual-editor ol,
    9898.editor-block-list__block ol,
    99 .block-library-list ol.editor-rich-text__tinymce {
    100     margin: 0 0 1.625em 2.5em;
    101     padding: 0;
    102 }
    103 
     99.block-library-list ol.editor-rich-text__tinymce,
    104100.block-library-list .editor-rich-text__tinymce {
    105101    padding: 0;
     
    147143}
    148144
    149 .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
    150 .rtl .editor-block-list__block ul:not(.wp-block-gallery),
    151 .rtl .block-library-list ul,
    152 .rtl .edit-post-visual-editor ol,
    153 .rtl .editor-block-list__block ol,
    154 .rtl .block-library-list ol {
     145.rtl .editor-styles-wrapper ul ul,
     146.rtl .editor-styles-wrapper ol ol,
     147.rtl .editor-styles-wrapper ul ol,
     148.rtl .editor-styles-wrapper ol ul {
    155149    margin-left: 0;
    156     margin-right: 1.3333em;
     150    margin-right: 2.5em;
     151}
     152
     153.wp-block-freeform.block-library-rich-text__tinymce ul,
     154.wp-block-freeform.block-library-rich-text__tinymce ol {
     155    padding-left: 2.5em;
     156}
     157
     158.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
     159.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
     160    padding: 0;
    157161}
    158162
  • trunk/src/wp-content/themes/twentyfifteen/css/editor-blocks.css

    r48459 r49511  
    332332.edit-post-visual-editor ol,
    333333.editor-block-list__block ol,
    334 .block-library-list ol {
    335     padding: 0;
    336 }
    337 
     334.block-library-list ol,
    338335.block-library-list .editor-rich-text__tinymce {
    339336    padding: 0;
     
    366363}
    367364
    368 .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
    369 .rtl .editor-block-list__block ul:not(.wp-block-gallery),
    370 .rtl .block-library-list ul,
    371 .rtl .edit-post-visual-editor ol,
    372 .rtl .editor-block-list__block ol,
    373 .rtl .block-library-list ol {
     365.rtl .editor-styles-wrapper ul ul,
     366.rtl .editor-styles-wrapper ol ol,
     367.rtl .editor-styles-wrapper ul ol,
     368.rtl .editor-styles-wrapper ol ul {
    374369    margin-left: 0;
    375     margin-right: 1.3333em;
     370    margin-right: 23px;
     371}
     372
     373.wp-block-freeform.block-library-rich-text__tinymce ul,
     374.wp-block-freeform.block-library-rich-text__tinymce ol {
     375    padding-left: 23px;
     376}
     377
     378.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
     379.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
     380    padding: 0;
    376381}
    377382
  • trunk/src/wp-content/themes/twentyfourteen/css/editor-blocks.css

    r48459 r49511  
    9898.edit-post-visual-editor ol,
    9999.editor-block-list__block ol,
    100 .block-library-list ol {
    101     margin: 0 0 1.6em 1.3333em;
    102     padding: 0;
    103 }
    104 
     100.block-library-list ol,
    105101.block-library-list .editor-rich-text__tinymce {
    106102    padding: 0;
     
    133129}
    134130
    135 .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
    136 .rtl .editor-block-list__block ul:not(.wp-block-gallery),
    137 .rtl .block-library-list ul,
    138 .rtl .edit-post-visual-editor ol,
    139 .rtl .editor-block-list__block ol,
    140 .rtl .block-library-list ol {
     131.rtl .editor-styles-wrapper ul ul,
     132.rtl .editor-styles-wrapper ol ol,
     133.rtl .editor-styles-wrapper ul ol,
     134.rtl .editor-styles-wrapper ol ul {
    141135    margin-left: 0;
    142     margin-right: 1.3333em;
     136    margin-right: 20px;
     137}
     138
     139.wp-block-freeform.block-library-rich-text__tinymce ul,
     140.wp-block-freeform.block-library-rich-text__tinymce ol {
     141    padding-left: 20px;
     142}
     143
     144.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
     145.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
     146    padding: 0;
    143147}
    144148
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css

    r45863 r49511  
    389389.block-library-list ol,
    390390.block-library-list .editor-rich-text__tinymce {
    391     margin: 0 0 1.5em 1.5em;
    392391    padding: 0;
    393392}
     
    421420}
    422421
    423 .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
    424 .rtl .editor-block-list__block ul:not(.wp-block-gallery),
    425 .rtl .block-library-list ul,
    426 .rtl .edit-post-visual-editor ol,
    427 .rtl .editor-block-list__block ol,
    428 .rtl .block-library-list ol,
    429 .rtl .block-library-list .editor-rich-text__tinymce,
    430 .rtl .edit-post-visual-editor li > ul:not(.wp-block-gallery),
    431 .rtl .editor-block-list__block li > ul:not(.wp-block-gallery),
    432 .rtl .block-library-list li > ul:not(.wp-block-gallery),
    433 .rtl .edit-post-visual-editor li > ol,
    434 .rtl .editor-block-list__block li > ol,
    435 .rtl .block-library-list li > ol {
    436     margin-left: 1.5em;
     422.rtl .editor-styles-wrapper ul ul,
     423.rtl .editor-styles-wrapper ol ol,
     424.rtl .editor-styles-wrapper ul ol,
     425.rtl .editor-styles-wrapper ol ul {
     426    margin-left: 0;
    437427    margin-right: 1.5em;
     428}
     429
     430.wp-block-freeform.block-library-rich-text__tinymce ul:not(.wp-block-gallery),
     431.wp-block-freeform.block-library-rich-text__tinymce ol {
     432    margin-left: 0;
     433    padding-left: 1.5em;
     434}
     435
     436.rtl .wp-block-freeform.block-library-rich-text__tinymce ul:not(.wp-block-gallery),
     437.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
     438    padding: 0;
    438439}
    439440
  • trunk/src/wp-content/themes/twentysixteen/css/editor-blocks.css

    r48459 r49511  
    198198.editor-block-list__block ol,
    199199.block-library-list ol {
    200     margin: 0 0 1.75em 1.25em;
    201200    padding: 0;
    202201}
     
    232231}
    233232
    234 .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
    235 .rtl .editor-block-list__block ul:not(.wp-block-gallery),
    236 .rtl .block-library-list ul,
    237 .rtl .edit-post-visual-editor ol,
    238 .rtl .editor-block-list__block ol,
    239 .rtl .block-library-list ol {
     233.rtl .editor-styles-wrapper ul ul,
     234.rtl .editor-styles-wrapper ol ol,
     235.rtl .editor-styles-wrapper ul ol,
     236.rtl .editor-styles-wrapper ol ul {
    240237    margin-left: 0;
    241     margin-right: 1.25em;
     238    margin-right: 1.5em;
     239}
     240
     241.wp-block-freeform.block-library-rich-text__tinymce ul,
     242.wp-block-freeform.block-library-rich-text__tinymce ol {
     243    padding-left: 1.5em;
     244}
     245
     246.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
     247.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
    242248    padding: 0;
    243 }
    244 
    245 .rtl .edit-post-visual-editor ol,
    246 .rtl .editor-block-list__block ol,
    247 .rtl .block-library-list ol {
    248     margin-left: 1.5em;
    249     margin-right: 1.5em;
    250249}
    251250
  • trunk/src/wp-content/themes/twentyten/editor-blocks.css

    r48459 r49511  
    9797.editor-block-list__block ol,
    9898.block-library-list ol.editor-rich-text__tinymce {
    99     margin: 0 0 18px 1.5em;
    10099    padding: 0;
    101100}
     
    131130}
    132131
    133 .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
    134 .rtl .editor-block-list__block ul:not(.wp-block-gallery),
    135 .rtl .block-library-list ul,
    136 .rtl .edit-post-visual-editor ol,
    137 .rtl .editor-block-list__block ol,
    138 .rtl .block-library-list ol {
     132.rtl .editor-styles-wrapper ul ul,
     133.rtl .editor-styles-wrapper ol ol,
     134.rtl .editor-styles-wrapper ul ol,
     135.rtl .editor-styles-wrapper ol ul {
    139136    margin-left: 0;
    140     margin-right: 1.25em;
     137    margin-right: 1.5em;
     138}
     139
     140.wp-block-freeform.block-library-rich-text__tinymce ul,
     141.wp-block-freeform.block-library-rich-text__tinymce ol {
     142    padding-left: 1.5em;
     143}
     144
     145.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
     146.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
    141147    padding: 0;
    142148}
  • trunk/src/wp-content/themes/twentythirteen/css/editor-blocks.css

    r49508 r49511  
    8484.edit-post-visual-editor ol,
    8585.editor-block-list__block ol,
    86 .block-library-list ol {
    87     margin: 16px 0;
    88     padding: 0 0 0 40px;
    89 }
    90 
     86.block-library-list ol,
    9187.block-library-list .editor-rich-text__tinymce {
    92     padding: 0 0 0 40px;
     88    padding: 0;
    9389}
    9490
     
    122118}
    123119
    124 .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
    125 .rtl .editor-block-list__block ul:not(.wp-block-gallery),
    126 .rtl .block-library-list ul,
    127 .rtl .edit-post-visual-editor ol,
    128 .rtl .editor-block-list__block ol,
    129 .rtl .block-library-list ol {
    130     padding-left: 0;
    131     padding-right: 40px;
    132 }
    133 
    134 .rtl .block-library-list .editor-rich-text__tinymce {
    135     padding-left: 0;
    136     padding-right: 40px;
     120.editor-styles-wrapper ul.block-editor-block-list__block,
     121.editor-styles-wrapper ol.block-editor-block-list__block,
     122.editor-styles-wrapper ol ul:not(.wp-block-gallery),
     123.editor-styles-wrapper ul ul:not(.wp-block-gallery),
     124.editor-styles-wrapper ul ol,
     125.editor-styles-wrapper ol ol,
     126.wp-block-freeform.block-library-rich-text__tinymce ul,
     127.wp-block-freeform.block-library-rich-text__tinymce ol {
     128    padding: 0 0 0 40px;
     129}
     130
     131.rtl .editor-styles-wrapper ul.block-editor-block-list__block,
     132.rtl .editor-styles-wrapper ol.block-editor-block-list__block,
     133.rtl .editor-styles-wrapper ol ul:not(.wp-block-gallery),
     134.rtl .editor-styles-wrapper ul ul:not(.wp-block-gallery),
     135.rtl .editor-styles-wrapper ul ol,
     136.rtl .editor-styles-wrapper ol ol,
     137.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
     138.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
     139    padding: 0 40px 0 0;
    137140}
    138141
Note: See TracChangeset for help on using the changeset viewer.