[themes] Modules CSS styles...

Trae McCombs occy at occy.net
Fri Dec 2 18:20:14 UTC 2005


Darrel O'Pry wrote:
<snip>
> Well the idea of sensible is a consensus of whats right and a best
> practices page :)... Not really a standard, but a set of suggested
> guidelines would be very nice.

Right...

> Not sure if this is really on topic, since I'm coming in the tail end of
> the conversation.
> 
> Personally I think there should be a set of standard css classes....
> something like...
>

Actually, Eric Meyers discussed this concept here:
http://meyerweb.com/eric/thoughts/2004/06/26/structural-naming/

We actualy have a lot of these implemented in the CivicSpace Theme.

> .bg-color-primary, .bg-color-compliment-1, .bg-color-compliment-2
> .text-color-primary, .text-color-compliment-1, .text-color-compliment-2
> .wrapper, .box, etc..
> 
> Someone with a better grasp of color theory, css, and drupal theming
> would probably be a better candidate for working that out...    

I'm all for trying to stay within standards without trying to create our 
own proprietery Drupal naming scheme.

> Then suggest to module developers where/how these default classes should
> be used, and to include a module-specific class in the class tag...
> 
> ie) 
> <div class='.box .box-$module'>

class=".box" ?  I didn't know that was legal?

Trae

> </div>
> 
> Along with encouraging heavy use of span and div in place of traditional
> html elements.
> 
> 
> 
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes


-- 
Trae "occy" McCombs || http://occy.net/
       Founder - Themes.org // Linux.com
     CivicSpaceLabs - http://civicspacelabs.org/


More information about the themes mailing list