mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
docs/css-overview: Fix color functions’ arg orders
shade/alpha/mix() take colour(s) and a number that is the ratio by which to transform them. It was written here that these shall be passed in the order (number, colour). That was wrong: they must be passed in the order (colour[s], number) to work, and for the Inspector not to flag an error.
This commit is contained in:
parent
5c948710a5
commit
a69083c95e
@ -587,7 +587,7 @@ background-color: @bg_color;
|
||||
set of base colors.
|
||||
</para>
|
||||
|
||||
<literallayout><code>〈color expression〉 = lighter(〈color〉) | darker(〈color〉) | shade(〈number〉,〈color〉) | alpha(〈number〉,〈color〉) | mix(〈number〉,〈color〉,〈color〉)</code>
|
||||
<literallayout><code>〈color expression〉 = lighter(〈color〉) | darker(〈color〉) | shade(〈color〉,〈number〉) | alpha(〈color〉,〈number〉) | mix(〈color〉,〈color〉,〈number〉)</code>
|
||||
</literallayout>
|
||||
|
||||
<para>
|
||||
|
Loading…
Reference in New Issue
Block a user