Make WordPress Core

Changeset 44301 for trunk


Ignore:
Timestamp:
12/18/2018 10:17:55 PM (8 years ago)
Author:
desrosj
Message:

Twenty Eleven: Correct font-size and button issues.

Update a mistake in Twenty Eleven's block editor styles that erroneously sets the font-size to 300, when it should set the font-weight to 300. This was causing browsers in quirks mode to make the editor font size very large.

Also, simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end.

Props laurelfulford.

Merges [44190] and [44191] to trunk.

Fixes #45421, #45433.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

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

    r44152 r44301  
    233233
    234234.wp-block-button .wp-block-button__link {
    235         background: #222;
    236235        border: none;
    237236        -moz-border-radius: 3px;
     
    240239        -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
    241240        box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
    242         color: #eee;
    243241        cursor: pointer;
    244242        font-size: 15px;
     
    248246}
    249247
    250 .wp-block-button .wp-block-button__link:active {
     248.wp-block-button__link {
     249        background: #222;
     250        color: #eee;
     251}
     252
     253.wp-block-button__link:active {
    251254        background: #1982d1;
    252255        color: #bfddf3;
  • trunk/src/wp-content/themes/twentyeleven/editor-blocks.css

    r44152 r44301  
    2424        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    2525        font-size: 15px;
    26         font-size: 300;
     26        font-weight: 300;
    2727        line-height: 1.625;
    2828}
Note: See TracChangeset for help on using the changeset viewer.