Closed Avengio closed 12 years ago
This makes perfect sense to me.
Plus, I’m all for tidying things up.
I would like to get Chris’ opinion on this, as most of the basis stylee and selectors are based on his Super Ginormous template.
I ran the current stylesheets through CSS Lint and it seems like we can easily remove element names from a whole bunch of the “overqualified” selectors.
CSS Lint also caught a couple of silly parsing errors in the advanced layout stylesheet.
rAWk. Thank you Grant for looking further into it.
Okey dokey.
I just committed changes to both of the advanced stylesheets, removing the “overqualified” selectors that were picked up by CSS Lint. Everything seem to be rendering the same as before — at least in Safari and Firefox. No guarantees with IE.
https://github.com/splorp/tersus/commit/9a95716d517895307e6754941e7950b53a957819
In the flavoured stylesheets I've noticed that html elements are sometimes prepended to the ID or class that is being targeted:
section#content article
This rule specifically ties the
#content
ID to asection
element unnecessarily and creates a dependency when customizing the markup of a project. We could simplify the rule to:#content article
This way
#content
blocks can be moved into adiv
,section
, orarticle
depending on how the page is authored and the resulting DOM changes do not break style. It also optimizes stylesheet performance and reduces specificity.Thoughts?