Make WordPress Core

Changeset 54340


Ignore:
Timestamp:
09/27/2022 09:53:02 PM (17 months ago)
Author:
audrasjb
Message:

Twenty Eleven: Improve text color consistency of Table Block heading cells and figcaption.

This changeset ensures the text color selected for the text of the Table Block is reflected on the thead cells, on the figcaption and on the border below it. It also adds better consistency in headings cells padding.

Props umesh84, mukesh27, multidots1896, sabernhardt.
Fixes #56462.

Location:
trunk/src/wp-content/themes/twentyeleven
Files:
2 edited

Legend:

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

    r44381 r54340  
    220220}
    221221
     222.rtl .wp-block-table th {
     223    padding: 6px 0 6px 10px;
     224}
     225
     226.wp-block-table .has-text-color th {
     227    color: currentColor;
     228}
     229
    222230.wp-block-table td {
    223231    border: 0;
  • trunk/src/wp-content/themes/twentyeleven/editor-blocks.css

    r50358 r54340  
    163163/* Captions */
    164164
    165 [class^="wp-block-"] figcaption {
     165[class^="wp-block-"] figcaption,
     166[class*=" wp-block-"] figcaption {
    166167    font-family: Georgia, serif;
    167168    font-size: 12px;
    168169}
    169170
    170 [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     171[class^="wp-block-"]:not(.wp-block-gallery) figcaption,
     172[class*=" wp-block-"]:not(.wp-block-gallery) figcaption {
    171173    color: #666;
    172174    margin-bottom: 1.625em;
     
    178180}
    179181
    180 [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
     182[class^="wp-block-"]:not(.wp-block-gallery) figcaption:before,
     183[class*=" wp-block-"]:not(.wp-block-gallery) figcaption:before {
    181184    color: #666;
    182185    content: '\2014';
     
    190193}
    191194
    192 .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     195.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption,
     196.rtl [class*=" wp-block-"]:not(.wp-block-gallery) figcaption {
    193197    padding-left: 0;
    194198    padding-right: 40px;
     
    196200}
    197201
    198 .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
     202.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before,
     203.rtl [class*=" wp-block-"]:not(.wp-block-gallery) figcaption:before {
    199204    left: 0;
    200205    margin-left: 5px;
     
    356361/* Table */
    357362
    358 .editor-block-list__block .wp-block-table th,
    359 .editor-block-list__block .wp-block-table td {
    360     padding: 0;
     363.editor-styles-wrapper .wp-block-table th,
     364.editor-styles-wrapper .wp-block-table td {
     365    padding: 6px 10px 6px 0;
     366}
     367
     368.rtl .editor-styles-wrapper .wp-block-table th,
     369.rtl .editor-styles-wrapper .wp-block-table td {
     370    padding: 6px 0 6px 10px;
     371}
     372
     373.wp-block-table .has-text-color th {
     374    color: currentColor;
    361375}
    362376
Note: See TracChangeset for help on using the changeset viewer.