less - How to use hooks in Stylus? -


i make hooking in stylus using mixin in less. seems stylus can't make @extend .classname before .classname defined, less does.

for example. less logic may like

    .uk-button {         display: inline-block;         border 1px solid #00f;     }      .hook-button() {}      .hook-button() {         border 1px solid #00a;     } 

but stylus logic must be

hook-button()       .hook-button     {block}  +hook-button()   border 1px solid #00f  .uk-button   display inline-block   border 1px solid #00a   @extend .hook-button 

is there way place hook after @extend in stylus?

upd: main problem override goes before wanted class. try online less , stylus.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -