japgolly / scalacss

Super type-safe CSS for Scala and Scala.JS.
https://japgolly.github.io/scalacss/book
Apache License 2.0
339 stars 44 forks source link

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

Open StefanOrzu opened 8 years ago

StefanOrzu commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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.