SCSS is a stylesheet language created in 2006 by Hampton Lintorn-Catlin.
#412on PLDB | 18Years Old | 335kRepos |
body:before {
content: "Hello, world!";
}
body::before {
content: "Hello World";
}
$blue: #3bbfce;
$margin: 16px;
.content-navigation {
border-color: $blue;
color:
darken($blue, 9%);
}
.border {
padding: $margin / 2;
margin: $margin / 2;
border-color: $blue;
}
Feature | Supported | Example | Token |
---|---|---|---|
Mixins | ✓ | @mixin reset-list { margin: 0; padding: 0; list-style: none; } @mixin horizontal-list { @include reset-list; li { display: inline-block; margin: { left: -2px; right: 2em; } } } nav ul { @include horizontal-list; } | |
Strings | ✓ | "Hello world" | " |
Comments | ✓ | // A comment | |
MultiLine Comments | ✓ | /* A comment */ | /* */ |
Line Comments | ✓ | // A comment | // |
Semantic Indentation | ✓ |