-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheqwad-combo-box.less
113 lines (97 loc) · 2.25 KB
/
eqwad-combo-box.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
.user-select (@value) {
-webkit-user-select: @value;
-moz-user-select: @value;
-ms-user-select: @value;
user-select: @value;
}
.eq-combo-box {
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
display: inline-block;
box-sizing: border-box;
border: 1px solid #ccc;
outline: 0;
&:not(&_is-enabled) {
.eq-combo-box__text {
background-color: #f2f2f2;
cursor: default;
.user-select(none);
}
.eq-combo-box__open {
cursor: default;
opacity: 0.65;
}
}
&_is-focused {
border-color: #66afe9;
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}
&__text {
box-sizing: border-box;
margin: 0;
border: 0;
outline: 0;
height: 28px;
padding: 4px 40px 4px 10px;
line-height: 1.5;
font: inherit;
color: #555;
text-overflow: ellipsis;
}
&__wrapper {
position: relative;
height: 28px;
}
&__open {
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 30px;
box-sizing: border-box;
text-align: center;
cursor: pointer;
.fa {
color: #333;
margin-top: 7px;
}
}
}
.eq-combo-box-list {
display: none;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
border: 1px solid #ccc;
border-top: 0;
padding: 5px 0;
color: #555;
position: absolute;
z-index: 1000;
background-color: #fff;
box-sizing: border-box;
overflow-x: hidden;
max-height: 191px;
&_is-opened {
display: block;
}
&_is-opened:not(&_has-items) {
display: none;
}
&_is-focused {
border-color: #66afe9;
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}
&__item {
padding: 7px 10px;
cursor: pointer;
&:not(&_is-selected):hover {
background-color: #f5f5f5;
}
&_is-selected {
background-color: #e6e6e6;
}
&_is-highlighted:not(&_is-selected) {
background-color: #f5f5f5;
}
}
}