Make WordPress Core

Changeset 45462


Ignore:
Timestamp:
05/29/2019 04:04:38 PM (7 years ago)
Author:
SergeyBiryukov
Message:

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

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

File:
1 edited

Legend:

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

    r45389 r45462  
    9090#edit-slug-box,
    9191#comment-link-box {
    92         line-height: 24px;
    93         min-height: 25px; /* Yes, line-height + 1 */
     92        line-height: 1.84615384;
     93        min-height: 25px;
    9494        margin-top: 5px;
    9595        padding: 0 10px;
    … …  
    187187.wp-tab-bar li {
    188188        display: inline;
    189         line-height: 1.35em;
     189        line-height: 1.35;
    190190}
    191191
    … …  
    420420#timestampdiv select {
    421421        height: 21px;
    422         line-height: 14px;
     422        line-height: 1.16666666;
    423423        padding: 0;
    424424        vertical-align: top;
    … …  
    487487#timestampdiv {
    488488        padding-top: 5px;
    489         line-height: 23px;
     489        line-height: 1.76923076;
    490490}
    491491
    … …  
    581581        margin-right: 25px;
    582582        font-size: 13px;
    583         line-height: 1.8em;
     583        line-height: 1.8;
    584584        cursor: default;
    585585        max-width: 100%;
    … …  
    641641
    642642#post-visibility-select {
    643         line-height: 1.5em;
     643        line-height: 1.5;
    644644        margin-top: 3px;
    645645}
    … …  
    708708.privacy-text-actions {
    709709        height: 32px;
    710         line-height: 32px;
     710        line-height: 2.46153846;
    711711        padding-bottom: 6px;
    712712}
    … …  
    883883
    884884#post-formats-select {
    885         line-height: 2em;
     885        line-height: 2;
    886886}
    887887
    … …  
    991991        margin: 0;
    992992        padding: 0;
    993         line-height: 22px;
     993        line-height: 1.69230769;
    994994        word-wrap: break-word;
    995995}
    … …  
    12051205.spam-undo-inside {
    12061206        margin: 1px 8px 1px 0;
    1207         line-height: 16px;
     1207        line-height: 1.23076923;
    12081208}
    12091209
    … …  
    15751575        button.wp-switch-editor {
    15761576                font-size: 16px;
    1577                 line-height: 1em;
     1577                line-height: 1;
    15781578                margin: 7px 0 0 7px;
    15791579                padding: 8px 12px;
    … …  
    16111611        #delete-action,
    16121612        #publishing-action {
    1613                 line-height: 47px;
     1613                line-height: 3.61538461;
    16141614        }
    16151615
Note: See TracChangeset for help on using the changeset viewer.