Reputation: 509
We can use sass variables to store some styles and we can nest via sass. Yes they are good but we can achieve those by ordinary css3? We can use classes and CSS selectors instead of nesting. Is there anything in sass that we can only achieve via sass like that? I'm eager to see the advantages thank you.
Upvotes: 0
Views: 235
Reputation:
Is there anything in sass that we can only achieve via sass?
Since SASS compiles into CSS, by definition, there is nothing that can be achieved only via SASS.
SASS is merely a heavy layer of syntactic sugar on top of CSS.
Upvotes: 2
Reputation: 12176
mixins, loops, operators, import, modularity there are lot of features in sass which make it powerful.
There are pitfalls too, overnesting rules and inheritance. If not written properly then 10kb code will easily double to 20.
Upvotes: 0