An introduction to LESS, and comparison to Sass | Smashing Coding - 0 views
-
The only difference in variables between LESS and Sass is that, while LESS uses @, Sass uses $. There are some scope differences as well, which I’ll get to shortly.
-
With Sass, you declare @mixin prior to the style to identify it as a mixin. Later, you declare @include to call it.
-
Selector Inheritance Here’s something not provided in LESS. With this ability, you can append a selector to a previously established selector without the need to add it in a comma-separated format. .menu { border: 1px solid #ddd; } .footer { @extend .menu; } /* will render like so: */ .menu, .footer { border: 1px solid #ddd; }
- ...8 more annotations...