forked from isteven/angular-multi-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adrach-multi-select.css
304 lines (271 loc) · 7.31 KB
/
adrach-multi-select.css
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
/*
* Don't modify things marked with ! - unless you know what you're doing
*/
/* ! vertical layout */
.multiSelect .vertical {
float: none;
}
/* ! horizontal layout */
.multiSelect .horizontal:not(.multiSelectGroup) {
float: left;
}
/* ! create a "row" */
.multiSelect .line {
padding: 2px 0px 4px 0px;
max-height: 30px;
overflow: hidden;
box-sizing: content-box;
}
/* ! create a "column" */
.multiSelect .acol {
display: inline-block;
min-width: 12px;
}
/* ! */
.multiSelect .inlineBlock {
display: inline-block;
}
/* the multiselect button */
.multiSelect > button {
display: inline-block;
position: relative;
text-align: center;
cursor: pointer;
border: 1px solid #c6c6c6;
padding: 1px 8px 1px 8px;
font-size: 14px;
/*min-height : 38px !important;*/
border-radius: 4px;
color: #555;
/*-webkit-user-select: none;*/
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
white-space:normal;
background-color: #fff;
/*background-image: linear-gradient(#fff, #f7f7f7); */
}
/* button: hover */
.multiSelect > button:hover {
/*background-image: linear-gradient(#fff, #e9e9e9); */
}
/* button: disabled */
.multiSelect > button:disabled {
/*background-image: linear-gradient(#fff, #fff); */
border: 1px solid #ddd;
color: #999;
}
/* button: clicked */
.multiSelect .buttonClicked {
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
}
/* labels on the button */
.multiSelect .buttonLabel {
display: inline-block;
padding: 5px 0px 5px 0px;
}
/* downward pointing arrow */
.multiSelect .caret {
display: inline-block;
width: 0;
height: 0;
margin: 0px 0px 1px 12px !important;
vertical-align: middle;
border-top: 4px solid #333;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
border-bottom: 0 dotted;
}
/* the main checkboxes and helper layer */
.multiSelect .checkboxLayer {
background-color: #fff;
position: absolute;
z-index: 999;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
min-width:278px;
display: none !important;
}
/* container of helper elements */
.multiSelect .helperContainer {
border-bottom: 1px solid #ddd;
padding: 8px 8px 0px 8px;
}
/* helper buttons (select all, none, reset); */
.multiSelect .helperButton {
display: inline;
text-align: center;
cursor: pointer;
border: 1px solid #ccc;
height: 26px;
font-size: 13px;
border-radius: 2px;
/*color: #666; */
/*background-color: #f1f1f1;*/
line-height: 1.6;
margin: 0px 0px 8px 0px;
}
.multiSelect .helperButton.reset{
float: right;
}
.multiSelect .helperButton:not( .reset ) {
margin-right: 4px;
}
/* clear button */
.multiSelect .clearButton {
position: absolute;
display: inline;
text-align: center;
cursor: pointer;
border: 1px solid #ccc;
height: 22px;
width: 22px;
font-size: 13px;
border-radius: 2px;
/*color: #666; */
/*background-color: #f1f1f1;*/
line-height: 1.4;
right : 2px;
top: 4px;
}
/* filter */
.multiSelect .inputFilter {
border-radius: 2px;
border: 1px solid #ccc;
height: 26px;
font-size: 14px;
width:100%;
padding-left:7px;
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
/*color: #888;*/
margin: 0px 0px 8px 0px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
/* helper elements on hover & focus */
.multiSelect .clearButton:hover,
.multiSelect .helperButton:hover {
border: 1px solid #ccc;
color: #999;
background-color: #f4f4f4;
}
.multiSelect .helperButton:disabled {
/*color: #ccc; */
border: 1px solid #ddd;
}
.multiSelect .clearButton:focus,
.multiSelect .helperButton:focus,
.multiSelect .inputFilter:focus {
border: 1px solid #66AFE9 !important;
outline: 0;
-webkit-box-shadow: inset 0 0 1px rgba(0,0,0,.065), 0 0 5px rgba(102, 175, 233, .6) !important;
box-shadow: inset 0 0 1px rgba(0,0,0,.065), 0 0 5px rgba(102, 175, 233, .6) !important;
}
/* container of multi select items */
.multiSelect .checkBoxContainer {
display: block;
padding: 8px;
overflow: hidden;
}
/* ! to show / hide the checkbox layer above */
.multiSelect .show {
display: block !important;
}
/* item labels */
.multiSelect .multiSelectItem {
display: block;
padding: 3px;
margin: 2px 0px;
/*color: #444; */
white-space: nowrap;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
border: 1px solid transparent;
border-radius: 3px;
position: relative;
min-width:278px;
min-height: 32px;
}
/* Styling on selected items */
.multiSelect .multiSelectItem:not(.multiSelectGroup).selected
{
/*background-image: linear-gradient( #e9e9e9, #f1f1f1 ); */
/*color: #555; */
cursor: pointer;
/*border-top: 1px solid #e4e4e4;*/
/*border-left: 1px solid #e4e4e4; */
/*border-right: 1px solid #d9d9d9; */
}
.multiSelect .multiSelectItem .acol label {
display: inline-block;
padding-right: 30px;
margin: 0px;
font-weight: normal;
line-height: normal;
}
/* item labels focus on mouse hover */
.multiSelect .multiSelectItem:hover,
.multiSelect .multiSelectGroup:focus,
.multiSelect .multiSelectGroup:active {
/*background-image: linear-gradient( #c1c1c1, #999 ) !important; */
color: #333 !important;
/*background-color: #d4d4d4;*/
background-color: #f3f7f9;
cursor: pointer;
/*border: 1px solid #ccc !important;*/
}
/* item labels focus using keyboard */
.multiSelect .multiSelectFocus {
/*background-image: linear-gradient( #c1c1c1, #999 ) !important; */
/*color: #fff !important; */
cursor: pointer;
/*border: 1px solid #ccc !important;*/
}
/* change mouse pointer into the pointing finger */
.multiSelect .multiSelectItem span:hover,
.multiSelect .multiSelectGroup span:hover
{
cursor: pointer;
}
/* ! group labels */
.multiSelect .multiSelectGroup {
display: block;
clear: both;
}
/* right-align the tick mark (✔) */
.multiSelect .tickMark {
display:inline-block;
position: absolute;
right: 10px;
/*top: 7px;*/
font-size: 16px;
}
/* hide the original HTML checkbox away */
.multiSelect .checkbox {
/*color: #ddd !important; */
position: absolute;
left: -9999px;
cursor: pointer;
}
/* checkboxes currently disabled */
.multiSelect .disabled,
.multiSelect .disabled:hover,
.multiSelect .disabled label input:hover ~ span {
/*color: #c4c4c4 !important;*/
cursor: not-allowed !important;
}
/* If you use images in button / checkbox label, you might want to change the image style here. */
.multiSelect img {
vertical-align: middle;
margin-bottom:0px;
max-height: 22px;
max-width:22px;
}