[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 Dec 23 17:36:22 UTC 2020


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

Comment (by sabernhardt):

 Besides jquery-ui-dialog.css, I found one additional instance that can
 combine all three properties into one line:
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/css/editor.css?rev=49309&marks=1339-1350#L1339 wp-
 includes/css/editor.css]

 {{{
 #wp_editimgbtn,
 #wp_delimgbtn,
 #wp_editgallery,
 #wp_delgallery {
         background-color: #eee;
         margin: 2px;
         padding: 2px;
         border: 1px solid #999;
         border-radius: 3px;
 }
 }}}

 Border styles like `.contextual-help-tabs li` (comment:5) could combine to
 two lines, if desired.

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


More information about the wp-trac mailing list