Created
March 9, 2012 08:26
-
-
Save paulmillr/2005644 to your computer and use it in GitHub Desktop.
Sass vs Stylus vs LESS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.border-radius (@radius) { | |
-webkit-border-radius: @radius; | |
-o-border-radius: @radius; | |
-moz-border-radius: @radius; | |
-ms-border-radius: @radius; | |
border-radius: @radius; | |
} | |
.user-list { | |
// need to use special `.` syntax | |
.border-radius(10px); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin border-radius($radius) | |
-webkit-border-radius: $radius | |
-o-border-radius: $radius | |
-moz-border-radius: $radius | |
-ms-border-radius: $radius | |
border-radius: $radius | |
.user-list | |
// need to use special `@` syntax | |
@include border-radius(10px) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This and all CSS3 funcs are included in `nib` stylus plugin. | |
border-radius() | |
-webkit-border-radius: arguments | |
-o-border-radius: arguments | |
-moz-border-radius: arguments | |
-ms-border-radius: arguments | |
border-radius: arguments | |
.user-list | |
border-radius: 10px | |
// or | |
.user-list { | |
border-radius: 10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's worth noting that Stylus is no longer in development at the time of writing. The last commit was on July 18th, 2016 (https://github.com/stylus/stylus). SASS/SCSS is still under active development with the last commit made 5 days ago at the time of writing (https://github.com/sass/sass). At this point in time SASS/SCSS has feature parity with Sylus if not more. In this situation I am more willing to develop using a technology still being updated over a project which has not seen an update in almost a year. I don't buy the excuse that Stylus is no longer being updated because it is feature complete either.