Make WordPress Core

Changeset 37740


Ignore:
Timestamp:
06/17/2016 06:36:03 PM (10 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.

Location:
trunk/src
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/about.css

    r37170 r37740  
    137137.about-wrap ol li p {
    138138        font-size: 14px;
    139         font-weight: normal;
     139        font-weight: 400;
    140140}
    141141
    … …  
    143143.about-wrap .about-text {
    144144        margin-top: 1.4em;
    145         font-weight: normal;
     145        font-weight: 400;
    146146        line-height: 1.6em;
    147147        font-size: 19px;
    … …  
    326326        margin: 30px 0 0 -5px;
    327327        font-size: 14px;
    328         font-weight: bold;
     328        font-weight: 600;
    329329}
    330330
    … …  
    388388        margin: 6px 0 2px;
    389389        font-size: 16px;
    390         font-weight: normal;
     390        font-weight: 400;
    391391        line-height: 2em;
    392392        text-decoration: none;
    … …  
    413413.freedoms-php .about-wrap ol li {
    414414        list-style-type: decimal;
    415         font-weight: bold;
     415        font-weight: 600;
    416416}
    417417
    418418.freedoms-php .about-wrap ol p {
    419         font-weight: normal;
     419        font-weight: 400;
    420420        margin: 0.6em 0;
    421421}
  • trunk/src/wp-admin/css/common.css

    r37714 r37740  
    438438.subsubsub a.current .count {
    439439        color: #555d66; /* #f1f1f1 background */
    440         font-weight: normal;
     440        font-weight: 400;
    441441}
    442442
    … …  
    582582        color: #555d66;
    583583        font-size: 14px;
    584         font-weight: normal;
     584        font-weight: 400;
    585585}
    586586
    … …  
    10571057        text-align: center;
    10581058        text-decoration: inherit;
    1059         font-weight: normal;
     1059        font-weight: 400;
    10601060        font-style: normal;
    10611061        -webkit-font-smoothing: antialiased;
    … …  
    18621862.widefat thead td,
    18631863.widefat tfoot td {
    1864         font-weight: normal;
     1864        font-weight: 400;
    18651865}
    18661866
    … …  
    19691969.hndle a {
    19701970        font-size: 11px;
    1971         font-weight: normal;
     1971        font-weight: 400;
    19721972}
    19731973
    … …  
    23802380        font-family: dashicons;
    23812381        text-decoration: inherit;
    2382         font-weight: normal;
     2382        font-weight: 400;
    23832383        font-style: normal;
    23842384        vertical-align: top;
    … …  
    24082408
    24092409div.action-links {
    2410         font-weight: normal;
     2410        font-weight: 400;
    24112411        margin: 6px 0 0;
    24122412}
    … …  
    24562456#plugin-information-title h2 {
    24572457        font-size: 1em;
    2458         font-weight: bold;
     2458        font-weight: 600;
    24592459        padding: 0;
    24602460        margin: 0;
    … …  
    25952595
    25962596#plugin-information .fyi h3 {
    2597         font-weight: bold;
     2597        font-weight: 600;
    25982598        text-transform: uppercase;
    25992599        font-size: 12px;
    … …  
    31053105#templateside .highlight {
    31063106        border: none;
    3107         font-weight: bold;
     3107        font-weight: 600;
    31083108}
    31093109
  • trunk/src/wp-admin/css/customize-controls.css

    r37582 r37740  
    577577
    578578.customize-control .attachment-title {
    579         font-weight: bold;
     579        font-weight: 600;
    580580        margin: 0;
    581581        padding: 5px 10px;
    … …  
    10111011        top: 50%;
    10121012        margin-top: -14px;
    1013         font-weight: normal;
     1013        font-weight: 400;
    10141014}
    10151015
  • trunk/src/wp-admin/css/customize-nav-menus.css

    r37679 r37740  
    512512        float: right;
    513513        color: #555d66;
    514         font-weight: normal;
     514        font-weight: 400;
    515515        margin-left: 5px;
    516516}
  • trunk/src/wp-admin/css/dashboard.css

    r37361 r37740  
    115115        margin: 0;
    116116        font-size: 21px;
    117         font-weight: normal;
     117        font-weight: 400;
    118118        line-height: 1.2;
    119119}
    … …  
    343343
    344344#dashboard_primary .rss-widget a {
    345         font-weight: normal;
     345        font-weight: 400;
    346346}
    347347
    … …  
    401401        padding: 0;
    402402        font-size: 14px;
    403         font-weight: normal;
     403        font-weight: 400;
    404404}
    405405
    … …  
    535535
    536536#dashboard_primary a.rsswidget {
    537         font-weight: normal;
     537        font-weight: 400;
    538538}
    539539
    … …  
    571571        padding: 0;
    572572        font-size: 14px;
    573         font-weight: normal;
     573        font-weight: 400;
    574574        color: #23282d;
    575575}
    … …  
    830830#latest-comments #the-comment-list .comment-meta cite {
    831831        font-style: normal;
    832         font-weight: normal;
     832        font-weight: 400;
    833833}
    834834
  • trunk/src/wp-admin/css/deprecated-media.css

    r36904 r37740  
    44        margin: 0;
    55        padding: 5px 5px 0;
    6         font-weight: bold;
     6        font-weight: 600;
    77        position: relative;
    88        border-bottom: 1px solid #ddd;
    … …  
    2020        list-style: none;
    2121        font-size: 12px;
    22         font-weight: normal;
     22        font-weight: 400;
    2323}
    2424
    … …  
    4747
    4848#sidemenu a.current {
    49         font-weight: normal;
     49        font-weight: 400;
    5050        padding-left: 6px;
    5151        padding-right: 6px;
    … …  
    9090        font-family: sans-serif;
    9191        font-style: italic;
    92         font-weight: normal;
     92        font-weight: 400;
    9393}
    9494
    … …  
    188188        font-family: sans-serif;
    189189        font-style: italic;
    190         font-weight: normal;
     190        font-weight: 400;
    191191}
    192192
    … …  
    295295h4.media-sub-title {
    296296        font-family: Georgia,"Times New Roman",Times,serif;
    297         font-weight: normal;
     297        font-weight: 400;
    298298        color: #5A5A5A;
    299299}
  • trunk/src/wp-admin/css/edit.css

    r37611 r37740  
    115115
    116116#editable-post-name {
    117         font-weight: bold;
     117        font-weight: 600;
    118118}
    119119
    120120#editable-post-name input {
    121121        font-size: 13px;
    122         font-weight: normal;
     122        font-weight: 400;
    123123        height: 22px;
    124124        margin: 0;
    … …  
    11711171
    11721172.links-table th {
    1173         font-weight: normal;
     1173        font-weight: 400;
    11741174        text-align: left;
    11751175        vertical-align: top;
  • trunk/src/wp-admin/css/forms.css

    r37714 r37740  
    633633.form-wrap label {
    634634        color: #23282d;
    635         font-weight: normal;
     635        font-weight: 400;
    636636        text-shadow: none;
    637637        vertical-align: baseline;
    … …  
    760760        margin: 8px 0;
    761761        font-size: 18px;
    762         font-weight: normal;
     762        font-weight: 400;
    763763        line-height: 24px;
    764764}
  • trunk/src/wp-admin/css/ie.css

    r36904 r37740  
    639639        font-family: 'tinymce', Arial;
    640640        font-style: normal;
    641         font-weight: normal;
     641        font-weight: 400;
    642642        font-variant: normal;
    643643        font-size: 16px;
  • trunk/src/wp-admin/css/install.css

    r37363 r37740  
    4646        padding: 0;
    4747        padding-bottom: 7px;
    48         font-weight: normal;
     48        font-weight: 400;
    4949}
    5050
    … …  
    101101        height: 84px;
    102102        font-size: 20px;
    103         font-weight: normal;
     103        font-weight: 400;
    104104        line-height: 1.3em;
    105105        margin: -130px auto 25px;
    … …  
    193193
    194194.form-table th p {
    195         font-weight: normal;
     195        font-weight: 400;
    196196}
    197197
    … …  
    407407        font-size: 16px;
    408408        font-family: Arial, sans-serif;
    409         font-weight: normal;
     409        font-weight: 400;
    410410}
    411411
  • trunk/src/wp-admin/css/l10n.css

    r35712 r37740  
    1717.rtl h6 {
    1818        font-family: Arial, sans-serif;
    19         font-weight: bold;
     19        font-weight: 600;
    2020}
    2121
    … …  
    2929.locale-he-il em {
    3030        font-style: normal;
    31         font-weight: bold;
     31        font-weight: 600;
    3232}
    3333
  • trunk/src/wp-admin/css/list-tables.css

    r37714 r37740  
    701701        font-size: 16px;
    702702        line-height: 1;
    703         font-weight: normal;
     703        font-weight: 400;
    704704        text-align: center;
    705705}
  • trunk/src/wp-admin/css/login.css

    r37361 r37740  
    8484        margin-left: 0;
    8585        padding: 26px 24px 46px;
    86         font-weight: normal;
     86        font-weight: 400;
    8787        overflow: hidden;
    8888        background: #fff;
    … …  
    9292
    9393.login form .forgetmenot {
    94         font-weight: normal;
     94        font-weight: 400;
    9595        float: left;
    9696        margin-bottom: 0;
    … …  
    134134        height: 84px;
    135135        font-size: 20px;
    136         font-weight: normal;
     136        font-weight: 400;
    137137        line-height: 1.3em;
    138138        margin: 0 auto 25px;
  • trunk/src/wp-admin/css/media.css

    r37231 r37740  
    814814
    815815.edit-attachment-frame .attachment-info .filename {
    816         font-weight: normal;
     816        font-weight: 400;
    817817        color: #666;
    818818}
  • trunk/src/wp-admin/css/nav-menus.css

    r36904 r37740  
    7272        color: #555d66; /* #fafafa background */
    7373        font-style: italic;
    74         font-weight: normal;
     74        font-weight: 400;
    7575        margin-left: 4px;
    7676}
    … …  
    216216
    217217.menu-location-title label {
    218         font-weight: bold;
     218        font-weight: 600;
    219219}
    220220
  • trunk/src/wp-admin/css/press-this.css

    r37361 r37740  
    8282b,
    8383strong {
    84         font-weight: bold;
     84        font-weight: 700;
    8585}
    8686
    … …  
    233233
    234234optgroup {
    235         font-weight: bold;
     235        font-weight: 700;
    236236}
    237237
    … …  
    20732073        margin: 0 0 0 8px;
    20742074        font-size: 14px;
    2075         font-weight: normal;
     2075        font-weight: 400;
    20762076}
    20772077
  • trunk/src/wp-admin/css/revisions.css

    r36582 r37740  
    150150
    151151.revisions-controls .author-card .author-name {
    152         font-weight: bold;
     152        font-weight: 600;
    153153}
    154154
  • trunk/src/wp-admin/css/themes.css

    r37714 r37740  
    724724.theme-overlay .theme-tags span {
    725725        color: #444;
    726         font-weight: bold;
     726        font-weight: 600;
    727727        margin-right: 5px;
    728728}
    … …  
    733733        border-left: 4px solid #00a0d2;
    734734        font-size: 14px;
    735         font-weight: normal;
     735        font-weight: 400;
    736736        margin-top: 30px;
    737737        padding: 10px 10px 10px 20px;
  • trunk/src/wp-admin/css/widgets.css

    r37323 r37740  
    370370#removing-widget {
    371371        display: none;
    372         font-weight: normal;
     372        font-weight: 400;
    373373        padding-left: 15px;
    374374        font-size: 12px;
  • trunk/src/wp-includes/css/admin-bar.css

    r37442 r37740  
    99        letter-spacing: normal;
    1010        font-size: 13px;
    11         font-weight: normal;
     11        font-weight: 400;
    1212        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    1313        line-height: 32px;
    … …  
    8484        color: #ccc;
    8585        font-size: 13px;
    86         font-weight: normal;
     86        font-weight: 400;
    8787        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    8888        line-height: 32px;
    … …  
    183183
    184184#wpadminbar .quicklinks .menupop ul li a strong {
    185         font-weight: bold;
     185        font-weight: 600;
    186186}
    187187
    … …  
    367367        padding: 2px 5px;
    368368        font-size: 10px;
    369         font-weight: bold;
     369        font-weight: 600;
    370370        -webkit-border-radius: 10px;
    371371        border-radius: 10px;
    … …  
    721721        display: block;
    722722        font-size: 14px;
    723         font-weight: bold;
     723        font-weight: 600;
    724724        padding: 15px 23px 14px;
    725725        background: #f1f1f1;
    … …  
    808808        #wpadminbar * {
    809809                font-size: 14px;
    810                 font-weight: normal;
     810                font-weight: 400;
    811811                font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    812812                line-height: 32px;
  • 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
  • trunk/src/wp-includes/css/media-views.css

    r37361 r37740  
    342342.image-details h2 {
    343343        position: relative;
    344         font-weight: bold;
     344        font-weight: 600;
    345345        text-transform: uppercase;
    346346        font-size: 12px;
    … …  
    405405        padding-top: 8px;
    406406        line-height: 16px;
    407         font-weight: normal;
     407        font-weight: 400;
    408408        color: #666;
    409409}
    … …  
    567567.media-menu .active:hover {
    568568        color: #23282d;
    569         font-weight: bold;
     569        font-weight: 600;
    570570}
    571571
    … …  
    974974        word-wrap: break-word;
    975975        text-align: center;
    976         font-weight: bold;
     976        font-weight: 600;
    977977        background: rgba( 255, 255, 255, 0.8 );
    978978        -webkit-box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 );
    … …  
    12751275
    12761276.upload-errors .upload-error-filename {
    1277         font-weight: bold;
     1277        font-weight: 600;
    12781278}
    12791279
    … …  
    13751375        font-size: 14px;
    13761376        color: #444;
    1377         font-weight: normal;
     1377        font-weight: 400;
    13781378}
    13791379
    … …  
    14391439        font-size: 14px;
    14401440        line-height: 20px;
    1441         font-weight: bold;
     1441        font-weight: 600;
    14421442}
    14431443
    … …  
    16171617
    16181618.attachment-info .filename {
    1619         font-weight: bold;
     1619        font-weight: 600;
    16201620        color: #444;
    16211621        word-wrap: break-word;
    … …  
    21742174        font-size: 3em;
    21752175        line-height: 1.3;
    2176         font-weight: bold;
     2176        font-weight: 600;
    21772177        color: #fff;
    21782178        padding: 0;
  • trunk/src/wp-includes/css/wp-embed-template.css

    r37442 r37740  
    105105p.wp-embed-heading {
    106106        margin: 0 0 15px;
    107         font-weight: bold;
     107        font-weight: 600;
    108108        font-size: 22px;
    109109        line-height: 1.3;
    … …  
    137137
    138138.wp-embed-site-title {
    139         font-weight: bold;
     139        font-weight: 600;
    140140        line-height: 25px;
    141141}
Note: See TracChangeset for help on using the changeset viewer.