July 2018
Beginner
350 pages
8h 34m
English
Less was introduced 3 years later than Sass, in 2009, and similar to Sass, Less was also built in the Ruby programming language.
If we compare these two CSS preprocessors, they have almost the same features, but Less's idea was to create as much similar syntax with as much pure CSS as it could. They actually achieved it, and what is more interesting is that you can even write pure CSS on Less, and everything will work fine since Less accepts any pure CSS code as valid.
You can see the similarity between pure CSS and Less in the following example:
@dark-color: #4a4a4a;@light-color: #f9f9f9;@side-color: #eee;body { color: @dark-color;}header, footer { background-color: @dark-color; color: @light-color;}main { background: @light-color ...