Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LESS

 LESS

A lecture about LESS which is a CSS pre-processor that makes the css more maintainable & themable with build in functions and more..

Created and presented by Yosi Konigsberg

Spectory.

March 01, 2016
Tweet

More Decks by Spectory.

Other Decks in Programming

Transcript

  1. Definition Less is a CSS pre-processor, meaning that it extends

    the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable and extendable.
  2. Variables It's not uncommon to see the same value repeated

    dozens if not hundreds of times across your stylesheets.
  3. Variables - basic example Variables make your code easier to

    maintain by giving you a way to control those values from a single location.
  4. Nested Rules Less gives you the ability to use nesting

    instead of, or in combination with cascading. The resulting code is more concise, and mimics the structure of your HTML.
  5. Mixins Definition: Mixins are a way of including ("mixing in")

    a bunch of properties from one rule-set into another rule-set.
  6. Mixins - Not Outputting the Minxin If you want to

    create a mixin but you do not want that mixin to be output, you can put parentheses after it.
  7. Mixins - Parameters & Default Values We can use mixins

    like functions: set attributes, and set defaults.
  8. Functions Less provides a variety of functions which transform colors,

    manipulate strings use math and more They are documented fully in the function reference.
  9. Summary This is only an introduction and we only covered

    the basics . I encourage you to dive deeply and explore the LESS and improve your set of skills with this great tool.