Stylus sugar
Posted: 07 January 2012 12:58 AM   [ Ignore ]
Newbie
Rank
Total Posts:  10
Joined  2011-10-22

Stylus is a css-preprocessor like LESS, but it supports more transparent mixins.
For example…

box-shadow() {
    
-webkit-box-shadowarguments;
    -
moz-box-shadowarguments;
    
box-shadowarguments;


in mixin.styl
and

div {
    box
-shadow0 5px 10px black;


in style.styl
compiles to

div {
  
-webkit-box-shadow0 5px 10px #000;
  
-moz-box-shadow0 5px 10px #000;
  
box-shadow0 5px 10px #000;


It’s cool! Now I don’t need to replace rules to mixins, like in LESS:

.transition(@args{
    
-webkit-transition: @args;
    -
moz-transition: @args;
    -
ms-transition: @args;
    -
o-transition: @args;
    
transition: @args;
}
.class {
    
.transition(background)
    
// instead of transition: background


But I’m cannot into Sugars, like I cannot into JS or SQL.
Now I need a Stylus.sugar, because Textmate is not My way.
Can someone do it?

Profile
 
 
Posted: 17 January 2012 12:27 PM   [ Ignore ]   [ # 1 ]
Moderator
RankRankRankRank
Total Posts:  1252
Joined  2008-10-28

Someone just posted a Stylus.sugar today:

https://github.com/Bluestrike2/Bluestrike2-Stylus-Sugar

I haven’t tried it myself (since I don’t use Stylus), but hopefully it will help you out!

 Signature 

Ian Beck
MacRabbit Support

Follow us on Twitter, or try my custom themes: Quiet Light & Earthworm

Profile
 
 
Posted: 17 January 2012 06:18 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  10
Joined  2011-10-22

wow, good news!
author has renamed this repo to Bluestrike2-Stylus.sugar (dot instead of minus).

Profile