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

Addition of radial gradients? #68

Open
bfintal opened this issue Sep 22, 2011 · 7 comments
Open

Addition of radial gradients? #68

bfintal opened this issue Sep 22, 2011 · 7 comments

Comments

@bfintal
Copy link

bfintal commented Sep 22, 2011

Might be a good idea to add radial gradients to the current collection. No current support for Opera, FF < 3.6 and IE < 10 but how about just adding a fallback to linear gradients?

References:

@paulirish
Copy link
Owner

i'd be happy to see radial in here..
if you or anyone file a pull request we can work with that

@bfintal
Copy link
Author

bfintal commented Oct 1, 2011

I'll be on this right after I finish my current project!

@niftylettuce
Copy link

we need to add this in bros

@paulirish
Copy link
Owner

patches welcome. :)

@enriquemorenotent
Copy link

Very much needed!!!!

@niftylettuce
Copy link

example less mixin:

.radial(@innerColor: #555, @outerColor: #333)  {
    background-color: @outerColor;
    background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(@innerColor), to(@outerColor));
    background-image: -webkit-radial-gradient(circle, @innerColor, @outerColor);
    background-image: -moz-radial-gradient(circle, @innerColor, @outerColor);
    background-image: -o-radial-gradient(circle, @innerColor, @outerColor);
    background-repeat: no-repeat;
}

@niftylettuce
Copy link

then for IE you use a div:

#ie-radial {
  position: absolute;
  background: #fff; /* color you want for gradient */
  top: 50%;
  left: 50%;
  margin-top: -100px;
  margin-left: -100px;
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100, finishopacity=0, style=2);
}

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

No branches or pull requests

4 participants