A css discussion...
jacob.farber at utoronto.ca
Tue Aug 5 16:39:17 UTC 2008
Yes, the example I wrote was oversimplified....
Eli Cochran wrote:
> Thinking a little more about this pattern:
>> What about a more semantic and recycleable approach, where you divide
>> class names into roles (Selector, State, Presentation)?
>> <div class="mySelector state_disabled theme_redAndBlue"></div>
> Seems that the Presentation should always be part of the container not
> part of the selector, so the structure is:
> <div class="theme">
> <div class="selector state">foo</div>
> this would simplify the markup as you would not need to repeat the
> theme for each element and it also means that you only have to change
> one place to switch to a different theme.
> - Eli
> . . . . . . . . . . . . . . . . .
> . .
> Eli Cochran
> user interaction developer
> ETS, UC Berkeley
More information about the fluid-work