]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Sass lint: use "stroustrup" as brace style convention
authorNicolas Coden <nicolas@ncoden.fr>
Tue, 15 Nov 2016 17:37:40 +0000 (18:37 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Tue, 15 Nov 2016 18:16:39 +0000 (19:16 +0100)
commitda7ad06641e63148b7c6d85bc6f175d0d868a0ea
treef493cc1574c514526a3191f86bd293e673bfd1b1
parent08e761041733079ab91ceec657e712f4f2c06221
Sass lint: use "stroustrup" as brace style convention

Sass lint: use "stroustrup" instead of "1TBS" as brace style convention.
See: https://en.wikipedia.org/wiki/Indent_style

Pros:
- Easily add or remove lines within a `@if`/`@else if`/`@else` block,
without having to rearrange the braces.
- Able to add comments that describe a condition (`@if (...)`, `@else
if (...)` or `@else`) or the whole conditional block.
- Clearly separate the different parts of the conditional block.

Cons:
- Not commonly used
.sass-lint.yml
scss/components/_dropdown-menu.scss
scss/grid/_gutter.scss
scss/util/_color.scss
scss/util/_value.scss