- Install Ruby
- Open Command Prompt With Ruby
Install
$ gem install sass
Compile SASS
$ sass style.scss
Create a version of CSS
$ sass style.scss:style.css
Create a version of CSS and alterate in RunTime
$ sass --watch style.scss:style.css
https://tympanus.net/codrops/css_reference/
https://developer.mozilla.org/pt-BR/docs/Web/CSS/CSS_Reference
How do I make my CSS scalable and maintainable? Itβs a concern for every front-end developer. ITCSS has an answer.
ITCSS (SCALABLE AND MAINTAINABLE CSS ARCHITECTURE) stands for Inverted Triangle CSS and it helps you to organize your project CSS files in such way that you can better deal with (not always easy-to-deal with) CSS specifics like global namespace, cascade and selectors specificity.
Those layers are as follows:
- Settings β used with preprocessors and contain font, colors definitions, etc.
- Tools β globally used mixins and functions. Itβs important not to output any CSS in the first 2 layers.
- Generic β reset and/or normalize styles, box-sizing definition, etc. This is the first layer which generates actual CSS.
- Elements β styling for bare HTML elements (like H1, A, etc.). These come with default styling from the browser so we can redefine them here.
- Objects β class-based selectors which define undecorated design patterns, for example media object known from OOCSS
- Components β specific UI components. This is where majority of our work takes place and our UI components are often composed of Objects and Components
- Trumps β utilities and helper classes with ability to override anything which goes before in the triangle, eg. hide helper class