Style Switcher
Current time: 08-02-2012, 10:23 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Less - An Extension to CSS
26-06-2009, 09:51 AM
Post: #1
Less - An Extension to CSS

Less

Less is Leaner css. Less extends css by adding: variables, mixins, operations and nested rules. Less uses existing css syntax. This means you can migrate your current .css files to .less in seconds and there is virtually no learning curve.

Variables
Variables allow you to specify widely used values in a single place, and then re-use them throughout the style sheet, making global changes as easy as changing one line of code.

Mixins
Mixins allow you to embed all the properties of a class into another class by simply including the class name as one of its properties. It’s just like variables, but for whole classes.

Nested Rules
Rather than constructing long selector names to specify inheritance, in Less you can simply nest selectors inside other selectors. This makes inheritance clear and style sheets shorter.

Operations
Are some elements in your style sheet proportional to other elements? Operations let you add, subtract, divide and multiply property values and colors, giving you the power to do create complex relationships between properties.

Requirements: Ruby on Rails
Demo: http://lesscss.org/
License: Apache License

<!-- Similar Posts took 9.279 ms -->

Sponsors

Dreamhost: Get $50 Off with Coupon Code: WEBAPPERS




Posted on Mon, 22 Jun 2009 07:01:36 +0000 at http://feedproxy.google.com/~r/Webappers...ZJz6I4D7g/
Comments: http://www.webappers.com/2009/06/22/less.../#comments
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: