Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

background-image value #84

Open
juliami opened this issue Feb 9, 2017 · 2 comments
Open

background-image value #84

juliami opened this issue Feb 9, 2017 · 2 comments

Comments

@juliami
Copy link

juliami commented Feb 9, 2017

Hello, I've been trying to store image url in variable, doesn't seem to work.

Image-config.scss:

@value photo "http://www.someplace.com/image.jpg"

Image.scss:

@value vals "./Image-config.scss";
@value photo from vals;

.root{
  background-image: url(photo)
}

I got Error: Can't resolve 'i__const_photo_3'

Tried also putting it as:

@value photo url("http://www.someplace.com/image.jpg")

and

.root{
  background-image: photo
}

got Error: Invalid mapping: {"generated":{"line":1,"column":90},"source":"Image-config.scss","original":{},"name":null}

@TrySound
Copy link
Member

Hi, @juliami ! I guess you skipped : in definition

@value photo: "http://www.someplace.com/image.jpg";

@TrySound
Copy link
Member

Hm.. sorry. It should be correct

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

No branches or pull requests

2 participants