[wp-trac] [WordPress Trac] #10214: Further formatting separation in Kubrick theme

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 19 02:53:13 GMT 2009


#10214: Further formatting separation in Kubrick theme
--------------------------+-------------------------------------------------
 Reporter:  brettz95      |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Formatting    |     Version:            
 Severity:  minor         |    Keywords:            
--------------------------+-------------------------------------------------
 I was told to report this issue here (the theme is for one of the
 defaults).

 Although I understand HTML5 is considering keeping the <small/> tag for
 the sake of things like legalese fine print, when text is made small
 merely due to a stylistic choice, it is considered best practice to
 separate the styling in the stylesheet. This lets structural code stay
 correct even if we wish to make our text no longer small.

 For the Kubrick theme, in style.css, I'd suggest adding the following
 (since span won't inherit the current color otherwise):

 .permlink {
     color:#777777;
 }

 and then add .permlink to the small declaration (or use it in place of
 'small' if you're not using 'small' elsewhere):

 small, .permlink {
     font-family:Arial,Helvetica,Sans-Serif;
     font-size:0.9em;
     line-height:1.5em;
 }

 Then in index.php (in place of where <small/> was used):
 <span class="permlink"><?php the_time('F jS, Y') ?> <!-- by <?php
 the_author() ?> --></span>

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10214>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list