forked from JedWatson/react-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmulti.less
103 lines (88 loc) · 2.4 KB
/
multi.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
//
// Multi-Select
// ------------------------------
// Base
.Select--multi {
// add margin to the input element
.Select-input {
vertical-align: middle;
// border: 1px solid transparent;
margin-left: @select-padding-horizontal;
padding: 0;
}
// reduce margin once there is value
&.has-value .Select-input {
margin-left: @select-item-gutter;
}
// Items
.Select-value {
background-color: @select-item-bg-fb; /* Fallback color for IE 8 */
background-color: @select-item-bg;
border-radius: @select-item-border-radius;
border: 1px solid @select-item-border-color-fb; /* Fallback color for IE 8 */
border: 1px solid @select-item-border-color;
color: @select-item-color;
display: inline-block;
font-size: @select-item-font-size;
line-height: 1.4;
margin-left: @select-item-gutter;
margin-top: @select-item-gutter;
vertical-align: top;
}
// common
.Select-value-icon,
.Select-value-label {
display: inline-block;
vertical-align: middle;
}
// label
.Select-value-label {
.border-right-radius( @select-item-border-radius );
cursor: default;
padding: @select-item-padding-vertical @select-item-padding-horizontal;
}
a.Select-value-label {
color: @select-item-color;
cursor: pointer;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
// icon
.Select-value-icon {
cursor: pointer;
.border-left-radius( @select-item-border-radius );
border-right: 1px solid @select-item-border-color-fb; /* Fallback color for IE 8 */
border-right: 1px solid @select-item-border-color;
// move the baseline up by 1px
padding: (@select-item-padding-vertical - 1) @select-item-padding-horizontal (@select-item-padding-vertical + 1);
&:hover,
&:focus {
background-color: @select-item-hover-bg-fb; /* Fallback color for IE 8 */
background-color: @select-item-hover-bg;
color: @select-item-hover-color;
}
&:active {
background-color: @select-item-border-color-fb; /* Fallback color for IE 8 */
background-color: @select-item-border-color;
}
}
}
.Select--multi.is-disabled {
.Select-value {
background-color: @select-item-disabled-bg;
border: 1px solid @select-item-disabled-border-color;
color: @select-item-disabled-color;
}
// icon
.Select-value-icon {
cursor: not-allowed;
border-right: 1px solid @select-item-disabled-border-color;
&:hover,
&:focus,
&:active {
background-color: @select-item-disabled-bg;
}
}
}