this post was submitted on 02 Apr 2024
13 points (88.2% liked)

CSS

594 readers
1 users here now

founded 2 years ago
MODERATORS
top 9 comments
sorted by: hot top controversial new old
[–] Mathprogrammer1@sh.itjust.works 1 points 1 year ago (2 children)
[–] spartanatreyu@programming.dev 7 points 1 year ago (2 children)

Let me reverse that question and ask: Why use Sass?

[–] Mathprogrammer1@sh.itjust.works 2 points 1 year ago (1 children)

It has variables as well as modules, easily nestable definitions, and inheritance so that you can have base classes

[–] spartanatreyu@programming.dev 2 points 1 year ago

CSS has variables, modules and nesting.

By inheritance, do you mean the extends keyword? Because if so, it just seems like going further down the misguided BEM path instead of picking better selectors.

[–] Maven@lemmy.world 2 points 1 year ago (2 children)

Sass is lovely. I love being able to split my CSS into multiple files in the same way I would split the rest of my code. It's really nice for making more maintainable CSS on larger projects.

My portfolio would've been hell to make without SASS helping with the organization.

[–] spartanatreyu@programming.dev 1 points 1 year ago

CSS can already be split into multiple files though.

So why not just use CSS?

[–] Dirk@lemmy.ml 1 points 1 year ago

Sass is to CSS what jQuery is to Javascript.

[–] Dirk@lemmy.ml 1 points 1 year ago

The same reason you don't start new projects using jQuery.

[–] stevedidwhat_infosec 1 points 1 year ago

Seems like a cool website, added to my list thanks!