Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Importing css for reference #57

Open
ghost opened this issue Jul 18, 2014 · 4 comments
Open

Importing css for reference #57

ghost opened this issue Jul 18, 2014 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 18, 2014

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
Copy link
Author

ghost commented Jul 22, 2014

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 ghost changed the title Importing css as less Importing css for reference Jul 22, 2014
@rbarato
Copy link

rbarato commented Oct 1, 2014

+1

@cantolick
Copy link

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

@agabrys
Copy link

agabrys commented Jun 28, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants