Make WordPress Core

Changeset 58634

Timestamp:
07/03/2024 10:45:35 AM (5 weeks ago)
Author:
karmatosed
Message:

Twenty Seventeen and Twenty Ten: Fixes gallery captions being at the bottom of images.

The margin specified in this theme caused issues when the gallery was placed in another block. This fix covers both themes as the selector is used within both.

Props pevogam, sabernhardt.
Fixes #58362.

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

Legend:

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

    r58453 r58634  
    3131}
    3232
    33 [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     33[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
    3434    color: #666;
    3535    margin-bottom: 1.625em;
     
    4141}
    4242
    43 [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
     43[class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
    4444    color: #666;
    4545    content: '\2014';
     
    5353}
    5454
    55 .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     55.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
    5656    padding-left: 0;
    5757    padding-right: 40px;
     
    5959}
    6060
    61 .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
     61.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
    6262    left: 0;
    6363    margin-left: 5px;
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/blocks.css

    r58584 r58634  
    2121/* Captions */
    2222
    23 [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     23[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
    2424    font-style: italic;
    2525    margin-bottom: 1.5em;
     
    2727}
    2828
    29 .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     29.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
    3030    text-align: right;
    3131}
  • trunk/src/wp-content/themes/twentyten/blocks.css

    r58633 r58634  
    2121/* Captions */
    2222
    23 [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     23[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
    2424    color: #777;
    2525    font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
  • trunk/src/wp-content/themes/twentyten/editor-blocks.css

    r58633 r58634  
    150150/* Caption styles */
    151151
    152 [class^="wp-block-"] figcaption {
     152[class^="wp-block-"] figcaption {
    153153    color: #777;
    154154    font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
Note: See TracChangeset for help on using the changeset viewer.