lesscss-maven-plugin icon indicating copy to clipboard operation
lesscss-maven-plugin copied to clipboard

Importing css for reference

Open ghost opened this issue 10 years ago • 4 comments

Not sure if this is a plugin issue or a lesscss issue. I'm trying to do the following

@import (reference) "http://yui.yahooapis.com/pure/0.3.0/buttons-min.css";

and then apply that style to all my buttons

button { .pure-button }

I get

[ERROR] 234 }: Error: NameError: .pure-button is undefined in /var/folders/l_/8yr1sgwd1bqgttcb1dhq_zsr0000gp/T/tmp8671075994062153763less.tmp on line 233, column 3: [ERROR] 232 button { [ERROR] 233 .pure-button [ERROR] 234 }

Is this a bug or my misunderstanding? And if my misunderstanding, is there a way to accomplish what I'm trying to do.

ghost avatar Jul 18 '14 13:07 ghost

I ended up doing the following:

#pure-css-ref() { @import (less) "http://yui.yahooapis.com/pure/0.3.0/buttons.css"; }

button { #pure-css-ref > .pure-button }

Seems to provide what I need. I still think (reference) should be giving me this for free.

ghost avatar Jul 22 '14 19:07 ghost

+1

rbarato avatar Oct 01 '14 19:10 rbarato

+1 I would like to see the @import (reference) work.

cantolick avatar Oct 27 '14 18:10 cantolick

This is the same as #51. It can be closed as a duplicate.

agabrys avatar Jun 28 '15 16:06 agabrys