Great tutorial, I like that you've also made a caution about the excessive nesting.
In my work I avoid styling elements by #id's. Usually I use them only as anchors.
Also a quick note about naming. For example you've used .sidebar-list-link.
I prefer to avoid this kind of "nesting" in naming as well and use only one level of nesting. So I would do .sidebar and .sidebar-list. And .list maybe with .for-sidebar modifier with .list-link. Basically I would follow a bit modified version of BEM methodology.
Just an addition: I've been using stylelint and stylelint-config-sass-guidelines to keep my SASS files in check and you can also configure it to set a maximum nesting depth.
Hey, My name is BethBerry, I am a Training director, I have 5 years experience.I current time read new articles like banishing negativity spells etc.this is very good and knowledgeable for all of us.
Bonjour, je suis photographe d'art. et toutes mes études terminées depuis l'Australie. La photographie est mon passe-temps. Je suis juste allé dans un nouvel endroit pour la photographie.
Great article! Another use for the ampersand that people might find useful would be to reference parent selectors with the ampersand at the end.
Very powerful!
Awesome!!! Thanks for sharing this Lynne.
Great tutorial. A fantastic tip on this:
Never thought about doing that.
Thank you😊
Great tutorial, I like that you've also made a caution about the excessive nesting.
In my work I avoid styling elements by
#id's. Usually I use them only as anchors.Also a quick note about naming. For example you've used
.sidebar-list-link.I prefer to avoid this kind of "nesting" in naming as well and use only one level of nesting. So I would do
.sidebarand.sidebar-list. And.listmaybe with.for-sidebarmodifier with.list-link. Basically I would follow a bit modified version of BEM methodology.Thanks for the addition. 😊😊
Well explained.
Just an addition: I've been using stylelint and stylelint-config-sass-guidelines to keep my SASS files in check and you can also configure it to set a maximum nesting depth.
That's awesome. I'll look at them. Thanks for sharing.
what does the
&do when it is before or after a nestedclassorid??Nesting with SASS does not seem to work for me? banishing negativity spells
Should you nest everything in SASS? comment rendre un homme amoureux