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

No support for linear-gradient and other css3 features #87

Open
StefanOrzu opened this issue Jun 10, 2016 · 2 comments
Open

No support for linear-gradient and other css3 features #87

StefanOrzu opened this issue Jun 10, 2016 · 2 comments

Comments

@StefanOrzu
Copy link

I'm trying to add gradient backgrounds to some elements but I'm unable to find a solution. I presume there's no support for those yet or they're undocumented.
The thing I'm trying to translate into scalacss is this:
background: linear-gradient(to right, rgba(248,205,4,0) 25%,rgba(248,205,4,1) 50%,rgba(248,205,4,0.96) 51%,rgba(248,205,4,0) 75%);
Other features I haven't managed to get working are the shorthand notation for transitions and transformation rules.
Could you shed some light on this please? Thank you.

@japgolly
Copy link
Owner

Hi. There isn't a type-safe API for it as yet, so you must create it using a plain string.

It does have a bit of support in terms of auto-prefixing tho.
See: this gets translated into this.

@StefanOrzu
Copy link
Author

Thanks, that can get the job done for now. I will be great to see this feature (and others) supported as type-safe, but I'm sure it's just a matter of time.

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

2 participants