[wp-trac] Re: [WordPress Trac] #7967: Small cleanup in admin part CSS files

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 26 18:03:00 GMT 2008


#7967: Small cleanup in admin part CSS files
-------------------------+--------------------------------------------------
 Reporter:  Simek        |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  low          |    Milestone:  2.7      
Component:  Template     |      Version:  2.7      
 Severity:  minor        |   Resolution:           
 Keywords:  patch CSS    |  
-------------------------+--------------------------------------------------
Comment (by azaozz):

 Thanks for the patch. We will need to do a lot of cleaning of all css
 files to remove all old/not used styles left over from 2.6 and early
 Crazyhorse.

 One thing though: can you leave selectors with only one setting be on
 multiple lines, so instead of

 {{{
 .widefat { border-color: #dfdfdf; }
 }}}

 which actually is harder to read, make it:

 {{{
 .widefat {
     border-color: #dfdfdf;
 }
 }}}

 using a tab to indent it.

 Also when specifying one setting for multiple selectors, the preferred
 format is to put each selector on a new line (much easier to read) like
 that:


 {{{
 .wp_themeSkin a:link,
 .wp_themeSkin a:visited,
 .wp_themeSkin a:active {
         color: #000;
 }
 }}}

 (I know there's some software that would format css files automatically.)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7967#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list