-
Notifications
You must be signed in to change notification settings - Fork 3
specificity wars #2
Comments
I'm all for using less ID selectors. Much of that, when it comes to Can you clarify what you mean by only including normalization when it comes Best, Matt Thomas On Mon, Oct 10, 2011 at 10:40 AM, Cristina Solana <
|
By normalization, I mean basic resets for p, ul, etc, but never anything specific like: #id p {} or even .class p {}, anything that is different in a specific place other than general should be left to the custom markup. Cristina Solana Matt Thomas [email protected] wrote: I'm all for using less ID selectors. Much of that, when it comes to Can you clarify what you mean by only including normalization when it comes Best, Matt Thomas On Mon, Oct 10, 2011 at 10:40 AM, Cristina Solana <
Reply to this email directly or view it on GitHub: |
There shouldn't be any normalization targeting any IDs. Geez, I hope I The normalization is in the top portion of screen.css. Below it is the base That said, there is some basic style applied to some ID's, like in Best, Matt Thomas On Mon, Oct 10, 2011 at 11:07 AM, Cristina Solana <
|
Here are some examples: #column-group-alpha h3 { #column-group-alpha li { #column-group-alpha p { #column-group-beta h3 { #column-group-beta ul { #column-group-beta li { #column-group-beta p { I think we should be just doing this at the element level and not at a class or id level because of the weight it adds to specificity. Cheers, C On Monday, October 10, 2011 at 11:13 AM, Matt Thomas wrote:
|
Yep, I agree with dropping those declarations and going global :) Feel free That's all old stuff from the early days. Good catch! Best, Matt Thomas On Mon, Oct 10, 2011 at 7:47 PM, Cristina Solana <
|
We should consider using less id selectors and possibly, only including normalization when it comes to the box model in screen.css, it causes specificity wars when working with custom themes.
For example:
#column-group-beta p {padding: 10px 0 0 0;}
makes it so that I have to do something like:
#column-group-beta .some-class-here p {padding: 0;}
We should just have a base style for p {} that can then be overriden in custom themes like so:
p {}
or if more specificity needed something like:.foobar p {}
should sufficeThe text was updated successfully, but these errors were encountered: