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.



git-svn-id: https://develop.svn.wordpress.org/trunk@50162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2021-02-02 20:26:48 +00:00
parent 03e81107ad
commit c42e99b3c5
7 changed files with 9 additions and 21 deletions

View File

@ -458,13 +458,12 @@ ul#adminmenu > li.current > a.current:after {
/* flyout menu arrow */
#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after {
right: 0;
border: solid transparent;
border: 8px solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-width: 8px;
top: 10px;
z-index: 10000;
}

View File

@ -2700,9 +2700,8 @@ div.action-links {
left: 0;
margin-top: 10px;
margin-right: 250px; /* FYI box */
padding: 10px 26px;
padding: 10px 26px 99999px; /* equal height column trick */
margin-bottom: -99932px; /* 67px less than the padding below to accommodate footer height */
padding-bottom: 99999px; /* equal height column trick */
}
#section-holder .notice {
@ -2718,9 +2717,8 @@ div.action-links {
position: relative;
top: 0;
right: 0;
padding: 16px;
padding: 16px 16px 99999px; /* equal height column trick */
margin-bottom: -99932px; /* 67px less than the padding below to accommodate footer height */
padding-bottom: 99999px; /* equal height column trick */
width: 217px;
border-left: 1px solid #dcdcde;
background: #f6f7f7;

View File

@ -2368,8 +2368,7 @@ body.cheatin h1 {
font-size: 24px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
margin: 30px 0 0 0;
padding: 0;
padding-bottom: 7px;
padding: 0 0 7px;
}
body.cheatin p {
@ -2387,8 +2386,7 @@ body.cheatin p {
#customize-theme-controls .add-new-menu-item {
cursor: pointer;
float: right;
margin: 0;
margin-left: 10px;
margin: 0 0 0 10px;
transition: all 0.2s;
-webkit-user-select: none;
-ms-user-select: none;

View File

@ -1850,10 +1850,7 @@ table.links-table {
}
.wp_themeSkin .mceSplitButton td a.mceAction {
padding-top: 6px;
padding-bottom: 6px;
padding-left: 6px;
padding-right: 3px;
padding: 6px 3px 6px 6px;
}
.wp_themeSkin .mceSplitButton td a.mceOpen,

View File

@ -36,8 +36,7 @@ h1, h2 {
clear: both;
color: #646970;
font-size: 24px;
padding: 0;
padding-bottom: 7px;
padding: 0 0 7px;
font-weight: 400;
}

View File

@ -386,8 +386,7 @@ ul.add-menu-item-tabs li {
/* Listings */
.nav-menus-php .list li {
display: none;
margin: 0;
margin-bottom: 5px;
margin: 0 0 5px;
}
.nav-menus-php .list li .menu-item-title {

View File

@ -1339,12 +1339,10 @@ i.mce-i-wp_code:before {
#wp_delimgbtn,
#wp_editgallery,
#wp_delgallery {
border-color: #8c8f94;
background-color: #f0f0f1;
margin: 2px;
padding: 2px;
border-width: 1px;
border-style: solid;
border: 1px solid #8c8f94;
border-radius: 3px;
}