Re:The Absolute Beginner's Guide to Sass
by ataleb52 on Wednesday January 16, 2013 @10:23AM
(#5067154)
I haven't used Sass yet but it seems pretty cool. Does anyone know how it compares to Less?
[ Parent
| on HN ]
Re:The Absolute Beginner's Guide to Sass
by homosaur on Wednesday January 16, 2013 @10:32AM
(#5067195)
Chris Coyier wrote a nice article detailing some of the details http://css-tricks.com/sass-vs-less/
The single biggest difference is in available style libraries in my opinion. I could probably never use Less because my workflow has become so heavily intertwined with Bourbon, Susy, and Compass.
Re:The Absolute Beginner's Guide to Sass
by ataleb52 on Wednesday January 16, 2013 @10:34AM
(#5067209)
This article is sweet! Sass is definitely looking more and more appealing.
Thanks for sharing!
It's basically the same, minus a few differences in syntax.
ie. Mixins
LESS
.border-radius(@radius){ border-radius: @radius; }
.border-radius(5px);
SCSS/SASS @mixin border-radius(@radius){ border-radius: @radius; }
@include border-radius(5px);
- - -The biggest difference is being able remove curly braces and semi-colons, which can speed up your development
h1
font-weight: bold
color: red
Re:The Absolute Beginner's Guide to Sass
by nathos on Wednesday January 16, 2013 @11:05AM
(#5067375)
Ignoring Sass @extend is ignoring perhaps its most powerful feature:
http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#ex...