Make WordPress Core

Ticket #58396: 58396.2.patch

File 58396.2.patch, 2.6 KB (added by nadimcse, 3 years ago)

I've fixed the CSS issue by replacing margin-left: 0 with margin-left: auto and margin-right: auto for both admin dashboard and frontend.

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

    diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css
    index d31394f2dd..3add8280c4 100644
    a b Inter variable font. Usage:  
    458458        padding-right: 0;
    459459}
    460460
     461.editor-styles-wrapper .wp-block-latest-posts__list.wp-block-latest-posts {
     462        margin-left: auto;
     463        margin-right: auto;
     464}
     465
    461466.editor-styles-wrapper ul.wp-block-categories__list ul {
    462467        margin: 0;
    463468}
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

    diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css
    index 08fee73794..d5826f72b3 100644
    a b Inter variable font. Usage:  
    461461        margin: 40px 0;
    462462        padding-left: 0;
    463463}
    464 
     464.editor-styles-wrapper .wp-block-latest-posts__list.wp-block-latest-posts {
     465        margin-left: auto;
     466        margin-right: auto;
     467}
    465468.editor-styles-wrapper ul.wp-block-categories__list ul {
    466469        margin: 0;
    467470}
    hr.wp-block-separator.is-style-dots::before {  
    980983
    981984.editor-styles-wrapper .wp-block-latest-comments {
    982985        font-family: inherit;
    983         margin-left: 0;
    984986}
    985987
    986988.editor-styles-wrapper .wp-block-latest-comments li.wp-block-latest-comments__comment {
  • src/wp-content/themes/twentytwenty/style-rtl.css

    diff --git a/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css
    index e9200c45fe..e15fac4899 100644
    a b h2.entry-title {  
    25412541.post-meta svg * {
    25422542        fill: currentColor;
    25432543}
    2544 
     2544ol.wp-block-latest-comments{
     2545        margin-left: auto;
     2546        margin-right: auto;
     2547}
    25452548
    25462549/* Featured Media ---------------------------- */
    25472550
  • src/wp-content/themes/twentytwenty/style.css

    diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css
    index bd85ce4afe..e7c788c317 100644
    a b body:not(.singular) main > article:first-of-type {  
    23902390        padding: 4rem 0 0;
    23912391}
    23922392
    2393 
    23942393/* Search Results ---------------------------- */
    23952394
    23962395.no-search-results-form {
    h2.entry-title {  
    25582557        fill: currentColor;
    25592558}
    25602559
     2560ol.wp-block-latest-comments{
     2561        margin-left: auto;
     2562        margin-right: auto;
     2563}
     2564
    25612565
    25622566/* Featured Media ---------------------------- */
    25632567