Sass is an extension of CSS that adds powerful features like variables, nested rules, mixins and imports. It has two syntax options, SCSS and Sass, that allow for flexible code organization. The Compass framework provides pre-built mixins and functions to streamline styling tasks when used with Sass.
Convert to study guideBETA
Transform any presentation into a summarized study guide, highlighting the most important points and key insights.
2. Sass (Syntactically Awesome
StyleSheets)
? Sass is an extension of CSS that adds power
and elegance to the basic language. It allows
you to use variables, nested
rules, mixins, inline imports, and more, all
with a fully CSS-compatible syntax. Sass helps
keep large stylesheets well-organized, and get
small stylesheets up and running quickly,
particularly with the help of Compass library.
4. Syntax
? *scss (Sassy CSS) - este o extensie la fisierele de
tip *css, asta insemnand ca orice fisier css valid
este si un *scss valid.
? *sass ¨C este o alta extensie folosita, foloseste
indentarea pentru gruparea selectorilor, nu are
nevoie de ¡°{¡± sau ¡°;¡± fiind mai usor de scris si
inteles decat *css.
Sass are chiar si un ¡°tool¡± de convertire a
acestora in ambele sensuri:
$ sass-convert style.scss style.sass