Re: translating -gtk-gradient to -webkit-gradient -- GTK3 Themes

it's a GTK vendor prefix:

On Sat, Aug 17, 2013 at 7:04 PM, Jasper St. Pierre <jstpierre mecheye net> wrote:
You should use the standard linear-gradient CSS feature, not -webkit-gradient.

However, as far as I can tell, that's invalid syntax, as there's only one item allowed in a from() _expression_. This might be a recent restriction, in which case everything after the first comma would simply be ignored. In which case, as both colors are the same, it should be equivalent to:

    background-color: #f07746;

Where did these CSS lines come from?

On Sat, Aug 17, 2013 at 1:53 PM, Dennis <dennisonic gmail com> wrote:

I am in the process of converting some GTK+3 theme widgets into browser/webkit CSS -- in order to create a CSS theme to make desktop HTML5 apps integrate nicely with the desktop.

How can/should I translate the below gradient into a browser compatible gradient?  -webkit-gradient for example.

.button.default {
  background-image: -gtk-gradient (linear, left top, left bottom,
                                   from (#f07746, 1.16 , #f2f1f0, 0.3),
                                   to (#f07746, 0.84 , #f2f1f0, 0.3));

gtk-list mailing list
gtk-list gnome org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]