Make WordPress Core

Changeset 56034


Ignore:
Timestamp:
06/26/2023 03:04:22 PM (3 years ago)
Author:
audrasjb
Message:

Twenty Twenty: Fix left margin in Latest Posts & Latest Comments blocks.

This fixes a bug where the margin-left: auto property was being overwritten to margin-left: 0 causing an inconsistency in the alignment of these blocks.

Props nkeller15, nadimcse, sabernhardt, tb1909, poena.
Fixes #58396.

Location:
trunk/src/wp-content/themes/twentytwenty
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

    r56000 r56034  
    459459}
    460460
     461.editor-styles-wrapper ul.wp-block-latest-posts {
     462        margin-right: auto;
     463        margin-left: auto;
     464}
     465
    461466.editor-styles-wrapper ul.wp-block-categories__list ul {
    462467        margin: 0;
     
    983988.editor-styles-wrapper .wp-block-latest-comments {
    984989        font-family: inherit;
    985         margin-right: 0;
     990        margin-right: auto;
    986991}
    987992
  • trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

    r56000 r56034  
    463463}
    464464
     465.editor-styles-wrapper ul.wp-block-latest-posts {
     466        margin-left: auto;
     467        margin-right: auto;     
     468}
     469
    465470.editor-styles-wrapper ul.wp-block-categories__list ul {
    466471        margin: 0;
     
    987992.editor-styles-wrapper .wp-block-latest-comments {
    988993        font-family: inherit;
    989         margin-left: 0;
     994        margin-left: auto;
    990995}
    991996
  • trunk/src/wp-content/themes/twentytwenty/style-rtl.css

    r56000 r56034  
    29262926}
    29272927
     2928ol.wp-block-latest-comments {
     2929        margin-left: auto;
     2930        margin-right: auto;
     2931}
     2932
    29282933.entry-content .wp-block-archives > li,
    29292934.entry-content .wp-block-categories > li,
  • trunk/src/wp-content/themes/twentytwenty/style.css

    r56000 r56034  
    29462946}
    29472947
     2948ol.wp-block-latest-comments {
     2949        margin-left: auto;
     2950        margin-right: auto;
     2951}
     2952
    29482953.entry-content .wp-block-archives > li,
    29492954.entry-content .wp-block-categories > li,
Note: See TracChangeset for help on using the changeset viewer.