Why I love “describing in the browser” with OOCSS-Inspired Microclasses
1–10 of 18 posts
Re: Why I love “describing in the browser” with OOCSS-Inspired Microclasses
#2Re: Why I love “describing in the browser” with OOCSS-Inspired Microclasses
#3What the author is describing is like a shorthand for style attributes.
Re: Why I love “describing in the browser” with OOCSS-Inspired Microclasses
#4Also - let's have the debate about the practical drawbacks people are likely to discover when they use lots of presentational classes in their markup.
Re: Why I love “describing in the browser” with OOCSS-Inspired Microclasses
#5This is massively mixing presentation with content. I know that doesn't matter to some (many?) people but I wonder if a compromise could be found with building up classes with SASS mixins that keeps your markup clean but gets some of the maintainability benefits of this approach? Also - let's have the debate about the practical drawbacks people are likely to discover when they use lots of presentational classes in th…
> (These days most of my microclasses are tied to SASS variables or mixins.)
Re: Why I love “describing in the browser” with OOCSS-Inspired Microclasses
#6This is massively mixing presentation with content. I know that doesn't matter to some (many?) people but I wonder if a compromise could be found with building up classes with SASS mixins that keeps your markup clean but gets some of the maintainability benefits of this approach? Also - let's have the debate about the practical drawbacks people are likely to discover when they use lots of presentational classes in th…
Re: Why I love “describing in the browser” with OOCSS-Inspired Microclasses
#7If, tomorrow, you decide that all tooltips need to change their style the amount of work you have to do is O(N) in the number of tooltip elements you have, whereas if you did this correctly, you would only need to change .tooltip
In general, your CSS classes should relate to the semantic meaning of an element -- .important, .aside, .help -- and not the visual presentation of an element -- .blue, .padded etc. If all important elements need to change from blue to orange, it's easier if their class is .important (one change) and not .blue (where either you modify all important elements or you define .blue as being orange-colored).