Make WordPress Core

Ticket #56083: 56083.5.diff

File 56083.5.diff, 2.1 KB (added by sabernhardt, 6 months ago)

edits padding rule so it does not apply to lists with a background, adds top margin to all list items in List blocks, and adds side margin rule for List Item blocks

  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

     
    11211121
    11221122/* Block: List ------------------------------- */
    11231123
    1124 .editor-styles-wrapper ul.block-editor-block-list__block,
    1125 .editor-styles-wrapper ol.block-editor-block-list__block,
     1124.editor-styles-wrapper ul.block-editor-block-list__block:where(:not(.has-background)),
     1125.editor-styles-wrapper ol.block-editor-block-list__block:where(:not(.has-background)),
    11261126.editor-styles-wrapper ul ul,
    11271127.editor-styles-wrapper ol ul {
    11281128        padding-right: 1.3em;
     
    11321132        padding-right: 0;
    11331133}
    11341134
     1135.wp-block-list li {
     1136        margin-top: 0.5rem;
     1137}
     1138
     1139.wp-block-list.has-background > .wp-block-list-item {
     1140        margin-right: 2rem;
     1141}
     1142
    11351143/* Block: Post Template ---------------- */
    11361144
    11371145.editor-styles-wrapper ul.wp-block-post-template {
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

     
    11251125
    11261126/* Block: List ------------------------------- */
    11271127
    1128 .editor-styles-wrapper ul.block-editor-block-list__block,
    1129 .editor-styles-wrapper ol.block-editor-block-list__block,
     1128.editor-styles-wrapper ul.block-editor-block-list__block:where(:not(.has-background)),
     1129.editor-styles-wrapper ol.block-editor-block-list__block:where(:not(.has-background)),
    11301130.editor-styles-wrapper ul ul,
    11311131.editor-styles-wrapper ol ul {
    11321132        padding-left: 1.3em;
     
    11361136        padding-left: 0;
    11371137}
    11381138
     1139.wp-block-list li {
     1140        margin-top: 0.5rem;
     1141}
     1142
     1143.wp-block-list.has-background > .wp-block-list-item {
     1144        margin-left: 2rem;
     1145}
     1146
    11391147/* Block: Post Template ---------------- */
    11401148
    11411149.editor-styles-wrapper ul.wp-block-post-template {