📅  最后修改于: 2020-10-22 07:15:43             🧑  作者: Mango
LESS提供了许多有用的操作功能,可以以不同的方式更改和操纵颜色并以相同的单位获取参数。 LESS支持某些颜色操作功能,如下表所示-
Sr.No. | Directives & Description |
---|---|
1 | saturate
It varies the intensity or saturation of a color in the element. |
2 | desaturate
It decreases the intensity or saturation of a color in the element. |
3 | lighten
It increases the lightness of a color in the element. |
4 | darken
It varies the intensity or saturation of a color in the element. |
5 | fadein
It increases the opacity for selected elements. |
6 | fadeout
It decreases the opacity for selected elements. |
7 | fade
It is used to set the transparency of a color for selected elements. |
8 | spin
It is used to rotate the angle of a color for selected elements. |
9 | mix
It mixes the two colors along with the opacity. |
10 | tint
It mixes the color with white as you decrease the proportion of the color. |
11 | shade
It mixes the color with black as you decrease the proportion of the color. |
12 | greyscale
It discards the saturation from a color in the selected elements. |
13 | contrast
It sets the contrast for the colors in the element. |