Skip to content

Commit

Permalink
Coding Standards: Apply coding standards on CSS.
Browse files Browse the repository at this point in the history
Remove units when the value is zero. Combine redundant values in shorthand declarations.
This was generated with `stylelint --fix` and a custom config (see #53866).

Props ankitmaru, audrasjb, pbiron, ayeshrajans, hareesh-pillai, netweb, mukesh27.
Fixes #53866.



git-svn-id: https://develop.svn.wordpress.org/trunk@51727 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
ryelle committed Sep 2, 2021
1 parent 40edc2a commit d6851a3
Show file tree
Hide file tree
Showing 22 changed files with 96 additions and 96 deletions.
10 changes: 5 additions & 5 deletions src/wp-admin/css/admin-menu.css
Expand Up @@ -39,7 +39,7 @@
.icon16 {
height: 18px;
width: 18px;
padding: 6px 6px;
padding: 6px;
margin: -6px 0 0 -8px;
float: left;
}
Expand Down Expand Up @@ -344,7 +344,7 @@
}

#adminmenu .wp-menu-image img {
padding: 9px 0 0 0;
padding: 9px 0 0;
opacity: 0.6;
filter: alpha(opacity=60);
}
Expand Down Expand Up @@ -487,7 +487,7 @@ ul#adminmenu > li.current > a.current:after {
#adminmenu li.wp-menu-separator {
height: 5px;
padding: 0;
margin: 0 0 6px 0;
margin: 0 0 6px;
cursor: inherit;
}

Expand All @@ -502,7 +502,7 @@ ul#adminmenu > li.current > a.current:after {
font-weight: 400;
font-size: 14px;
padding: 5px 4px 5px 11px;
margin: -7px 0px 4px -5px;
margin: -7px 0 4px -5px;
border-width: 3px 0 3px 5px;
border-style: solid;
border-color: transparent;
Expand Down Expand Up @@ -653,7 +653,7 @@ li#wp-admin-bar-menu-toggle {
.auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu,
.auto-fold #adminmenu a.menu-top:focus + .wp-submenu,
.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu {
top: 0px;
top: 0;
left: 36px;
}

Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/css/color-picker.css
Expand Up @@ -11,7 +11,7 @@
/* Needs higher specificiity. */
.wp-picker-container .wp-color-result.button {
min-height: 30px;
margin: 0 6px 6px 0px;
margin: 0 6px 6px 0;
padding: 0 0 0 30px;
font-size: 11px;
}
Expand Down
22 changes: 11 additions & 11 deletions src/wp-admin/css/common.css
Expand Up @@ -417,7 +417,7 @@ code {

kbd,
code {
padding: 3px 5px 2px 5px;
padding: 3px 5px 2px;
margin: 0 1px;
background: #f0f0f1;
background: rgba(0, 0, 0, 0.07);
Expand Down Expand Up @@ -582,7 +582,7 @@ code {
font-size: 23px;
font-weight: 400;
margin: 0;
padding: 9px 0 4px 0;
padding: 9px 0 4px;
line-height: 1.3;
}

Expand Down Expand Up @@ -957,7 +957,7 @@ a#remove-post-thumbnail:hover {
}

#minor-publishing-actions {
padding: 10px 10px 0 10px;
padding: 10px 10px 0;
text-align: right;
}

