Make WordPress Core

Changeset 58633


Ignore:
Timestamp:
07/03/2024 10:27:33 AM (10 months ago)
Author:
karmatosed
Message:

Twenty Ten: Fixes table and calendar block font size issues.

The table and calendar block font sizes were not the same on front and in editor. This resolves in using relative line-height.

Props iamfarhan09, bijit027, sabernhardt.
Fixes #58362.

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

Legend:

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

    r56080 r58633  
    157157}
    158158
     159#content .wp-block-table[style*="font-size"] *,
     160#content .wp-block-table[class*="-font-size"] *,
     161#content .wp-block-calendar[style*="font-size"] *,
     162#content .wp-block-calendar[class*="-font-size"] * {
     163    font-size: inherit;
     164    line-height: 1.5;
     165}
     166
    159167/*--------------------------------------------------------------
    1601684.0 Blocks - Layout Elements
  • trunk/src/wp-content/themes/twentyten/editor-blocks.css

    r56081 r58633  
    295295}
    296296
     297.wp-block-table[style*="font-size"] *,
     298.wp-block-table[class*="-font-size"] *,
     299.wp-block-calendar[style*="font-size"] *,
     300.wp-block-calendar[class*="-font-size"] * {
     301    font-size: inherit;
     302    line-height: 1.5;
     303}
     304
    297305/*--------------------------------------------------------------
    2983065.0 Blocks - Widgets
Note: See TracChangeset for help on using the changeset viewer.