Make WordPress Core

Changeset 50162


Ignore:
Timestamp:
02/02/2021 08:26:48 PM (4 years ago)
Author:
jorbin
Message:

Administration: use shorthand css properties to improve readability

Consolidating border, padding, and margin instances where the shorthand can be used to improve readability.

Props ankitmaru, audrasjb, sabernhardt, mukesh27, hellofromTonya.
Fixes #52148.

Location:
trunk/src
Files:
7 edited

Legend:

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

    r50025 r50162  
    459459#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after {
    460460    right: 0;
    461     border: solid transparent;
     461    border: 8px solid transparent;
    462462    content: " ";
    463463    height: 0;
     
    465465    position: absolute;
    466466    pointer-events: none;
    467     border-width: 8px;
    468467    top: 10px;
    469468    z-index: 10000;
  • trunk/src/wp-admin/css/common.css

    r50028 r50162  
    27012701    margin-top: 10px;
    27022702    margin-right: 250px; /* FYI box */
    2703     padding: 10px 26px;
     2703    padding: 10px 26px 99999px; /* equal height column trick */
    27042704    margin-bottom: -99932px; /* 67px less than the padding below to accommodate footer height */
    2705     padding-bottom: 99999px; /* equal height column trick */
    27062705}
    27072706
     
    27192718    top: 0;
    27202719    right: 0;
    2721     padding: 16px;
     2720    padding: 16px 16px 99999px; /* equal height column trick */
    27222721    margin-bottom: -99932px; /* 67px less than the padding below to accommodate footer height */
    2723     padding-bottom: 99999px; /* equal height column trick */
    27242722    width: 217px;
    27252723    border-left: 1px solid #dcdcde;
  • trunk/src/wp-admin/css/customize-controls.css

    r50025 r50162  
    23692369    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    23702370    margin: 30px 0 0 0;
    2371     padding: 0;
    2372     padding-bottom: 7px;
     2371    padding: 0 0 7px;
    23732372}
    23742373
     
    23882387    cursor: pointer;
    23892388    float: right;
    2390     margin: 0;
    2391     margin-left: 10px;
     2389    margin: 0 0 0 10px;
    23922390    transition: all 0.2s;
    23932391    -webkit-user-select: none;
  • trunk/src/wp-admin/css/edit.css

    r50161 r50162  
    18511851
    18521852    .wp_themeSkin .mceSplitButton td a.mceAction {
    1853         padding-top: 6px;
    1854         padding-bottom: 6px;
    1855         padding-left: 6px;
    1856         padding-right: 3px;
     1853        padding: 6px 3px 6px 6px;
    18571854    }
    18581855
  • trunk/src/wp-admin/css/install.css

    r50025 r50162  
    3737    color: #646970;
    3838    font-size: 24px;
    39     padding: 0;
    40     padding-bottom: 7px;
     39    padding: 0 0 7px;
    4140    font-weight: 400;
    4241}
  • trunk/src/wp-admin/css/nav-menus.css

    r50115 r50162  
    387387.nav-menus-php .list li {
    388388    display: none;
    389     margin: 0;
    390     margin-bottom: 5px;
     389    margin: 0 0 5px;
    391390}
    392391
  • trunk/src/wp-includes/css/editor.css

    r50025 r50162  
    13401340#wp_editgallery,
    13411341#wp_delgallery {
    1342     border-color: #8c8f94;
    13431342    background-color: #f0f0f1;
    13441343    margin: 2px;
    13451344    padding: 2px;
    1346     border-width: 1px;
    1347     border-style: solid;
     1345    border: 1px solid #8c8f94;
    13481346    border-radius: 3px;
    13491347}
Note: See TracChangeset for help on using the changeset viewer.