Make WordPress Core


Ignore:
Timestamp:
06/17/2016 06:36:03 PM (8 years ago)
Author:
helen
Message:

Use numeric font weights instead of keywords.

When Open Sans was in use, the 300, 400, and 600 weights were loaded. 400 is the equivalent of normal; however, bold is equivalent to 700, not 600. With the move to system fonts, we need to be specific rather than relying on the lack of a 700 weight. Not all system fonts include a 600 weight; in those instances, they will use the bold/700 weight.

The WordPress CSS Coding Standards have been updated accordingly.

props coderste.
see #36753.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/editor.css

    r37361 r37740  
    141141    white-space: normal;
    142142    font-size: 14px;
    143     font-weight: normal;
     143    font-weight: 400;
    144144}
    145145
     
    181181
    182182.mce-window .wp-editor-help th {
    183     font-weight: bold;
     183    font-weight: 600;
    184184    padding-bottom: 0;
    185185}
     
    188188    font-family: monospace;
    189189    padding: 2px 7px 3px;
    190     font-weight: bold;
     190    font-weight: 600;
    191191    margin: 0;
    192192    background: #eaeaea;
     
    839839    right: 6px;
    840840    top: 3px;
    841     font-weight: normal;
     841    font-weight: 400;
    842842    color: #555d66;
    843843}
     
    12431243
    12441244.quicktags-toolbar input[value="b"] {
    1245     font-weight: bold;
     1245    font-weight: 600;
    12461246}
    12471247
     
    16021602
    16031603#wp-link li.selected .item-title {
    1604     font-weight: bold;
     1604    font-weight: 600;
    16051605}
    16061606
Note: See TracChangeset for help on using the changeset viewer.