16
.LESS - CSS DONE RIGHT! Daniel Hölbling http://www.tigraine.at http://www.dotlesscss.com

Less - CSS done right

Embed Size (px)

DESCRIPTION

Presentation from Barcamp Klagenfurt about dotlesscss.http://www.dotlesscss.com

Citation preview

Page 1: Less - CSS done right

.LESS - CSS DONE RIGHT!

Daniel Hölbling

http://www.tigraine.at

http://www.dotlesscss.com

Page 2: Less - CSS done right

WHAT IS CSS?Cascading Style Sheets (CSS) is a style sheet language used to

describe the presentation semantics (that is, the look and formatting) of a document written in a markup language

Page 3: Less - CSS done right

HOW WE DO USE CSS CSS Zen Garden

Markup is completely decoupledDrastically changes the layout of the page. Markup looks good – CSS a nightmare

Multiple classesGood CSS reuseMarkup „married“ to specific CSS code.Not much better than style=„…“ (<2000)

Page 4: Less - CSS done right

CSS ZEN GARDEN Good CSS looks like this:

Page 5: Less - CSS done right

CSS ZEN GARDEN Good CSS looks like this:

Redundant! DRY-Violation

Page 6: Less - CSS done right

MULTIPLE CLASSES CSS looks good

Markup not so much:

Page 7: Less - CSS done right

CSS ALWAYS SUCKS!

Page 8: Less - CSS done right

LESSCSSA revolutionary Ruby Framework to fix CSS

http://lesscss.org

Page 9: Less - CSS done right

VARIABLES

LESS CSS

Page 10: Less - CSS done right

OPERATIONS

LESS CSS

Page 11: Less - CSS done right

MIXINS

LESS CSS

Page 12: Less - CSS done right

NESTED RULES

LESS CSS

Page 13: Less - CSS done right

DOTLESS .NET Port of LessCss

Started in JulyFounded by:

Erik van Brakel Chris John Owen Daniel Hölbling

Native .NET parser/compiler

Page 14: Less - CSS done right

FEATURES Complete Less Syntax Transparent Less compilation

(Through HttpHandler) Console Compiler T4CSS – Less through T4 Templates Built in CSS Compression

Page 15: Less - CSS done right

DEMO

Page 16: Less - CSS done right

THANKS FOR LISTENING!

More info: http://www.dotlesscss.com

My Blog:http://www.tigraine.at