[wp-trac] [WordPress Trac] #52148: CSS Optimization: Use shorthand 'border' value in wp-admin/css/admin-menu.css

WordPress Trac noreply at wordpress.org
Wed Jan 13 23:40:31 UTC 2021


#52148: CSS Optimization: Use shorthand 'border' value in wp-admin/css/admin-
menu.css
----------------------------+----------------------------------------
 Reporter:  ankitmaru       |       Owner:  SergeyBiryukov
     Type:  enhancement     |      Status:  reviewing
 Priority:  normal          |   Milestone:  5.7
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  ui, css, coding-standards
----------------------------+----------------------------------------
Changes (by audrasjb):

 * keywords:  has-patch commit => has-patch


Comment:

 I'm really sorry @ankitmaru but I have few more requests:
 - in `common.css` replace `padding: 10px 26px 99999px 26px;` with
 `padding: 10px 26px 99999px;` / and `padding: 16px 16px 99999px 16px;`
 with `padding: 16px 16px 99999px;`
 - In `customize-controls.css` replace `padding: 0px 0px 7px 0px;` with
 `padding: 0 0 7px;`
 - In `install.css` replace `padding: 0px 0px 7px 0px;` with `padding: 0 0
 7px;`
 - In `nav-menus.css` replace `margin: 0px 0px 5px 0px;` with `margin: 0 0
 5px;`

 See MDN Docs for further informations:
 https://developer.mozilla.org/en-US/docs/Web/CSS/padding#syntax

 > The padding property may be specified using one, two, three, or four
 values.
 >
 > - When one value is specified, it applies the same padding to all four
 sides.
 > - When two values are specified, the first padding applies to the top
 and bottom, the second to the left and right.
 > - When three values are specified, the first padding applies to the top,
 the second to the right and left, the third to the bottom.
 > - When four values are specified, the paddings apply to the top, right,
 bottom, and left in that order (clockwise).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52148#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list