Make WordPress Core

Changeset 58635


Ignore:
Timestamp:
07/03/2024 11:02:50 AM (2 years ago)
Author:
karmatosed
Message:

Twenty Sixteen: Fixes editor styles for table and calendar blocks and captions.

The table and calendar block font sizes were not as expected on front end within editor. This includes changes for header cells (th), removes redundant font size rules, corrects font-weight and updates figcaption selector along with editing text alignment and adding RTL font selection.

Props nidhidhandhukiya, sabernhardt, sheulyshila, iamfarhan09, bijit027, jannathsyeda, pooja1210, shailu25, hmbashar.
Fixes #58355.

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

Legend:

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

    r57577 r58635  
    2828}
    2929
     30.rtl .editor-styles-wrapper {
     31        font-family: Arial, Tahoma, sans-serif;
     32}
     33
    3034.edit-post-visual-editor .editor-block-list__block {
    3135        color: #1a1a1a;
     
    263267/* Captions */
    264268
    265 [class^="wp-block-"] figcaption {
     269figure[class*="wp-block-"] > figcaption {
    266270        color: #686868;
    267271        font-style: italic;
    268272        line-height: 1.6153846154;
    269273        padding-top: 0.5384615385em;
    270         text-align: left;
    271 }
    272 
    273 .rtl [class^="wp-block-"] figcaption {
    274         text-align: right;
     274        text-align: start;
    275275}
    276276
  • trunk/src/wp-content/themes/twentysixteen/css/editor-style.css

    r58239 r58635  
    314314table caption {
    315315        border-width: 0 1px 1px 0;
    316         font-size: 16px;
    317316        font-weight: 700;
    318317        padding: 7px;
    319         text-align: left;
     318        text-align: start;
    320319        vertical-align: baseline;
     320}
     321
     322table caption {
     323        font-weight: normal;
    321324}
    322325
     
    324327.mce-item-table td {
    325328        border-width: 0 1px 1px 0;
    326         font-size: 16px;
    327329        padding: 7px;
    328330        vertical-align: baseline;
     331        text-align: start;
    329332}
    330333
     
    503506 */
    504507
     508body.rtl,
     509[dir="rtl"] body {
     510        font-family: Arial, Tahoma, sans-serif;
     511}
     512
    505513.rtl blockquote {
    506514        border: 0 solid #1a1a1a;
     
    534542        margin-left: auto;
    535543}
    536 
    537 .rtl table th,
    538 .rtl .mce-item-table th,
    539 .rtl table caption {
    540         text-align: right;
    541 }
Note: See TracChangeset for help on using the changeset viewer.