[buddypress-trac] [BuddyPress] #2468: Additional css classes for body tag

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Jun 26 17:08:49 UTC 2010


#2468: Additional css classes for body tag
-------------------------+--------------------------------------------------
 Reporter:  hnla         |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  minor        |   Milestone:  1.3
Component:  Core         |    Keywords:     
-------------------------+--------------------------------------------------
 At the moment bp-core-templatetags.php assigns a number of classes to be
 added to the body tag.

 Issue is that these classes are all a tad random or rather they tend to
 output a token that is very specific to the bp_is_*, this results in
 having heavy handed grouping of selectors to cover simple rules and adds
 bloat to the stylesheet.

 Proposal is that overall it would benefit styling if there were some more
 generic classes to cover general sections of BP i.e in any screen that
 comes under the members account area body would carry the token 'my-
 account' I have modified my templatetags file thus:

 {{{ if ( bp_is_settings_component() && !bp_is_blog_page()  )
       $bp_classes[] = 'my-account settings';
     if ( bp_is_user_friends() )
       $bp_classes[] = 'my-account my-friends';
 }}}
 etc, for all items that fall under the member account group of screens.

 Ideally I would output an id token on probably the html tag which is where
 I normally denote major sections or pages that group logically.

 I have set this ticket to 'minor' however would hope that it's also a
 relatively minor additional piece of work that does make theming less of a
 chore.

 As it is I have not been able to locate where the followers/following
 plugin manages to declare their tokens  so have to add an extra
 unnecessary set of grouped selectors to ensure these screens pick up the
 rulesets.


 }}}


 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2468>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list