Make WordPress Core

Changeset 45469


Ignore:
Timestamp:
05/30/2019 12:31:57 PM (7 years ago)
Author:
SergeyBiryukov
Message:

CSS Coding Standards: Use unitless values for line-height in wp-includes/css/admin-bar.css.

Props ianbelanger, pbiron, afercia.
Fixes #46519. See #44643.

File:
1 edited

Legend:

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

    r45117 r45469  
    1111        font-weight: 400;
    1212        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    13         line-height: 32px;
     13        line-height: 2.46153846;
    1414        border-radius: 0;
    1515        box-sizing: content-box;
     
    8484        font-weight: 400;
    8585        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    86         line-height: 32px;
     86        line-height: 2.46153846;
    8787        height: 32px;
    8888        position: fixed;
     
    188188#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item,
    189189#wpadminbar .shortlink-input {
    190         line-height: 26px;
     190        line-height: 2;
    191191        height: 26px;
    192192        white-space: nowrap;
     
    485485        border: 1px solid #82878c;
    486486        background: #eee;
    487         line-height: 24px;
     487        line-height: 1.84615384;
    488488        vertical-align: middle;
    489489        margin: -4px 0 0 6px;
     
    644644        font-size: 13px;
    645645        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    646         line-height: 24px;
     646        line-height: 1.84615384;
    647647        text-indent: 0;
    648648        height: 24px;
     
    817817                font-weight: 400;
    818818                font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    819                 line-height: 32px;
     819                line-height: 2.28571428;
    820820        }
    821821
     
    824824                padding: 0;
    825825                height: 46px;
    826                 line-height: 46px;
     826                line-height: 3.28571428;
    827827                width: auto;
    828828        }
     
    849849        #wpadminbar #wp-admin-bar-my-account a.ab-item {
    850850                text-overflow: clip;
     851        }
     852
     853        #wpadminbar .quicklinks .menupop ul li .ab-item,
     854        #wpadminbar .quicklinks .menupop ul li a strong,
     855        #wpadminbar .quicklinks .menupop.hover ul li .ab-item,
     856        #wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item,
     857        #wpadminbar .shortlink-input {
     858            line-height: 1.6;
    851859        }
    852860
     
    955963        #wpadminbar #wp-admin-bar-new-content .ab-icon:before {
    956964                top: 0;
    957                 line-height: 53px;
     965                line-height: 1.33333333;
    958966                height: 46px !important;
    959967                text-align: center;
     
    980988                font-size: 34px;
    981989                height: 46px;
    982                 line-height: 47px;
     990                line-height: 1.38235294;
    983991                top: 0;
    984992        }
     
    10171025                height: auto;
    10181026                font-size: 16px;
    1019                 line-height: 24px;
     1027                line-height: 1.5;
    10201028                color: #eee;
    10211029        }
Note: See TracChangeset for help on using the changeset viewer.