nd0ut/semantic-ui-rails

class mixins

Closed this issue · 1 comments

Hello and thanks for this gem :)

I'm not sure if it's a bug or if I'm doing something wrong:

I'd like to use ui-classes as mixins in my less files (http://lesscss.org/#-mixins) :
basically

#my_custom_button{
 .button;
}

but rails render me this error :
".button is undefined"

Any idea ?

Hello! You need to use .ui.button instead of .button and import less on the top @import 'semantic-ui/elements/button.less';