WordPress.org

Make WordPress Core

Ticket #50317: 50317.1.patch

File 50317.1.patch, 1.2 KB (added by sabernhardt, 3 months ago)

another option: centering .aligncenter captions for more blocks (including image gallery, audio and table) at any screen size

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

     
    12471247        margin-left: auto;
    12481248}
    12491249
     1250.aligncenter figcaption {
     1251        text-align: center;
     1252        width: 100%;
     1253}
     1254
    12501255/* Search Form ------------------------------- */
    12511256
    12521257.search-form {
     
    58585863                margin-left: 0;
    58595864        }
    58605865
    5861     .wp-block-image .aligncenter figcaption {
    5862         text-align: center;
    5863     }
    5864 
    58655866        /* BLOCK: SEPARATOR */
    58665867
    58675868        hr.wp-block-separator {
  • src/wp-content/themes/twentytwenty/style.css

     
    12531253        margin-right: auto;
    12541254}
    12551255
     1256.aligncenter figcaption {
     1257        text-align: center;
     1258        width: 100%;
     1259}
     1260
    12561261/* Search Form ------------------------------- */
    12571262
    12581263.search-form {
     
    59285933                margin-left: 0;
    59295934        }
    59305935
    5931     .wp-block-image .aligncenter figcaption {
    5932         text-align: center;
    5933     }
    5934 
    59355936        /* BLOCK: SEPARATOR */
    59365937
    59375938        hr.wp-block-separator {