Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Sass is good? [closed]

Tags:

css

sass

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

like image 653
hopper Avatar asked Jul 25 '12 16:07

hopper


People also ask

Is Sass still relevant 2022?

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.

Why is Sass the best?

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.

Why Sass is better than LESS?

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.


1 Answers

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/

like image 156
loeschg Avatar answered Sep 22 '22 21:09

loeschg