LessCSS – alternative Extension to CSS For Ruby

0

LESS is Ruby gem which easily compiles LESS code to CSS and extends CSS by adding variables, mixins, operations and nested rules.

lesscss - alternative Extension to CSS For Ruby

It use your existing css syntax. it means you can easily rename your current .css files to .less files in second & there is almost 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.

    lesscss

  • Mixins : it 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.

    lesscss1

  • Nested Rules : To make style sheets shorter and clear rather than constructing long selector names to specify inheritance, In Less you can Put nest selectors inside other selectors.
    lesscss2
  • Operations : Some elements in your style sheet proportional to other elements ? so, Operations help you to add, subtract, divide and multiply property values and colors, giving you the power to do create complex relationships between properties.
    lesscss3
You might also like

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More