forked from selectize/selectize.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
selectize.css
349 lines (327 loc) · 10.4 KB
/
selectize.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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
/*! selectize.css - v0.6.9 | https://github.com/brianreavis/selectize.js | Apache License (v2) */
/* --- file: "src/selectize.css" --- */
/**********************************************************
* THEME: "default" *
**********************************************************/
.selectize-control.default.multi .selectize-input > div {
color: #3d5d18;
text-shadow: 0 1px 0 rgba(255,255,255,0.1);
border: 1px solid #74b21e;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background: #b8e76f;
background: -moz-linear-gradient(top, #b8e76f 0%, #a9e25c 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b8e76f), color-stop(100%,#a9e25c));
background: -webkit-linear-gradient(top, #b8e76f 0%,#a9e25c 100%);
background: -o-linear-gradient(top, #b8e76f 0%,#a9e25c 100%);
background: -ms-linear-gradient(top, #b8e76f 0%,#a9e25c 100%);
background: linear-gradient(to bottom, #b8e76f 0%,#a9e25c 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b8e76f', endColorstr='#a9e25c',GradientType=0 );
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.selectize-control.default.multi .selectize-input > div.active {
border-color: #6f9839;
background: #92c836;
background: -moz-linear-gradient(top, #92c836 0%, #006e2e 0%, #92c836 0%, #7abc2c 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#92c836), color-stop(0%,#006e2e), color-stop(0%,#92c836), color-stop(100%,#7abc2c));
background: -webkit-linear-gradient(top, #92c836 0%,#006e2e 0%,#92c836 0%,#7abc2c 100%);
background: -o-linear-gradient(top, #92c836 0%,#006e2e 0%,#92c836 0%,#7abc2c 100%);
background: -ms-linear-gradient(top, #92c836 0%,#006e2e 0%,#92c836 0%,#7abc2c 100%);
background: linear-gradient(to bottom, #92c836 0%,#006e2e 0%,#92c836 0%,#7abc2c 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#92c836', endColorstr='#7abc2c',GradientType=0 );
}
.selectize-control.default.multi .selectize-input.disabled > div {
border-color: #d8d8d8;
background: #fafafa;
color: #808080;
}
/**********************************************************
* BASIC AESTHETIC STYLES (common) *
**********************************************************/
.selectize-input, .selectize-control.single .selectize-input.focus {
background: #fff;
padding: 10px;
cursor: text;
display: inline-block;
width: 100%;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
}
.selectize-input.focus {
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}
.selectize-input.dropdown-active {
-webkit-border-radius: 3px 3px 0 0 !important;
-moz-border-radius: 3px 3px 0 0 !important;
border-radius: 3px 3px 0 0 !important;
}
.selectize-input.full {
background-color: #f2f2f2;
}
.selectize-input.dropdown-active::before {
content: ' ';
display: block;
position: absolute;
background: #f2f2f2;
height: 1px;
bottom: 0;
left: 0;
right: 0;
}
.selectize-control.multi .selectize-input.has-items {
padding-top: 8px !important;
padding-bottom: 3px !important;
}
.selectize-control.multi .selectize-input > div {
cursor: pointer;
margin: 0 5px 5px 0;
padding: 1px 5px;
}
.selectize-input > div:last-child {
margin-right: 5px;
}
.selectize-input > input {
margin-right: 2px !important;
}
.selectize-dropdown, .selectize-input, .selectize-control.single .selectize-input.dropdown-active {
border: 1px solid #d0d0d0;
}
.selectize-dropdown {
background: #fff;
margin-top: -1px;
border-top: 0 none;
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
-webkit-border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
border-radius: 0 0 3px 3px;
}
.selectize-dropdown-content {
max-height: 200px;
overflow-y: auto !important;
overflow-x: hidden !important;
}
.selectize-dropdown [data-selectable],
.selectize-dropdown .optgroup-header {
padding: 6px 9px;
}
.selectize-dropdown .optgroup:first-child .optgroup-header {
border-top: 0 none;
}
.selectize-dropdown .optgroup-header {
background: #fafafa;
border-bottom: 1px solid #e8e8e8;
border-top: 1px solid #e8e8e8;
font-weight: bold;
font-size: 0.8em;
cursor: default;
}
.selectize-dropdown .create {
color: #a0a0a0;
}
.selectize-dropdown .active {
background-color: #fffceb;
}
.selectize-dropdown, .selectize-input, .selectize-input input {
color: #303030;
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 20px;
-webkit-font-smoothing: antialiased;
}
.selectize-dropdown [data-selectable] .highlight {
background: rgba(255,237,40,0.4);
border-radius: 1px;
}
.selectize-input.disabled, .selectize-input.disabled * {
cursor: default !important;
}
/**********************************************************
* BASIC AESTHETIC STYLES (single) *
**********************************************************/
.selectize-control.single .selectize-input {
cursor: pointer;
border-color: #b8b8b8;
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #c6c6c6;
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #c6c6c6;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #e0e0e0, 0 3px 0 #c8c8c8, 0 4px 1px rgba(0,0,0,0.1);
background: #f6f6f6;
background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#efefef));
background: -webkit-linear-gradient(top, #f5f5f5 0%,#efefef 100%);
background: -o-linear-gradient(top, #f5f5f5 0%,#efefef 100%);
background: -ms-linear-gradient(top, #f5f5f5 0%,#efefef 100%);
background: linear-gradient(to bottom, #fafafa 0%,#f2f2f2 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f6f6', endColorstr='#e8e8e8',GradientType=0 );
}
.selectize-control.single .selectize-input::after {
content: ' ';
display: block;
position: absolute;
top: 50%;
right: 15px;
margin-top: -2px;
width: 0;
height: 0;
border-style: solid;
border-width: 5px 5px 0 5px;
border-color: #808080 transparent transparent transparent;
}
.selectize-control.single .selectize-input.dropdown-active::after {
margin-top: -3px;
border-width: 0 5px 5px 5px;
border-color: transparent transparent #808080 transparent;
}
.selectize-control.single .selectize-input.disabled {
opacity: 0.5;
}
/**********************************************************
* BASIC AESTHETIC STYLES (multi) *
**********************************************************/
.selectize-control.multi .selectize-input.disabled {
background-color: #fafafa;
}
/**********************************************************
* LAYOUT STYLES (mandatory) *
**********************************************************/
.selectize-control {
position: relative;
}
.selectize-input {
overflow: hidden;
position: relative;
z-index: 1;
}
.selectize-input:after {
content: ' ';
display: block;
clear: left;
}
.selectize-input .items {
display: inline;
}
.selectize-input > * {
vertical-align: baseline;
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
}
.selectize-input > input {
max-width: 100% !important;
text-indent: 0 !important;
border: 0 none !important;
background: none !important;
padding: 0 !important;
margin: 0;
line-height: inherit !important;
-webkit-user-select: auto !important;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
.selectize-input > input:focus {
outline: none !important;
}
.selectize-dropdown {
position: absolute;
z-index: 2;
}
.selectize-dropdown [data-selectable] {
cursor: pointer;
overflow: hidden;
}
.selectize-input, .selectize-dropdown {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* --- file: "src/plugins/drag_drop/plugin.css" --- */
.selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
visibility: visible !important;
background: #f2f2f2 !important;
background: rgba(0,0,0,0.06) !important;
border: 0 none !important;
-webkit-box-shadow: inset 0 0 12px 4px #fff;
-moz-box-shadow: inset 0 0 12px 4px #fff;
box-shadow: inset 0 0 12px 4px #fff;
}
.selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
content: '!';
visibility: hidden;
}
.selectize-control.plugin-drag_drop .ui-sortable-helper {
-webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
-moz-box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}
/* --- file: "src/plugins/dropdown_header/plugin.css" --- */
.selectize-dropdown-header {
padding: 6px 9px;
-moz-border-radius: 3px 3px 0 0;
-webkit-border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0;
}
.selectize-dropdown-header-close {
float: right;
color: #ddd;
font-size: 20px !important;
}
.selectize-dropdown-header-close:hover {
color: #aaa;
}
/* --- file: "src/plugins/optgroup_columns/plugin.css" --- */
.selectize-control.plugin-optgroup_columns .optgroup {
border-right: 1px solid #f2f2f2;
float: left;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.selectize-control.plugin-optgroup_columns .optgroup:last-child {
border-right: 0 none;
}
.selectize-control.plugin-optgroup_columns .optgroup-header {
border-top: 0 none;
}
/* --- file: "src/plugins/remove_button/plugin.css" --- */
.selectize-control.plugin-remove_button .item {
position: relative;
padding-right: 24px !important;
}
.selectize-control.plugin-remove_button .item .remove {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 17px;
-moz-sizing: border-box;
-webkit-sizing: border-box;
box-sizing: border-box;
text-align: center;
font-size: 12px;
font-weight: bold;
color: inherit;
vertical-align: middle;
display: inline-block;
padding: 7px 0 0 0;
line-height: 8px;
-webkit-border-radius: 0 2px 2px 0;
-moz-border-radius: 0 2px 2px 0;
border-radius: 0 2px 2px 0;
border-left: 1px solid #74b21e;
}
.selectize-control.plugin-remove_button .item .remove:hover {
border-left-color: #5e8f1a;
background: rgba(50,90,0,0.15);
}