Less (stylesheet language)

From Wiki @ Karl Jones dot com
Revision as of 07:52, 17 June 2015 by Karl Jones (Talk | contribs) (Mixins to do)

Jump to: navigation, search

Less (sometimes stylized as LESS) is a dynamic style sheet language that can be compiled into Cascading Style Sheets (CSS), or can run on the client-side and server-side.

Less is influenced by Sass and has influenced the newer "SCSS" syntax of Sass, which adapted its CSS-like block formatting syntax.

Less is open source.

Its first version was written in Ruby, however in the later versions, use of Ruby has been deprecated and replaced by JavaScript.

The indented syntax of Less is a nested metalanguage, as valid CSS is valid Less code with the same semantics.

Less provides the following mechanisms:

  • Variables
  • Nesting
  • Mixins
  • Operators
  • Functions

The main difference between Less and other CSS precompilers being that Less allows real-time compilation via less.js by the browser.

External links