Expand Down Expand Up @@ -1232,7 +1232,7 @@ th.action-links {

.filter-group .filter-group-feature label {
display: block;
margin: 14px 0px 14px 23px;
margin: 14px 0 14px 23px;
}

.filter-drawer .buttons {
Expand Down Expand Up @@ -1609,7 +1609,7 @@ form.upgrade {
form.upgrade .hint {
font-style: italic;
font-size: 85%;
margin: -0.5em 0 2em 0;
margin: -0.5em 0 2em;
}

.update-php .spinner {
Expand Down Expand Up @@ -1707,7 +1707,7 @@ p.auto-update-status {
/* screen options and help tabs revert */
#screen-meta {
display: none;
margin: 0 20px -1px 0px;
margin: 0 20px -1px 0;
position: relative;
background-color: #fff;
border: 1px solid #c3c4c7;
Expand Down Expand Up @@ -3285,7 +3285,7 @@ img {
.tree-folder > .current-file::before {
left: 4px;
height: 15px;
width: 0px;
width: 0;
border-left: none;
top: 3px;
}
Expand Down Expand Up @@ -3380,7 +3380,7 @@ img {
}

#templateside li.howto {
padding: 6px 12px 12px 12px;
padding: 6px 12px 12px;
}

.theme-editor-php .highlight {
Expand Down Expand Up @@ -3432,7 +3432,7 @@ img {
}

.widget-top .widget-action .toggle-indicator:before {
padding: 1px 2px 1px 0px;
padding: 1px 2px 1px 0;
border-radius: 50%;
}

Expand Down Expand Up @@ -3827,7 +3827,7 @@ img {
.wrap div.updated,
.wrap div.error,
.media-upload-form div.error {
margin: 20px 0 10px 0;
margin: 20px 0 10px;
padding: 5px 10px;
font-size: 14px;
line-height: 175%;
Expand Down Expand Up @@ -3937,7 +3937,7 @@ img {
left: -8px;
}
.tree-folder > li::before {
top: 0px;
top: 0;
height: 13px;
}
.tree-folder > .current-file::before {
Expand Down
24 changes: 12 additions & 12 deletions src/wp-admin/css/customize-controls.css
Expand Up @@ -743,7 +743,7 @@ body.trashing #publish-settings {
}

.customize-section-title {
margin: -12px -12px 0 -12px;
margin: -12px -12px 0;
border-bottom: 1px solid #dcdcde;
background: #fff;
}
Expand All @@ -766,11 +766,11 @@ div.customize-section-description p:last-child {

#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child {
border-bottom: 1px solid #dcdcde;
padding: 12px 12px 12px 12px;
padding: 12px;
}

.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child {
padding: 12px 12px 13px 12px;
padding: 12px 12px 13px;
}

.customize-section-title h3,
Expand Down Expand Up @@ -1140,7 +1140,7 @@ p.customize-section-description {
*/

#customize-controls .customize-control-notifications-container { /* Scoped to #customize-controls for specificity over notification styles in common.css. */
margin: 4px 0 8px 0;
margin: 4px 0 8px;
padding: 0;
cursor: default;
}
Expand All @@ -1153,7 +1153,7 @@ p.customize-section-description {

#customize-controls .customize-control-notifications-container li.notice {
list-style: none;
margin: 0 0 6px 0;
margin: 0 0 6px;
padding: 9px 14px;
overflow: hidden;
}
Expand Down Expand Up @@ -1455,7 +1455,7 @@ p.customize-section-description {
}

.customize-control-header .header-view:last-child {
margin-bottom: 0px;
margin-bottom: 0;
}

/* Convoluted, but 'outline' support isn't good enough yet */
Expand Down Expand Up @@ -1691,7 +1691,7 @@ p.customize-section-description {
border-bottom: 1px solid #dcdcde;
border-left: none;
border-right: none;
margin: 0 0 15px 0;
margin: 0 0 15px;
padding-right: 100px; /* Space for the button */
}

Expand Down Expand Up @@ -1893,7 +1893,7 @@ p.customize-section-description {
}

.control-panel-themes .customize-themes-notifications .notice {
margin: 0 0 25px 0;
margin: 0 0 25px;
}

.customize-themes-full-container .customize-themes-section {
Expand All @@ -1907,7 +1907,7 @@ p.customize-section-description {

.control-section .customize-section-text-before {
padding: 0 0 8px 15px;
margin: 15px 0 0 0;
margin: 15px 0 0;
line-height: 16px;
border-bottom: 1px solid #dcdcde;
color: #50575e;
Expand Down Expand Up @@ -2128,7 +2128,7 @@ p.customize-section-description {
position: relative;
left: 0;
width: 100%;
margin: 0 0 25px 0;
margin: 0 0 25px;
}
.filter-drawer {
top: 46px;
Expand Down Expand Up @@ -2238,7 +2238,7 @@ p.customize-section-description {
width: 26px;
display: block;
line-height: 2.3;
padding: 0 8px 0 8px;
padding: 0 8px;
border-right: 1px solid #dcdcde;
}

Expand Down Expand Up @@ -2399,7 +2399,7 @@ body.cheatin h1 {
color: #50575e;
font-size: 24px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
margin: 30px 0 0 0;
margin: 30px 0 0;
padding: 0 0 7px;
}

Expand Down
20 changes: 10 additions & 10 deletions src/wp-admin/css/customize-nav-menus.css
Expand Up @@ -11,7 +11,7 @@
#customize-theme-controls .customize-section-title-nav_menus-heading,
#customize-theme-controls .customize-section-title-menu_locations-heading,
#customize-theme-controls .customize-section-title-menu_locations-description {
padding: 0 12px 0 12px;
padding: 0 12px;
}

#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description {
Expand Down Expand Up @@ -100,7 +100,7 @@
.wp-customizer .menu-item-settings .description-thin {
width: 100%;
height: auto;
margin: 0 0 8px 0;
margin: 0 0 8px;
}

.wp-customizer .menu-item-settings input[type="text"] {
Expand Down Expand Up @@ -185,7 +185,7 @@
}

.wp-customizer .menu-settings dl {
margin: 12px 0 0 0;
margin: 12px 0 0;
padding: 0;
}

Expand Down Expand Up @@ -322,7 +322,7 @@
#available-menu-items .accordion-section-title .toggle-indicator:before {
content: "\f140";
display: block;
padding: 1px 2px 1px 0px;
padding: 1px 2px 1px 0;
speak: never;
border-radius: 50%;
color: #787c82;
Expand Down Expand Up @@ -581,16 +581,16 @@
}

#available-menu-items .accordion-section-content .available-menu-items-list {
margin: 0 0 45px 0;
padding: 1px 15px 15px 15px;
margin: 0 0 45px;
padding: 1px 15px 15px;
}

#available-menu-items .accordion-section-content .available-menu-items-list:only-child { /* Types that do not support new items for the current user */
margin-bottom: 0;
}

#new-custom-menu-item .accordion-section-content {
padding: 0 15px 15px 15px;
padding: 0 15px 15px;
}

#available-menu-items .menu-item-tpl {
Expand Down Expand Up @@ -690,7 +690,7 @@
position: absolute;
left: 0;
top: 60px; /* below title div / search input */
bottom: 0px; /* 100% height that still triggers lazy load */
bottom: 0; /* 100% height that still triggers lazy load */
max-height: none;
width: 100%;
padding: 1px 15px 15px;
Expand Down Expand Up @@ -795,7 +795,7 @@ body.adding-menu-items #customize-preview iframe {

#create-new-menu-submit {
float: right;
margin: 0 0 12px 0;
margin: 0 0 12px;
}

.menu-delete-item {
Expand All @@ -805,7 +805,7 @@ body.adding-menu-items #customize-preview iframe {
}

.assigned-menu-locations-title p {
margin: 0 0 8px 0;
margin: 0 0 8px;
}

li.assigned-to-menu-location .menu-delete-item {
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/css/customize-widgets.css
Expand Up @@ -81,7 +81,7 @@
}

.widget-inside {
padding: 1px 10px 10px 10px;
padding: 1px 10px 10px;
border-top: none;
line-height: 1.23076923;
}
Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/css/dashboard.css
Expand Up @@ -518,7 +518,7 @@ body #dashboard-widgets .postbox form .submit {

#dashboard_primary .rss-widget {
font-size: 13px;
padding: 0 12px 0;
padding: 0 12px;
}

#dashboard_primary .rss-widget:last-child {
Expand Down Expand Up @@ -599,7 +599,7 @@ body #dashboard-widgets .postbox form .submit {
color: #50575e;
background: #f6f7f7;
border-top: 1px solid #f0f0f1;
padding: 10px 12px 6px 12px;
padding: 10px 12px 6px;
}

#dashboard_right_now .sub h3 {
Expand Down Expand Up @@ -835,7 +835,7 @@ body #dashboard-widgets .postbox form .submit {
}

#activity-widget #the-comment-list .comment-item p.row-actions {
margin: 4px 0 0 0;
margin: 4px 0 0;
}

#activity-widget #the-comment-list .comment-item:first-child {
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/css/deprecated-media.css
Expand Up @@ -100,7 +100,7 @@ th {
width: 100%;
border: none;
text-align: justify;
margin: 0 0 1em 0;
margin: 0 0 1em;
padding: 0;
}

Expand Down

0 comments on commit d6851a3

Please sign in to comment.