-
Notifications
You must be signed in to change notification settings - Fork 225
/
Less.less
123 lines (109 loc) · 2.27 KB
/
Less.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
// 4.1 https://lesscss.org/
when and not
// https://lesscss.org/features/#extend-feature
:extend()
// https://lesscss.org/features/#mixins-feature-mixins-parametric-feature
arguments
rest
// https://lesscss.org/features/#import-atrules-feature
@import ;
reference inline less css once multiple optional
@plugin ;
// https://lesscss.org/functions/
// Logical Functions
if(condition, value1, value2)
boolean(condition)
// String Functions
escape("")
replace(string, pattern, replacement, flags)
// List Functions
length(list)
extract(list, index)
range(start, end, step)
each(list, rules)
// Math Functions
ceil(number)
floor(number)
percentage(number)
round(number)
sqrt(number)
abs(number)
sin(number)
asin(number)
cos(number)
acos(number)
tan(number)
atan(number)
pi(number)
pow(base, exponent)
mod(first, second)
min(values)
max(values)
// Type Functions
isnumber(value)
isstring(value)
iscolor(value)
iskeyword(value)
isurl(value)
ispixel(value)
isem(value)
ispercentage(value)
isunit(value)
isruleset(value)
isdefined(value)
// Misc Functions
color(value)
image-size(file)
image-width(file)
image-height(file)
convert(number, unit)
data-uri(mimetype, url)
default()
unit(dimension, unit)
get-unit(number)
svg-gradient(direction, color)
// Color Definition Functions
rgb(red, green, blue)
rgba(red, green, blue, alpha)
argb(color)
hsl(hue, saturation, lightness)
hsla(hue, saturation, lightness, alpha)
hsv(hue, saturation, value)
hsva(hue, saturation, value, alpha)
// Color Channel Functions
hue(color)
saturation(color)
lightness(color)
hsvhue(color)
hsvsaturation(color)
hsvvalue(color)
red(color)
green(color)
blue(color)
alpha(color)
luma(color)
luminance(color)
// Color Operation Functions
saturate(color, amount, method)
desaturate(color, amount, method)
lighten(color, amount, method)
darken(color, amount, method)
fadein(color, amount, method)
fadeout(color, amount, method)
fade(color, amount)
spin(color, angle)
mix(color1, color2, weight)
tint(color, weight)
shade(color, weight)
greyscale(color)
contrast(color, dark, light, threshold)
// Color Blending Functions
multiply(color1, color2)
screen(color1, color2)
overlay(color1, color2)
softlight(color1, color2)
hardlight(color1, color2)
difference(color1, color2)
exclusion(color1, color2)
average(color1, color2)
negation(color1, color2)