Prefer the .scss
syntax over the .sass
syntax.
Every project should start with the .scss-lint.yml
present here. It hews
fairly closely to the default configuration with a few exceptions. The default
configuration is explained on the project's linters page.
Notable exceptions:
- use the BEM convention for selectors
- prefer double quotes
Use space between neighboring nested blocks, but not before or after.
.btn {
display: inline-block;
font-size: 15px;
&:hover {
box-shadow: 0 5px 7px $box-shadow-color;
}
&:active {
box-shadow: 0 1px 3px $box-shadow-color;
color: $green-dark;
}
}
.btn {
display: inline-block;
font-size: 15px;
&:hover {
box-shadow: 0 5px 7px $box-shadow-color;
}
&:active {
box-shadow: 0 1px 3px $box-shadow-color;
color: $green-dark;
}
}
.btn {
display: inline-block;
font-size: 15px;
&:hover {
box-shadow: 0 5px 7px $box-shadow-color;
}
&:active {
box-shadow: 0 1px 3px $box-shadow-color;
color: $green-dark;
}
}