I still don't understand what are the real advantages of Sass : http://sass-lang.com/ . Can you guys help me ? In which situations is good to use it and how should it be used to leverage the CSS? thanks
Even though nesting is coming to CSS, the Sass version is here today and it has more features than the native CSS nesting will have. For instance, we don't need the & in Sass, making it feel more intuitive. And we can nest media queries inside selectors. And we can use nesting to generate incremental class names.
SASS allows you to use a nested syntax, which is code contained within another piece of code that performs a wider function. In SASS, nesting allows a cleaner way of targeting elements. In other words, you can nest your HTML elements by using CSS selectors.
The main advantage of SASS over LESS is that it provides loops and case distinctions which are known to most programming languages hence reducing the repetitions and making the job done easily, it is based on Ruby, while LESS gives users a chance to activate mixins when certain situations occur but uses JavaScript.
This is a good article I came across from HackerNews that helped educate me on the advantages of these sort of preprocessing langauges. SASS and LESS are compared, but it provides a good look at why you might use them.
http://css-tricks.com/sass-vs-less/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With