cmpr6q
Last Updated: February 25, 2016
·
496
· viczam
Fe757c8b244660deb28c3ef6330cb51e

sass nesting

do not nest you selectors more than 3 or 4 levels deep

Say Thanks
Respond

3 Responses
Add your response

2690
Cory simmons 700

Why? I've heard this a few times. Does it decrease compiling time or just make the code hard to manage?

over 1 year ago ·
2695
Profile

Personally, it just makes certain things harder to override at times. Since nesting is so easy, it gets out of hand quickly. I've been trying a lot harder to make my css smacss, so it's already cut down on nesting.

over 1 year ago ·
18781
C740358b2cce341557a23ffb981aacf2

@corysimmons, hard to manage. It’s just a common sense rule to keep the specificity of your selectors to a minimum.

over 1 year ago ·