-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui-mixins.less
executable file
·49 lines (44 loc) · 974 Bytes
/
ui-mixins.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
// Pattern matching; ish is cray.
// http://lesscss.org/#-pattern-matching-and-guard-expressions
.text(normal) {
font-weight: normal;
color: @text-color;
}
.text(subtle) {
font-weight: normal;
color: @text-color-subtle;
}
.text(highlight) {
font-weight: normal;
color: @text-color-highlight;
}
.text(selected) {
.text(highlight)
}
.text(info) {
color: @text-color-info;
}
.text(success) {
color: @text-color-success;
}
.text(warning) {
color: @text-color-warning;
}
.text(error) {
color: @text-color-error;
}
.focus() {
outline: none;
border-color: @accent-color;
box-shadow: 0 0 0 1px @accent-color;
}
.valid() {
border-color: @text-color-success;
box-shadow: 0 0 0 1px @text-color-success;
background-color: mix(@text-color-success, @input-background-color, 10%);
}
.invalid() {
border-color: @text-color-error;
box-shadow: 0 0 0 1px @text-color-error;
background-color: mix(@text-color-error, @input-background-color, 10%);
}