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
Post a Comment