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

allow a list of colors as argument for the svg-gradient function #2445

Merged
merged 1 commit into from
Feb 25, 2015

Conversation

bassjobsen
Copy link
Contributor

Now you can compile:

div {
background: svg-gradient(to bottom, red 0, orange 20%, yellow 30%, green 50%, blue 70%, indigo 85%, violet 100%);
}
@colors: red 0, orange 20%, yellow 30%, green 50%, blue 70%, indigo 85%, violet 100%;
div {
background: svg-gradient(to bottom, @colors);
}

Also see: http://stackoverflow.com/questions/26424473/less-svg-gradient-function-with-multiple-variables

lukeapage added a commit that referenced this pull request Feb 25, 2015
allow a list of colors as argument for the svg-gradient function
@lukeapage lukeapage merged commit 51ead08 into less:master Feb 25, 2015
@lukeapage
Copy link
Member

thanks, looks good

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

Successfully merging this pull request may close these issues.

2 participants