From: Основы Sass
Install Sass:
sudo npm install -g sass
Compile:
sass sass/style.scss css/style.css
- Variables
- Nesting
- Mixin
- Import
- Extend
- Math operation
Writing CSS is fun in itself, but when a style sheet becomes huge, it becomes difficult to maintain it. And in this case, the preprocessor will help us. Sass allows you to use functions that are not available in the CSS itself, for example, variables, nesting, mixins, inheritance, and other nice things that return the convenience of writing CSS.
CSS
From: Основы Sass
Install Sass:
sudo npm install -g sass
Compile:
sass sass/style.scss css/style.css