Project

General

Profile

Download (9.09 KB) Statistics
| Branch: | Tag: | Revision:
1
div.chzn-container {
2
  font-size: 13px;
3
  position: relative;
4
}
5

    
6
div.chzn-container input {
7
  background: #fff;
8
  background: -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
9
  background: -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
10
  background: -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
11
  border: 1px solid #aaa;
12
  font-family: sans-serif;
13
  font-size: 1em;
14
  margin: 0px;
15
  padding: 4px 5px;
16
  outline: none;
17
  -moz-border-radius: 3px;
18
  -webkit-border-radius: 3px;
19
  -o-border-radius: 3px;
20
  -ms-border-radius: 3px;
21
  -khtml-border-radius: 3px;
22
  border-radius: 3px;
23
}
24
div.chzn-container textarea:focus {
25
  border-color: #058cf5;
26
  -moz-box-shadow: 0px 0px 3px #aaa;
27
  -webkit-box-shadow: 0px 0px 3px #aaa;
28
  box-shadow: 0px 0px 3px #aaa;
29
}
30

    
31

    
32
div.chzn-container div.chzn-drop {
33
  background: #FFF;
34
  border: 1px solid #aaa;
35
  border-width: 0 1px 1px;
36
  left: 0;
37
  position: absolute;
38
  top: 29px;
39
  -webkit-box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.15);
40
  -moz-box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.15);
41
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
42
  z-index: 20;
43
}
44
div.chzn-container-single div.chzn-drop {
45
  -moz-border-radius: 0 0 4px 4px;
46
  -webkit-border-radius: 0 0 4px 4px;
47
  -o-border-radius: 0 0 4px 4px;
48
  -ms-border-radius: 0 0 4px 4px;
49
  -khtml-border-radius: 0 0 4px 4px;
50
  border-radius: 0 0 4px 4px;
51
}
52

    
53

    
54
/* SINGLE */
55
div.chzn-container a.chzn-single {
56
  background: #FFF;
57
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
58
  background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
59
  background-image: -o-linear-gradient(bottom, #eeeeee 0%, white 50%);
60
  border: 1px solid #aaa;
61
  display: block;
62
  overflow: hidden;
63
  -moz-border-radius: 4px;
64
  -webkit-border-radius: 4px;
65
  -o-border-radius: 4px;
66
  -ms-border-radius: 4px;
67
  -khtml-border-radius: 4px;
68
  border-radius: 4px;
69
  height: 25px;
70
  color: #444;
71
  line-height: 26px;
72
  padding: 0px 0px 0px 8px;
73
  position: relative;
74
  text-decoration: none;
75
  z-index: 19;
76
  white-space: nowrap;
77
}
78
div.chzn-container a.chzn-single span {
79
  display: block;
80
  margin-right: 26px;
81
  overflow: hidden;
82
  text-overflow: ellipsis;
83
}
84
div.chzn-container a.chzn-single div {
85
  -moz-border-radius-topright: 4px;
86
  -webkit-border-top-right-radius: 4px;
87
  -o-border-top-right-radius: 4px;
88
  -ms-border-top-right-radius: 4px;
89
  -khtml-border-top-right-radius: 4px;
90
  border-top-right-radius: 4px;
91
  -moz-border-radius-bottomright: 4px;
92
  -webkit-border-bottom-right-radius: 4px;
93
  -o-border-bottom-right-radius: 4px;
94
  -ms-border-bottom-right-radius: 4px;
95
  -khtml-border-bottom-right-radius: 4px;
96
  border-bottom-right-radius: 4px;
97
  background: #ccc;
98
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
99
  background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
100
  background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
101
  border-left: 1px solid #aaa;
102
  display: block;
103
  height: 100%;
104
  position: absolute;
105
  right: 0;
106
  top: 0;
107
  width: 18px;
108
}
109
div.chzn-container a.chzn-single div b {
110
  background: url('chosen-sprite.png') no-repeat 0 1px;
111
  display: block;
112
  width: 100%;
113
  height: 100%;
114
}
115
div.chzn-container div.chzn-search {
116
  padding: 3px 4px;
117
  margin: 0px;
118
  white-space: nowrap;
119
}
120
div.chzn-container div.chzn-search input {
121
  background: url('chosen-sprite.png') no-repeat 97% -35px, #ffffff;
122
  background: url('chosen-sprite.png') no-repeat 97% -35px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
123
  background: url('chosen-sprite.png') no-repeat 97% -35px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
124
  background: url('chosen-sprite.png') no-repeat 97% -35px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
125
  -moz-border-radius: 0px;
126
  -webkit-border-radius: 0px;
127
  -o-border-radius: 0px;
128
  -ms-border-radius: 0px;
129
  -khtml-border-radius: 0px;
130
  border-radius: 0px;
131
  margin: 1px 0;
132
  outline: 0;
133
}
134

    
135

    
136
/* Multi */
137
div.chzn-container ul.chzn-choices {
138
  background: #fff;
139
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
140
  background-image: -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
141
  background-image: -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
142
  margin: 0;
143
  cursor: text;
144
  border: 1px solid #aaa;
145
  overflow: hidden;
146
  height: auto !important;
147
  height: 1%;
148
  padding: 0;
149
  position: relative;
150
}
151
div.chzn-container ul.chzn-choices:focus {
152
  border-color: #058cf5;
153
  -moz-box-shadow: 0px 0px 5px #999;
154
  -webkit-box-shadow: 0px 0px 5px #999;
155
  box-shadow: 0px 0px 5px #999;
156
}
157
div.chzn-container ul.chzn-choices li {
158
  float: left;
159
  list-style-type: none;
160
  margin: 0px;
161
}
162
div.chzn-container ul.chzn-choices li.search-field {
163
  margin: 0px;
164
  white-space: nowrap;
165
  padding: 0px;
166
}
167
div.chzn-container ul.chzn-choices li.search-field input {
168
  color: #666;
169
  background: transparent !important;
170
  border: 0px !important;
171
  padding: 5px;
172
  margin: 1px 0;
173
  outline: 0;
174
  -webkit-box-shadow: none;
175
  -moz-box-shadow: none;
176
  box-shadow: none;
177
}
178
div.chzn-container ul.chzn-choices li.search-field input.default {
179
  color: #999;
180
}
181
div.chzn-container ul.chzn-choices li.search-choice {
182
  -moz-border-radius: 3px;
183
  -webkit-border-radius: 3px;
184
  border-radius: 3px;
185
  background: #e4e4e4;
186
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #e4e4e4), color-stop(0.7, #eeeeee));
187
  background-image: -moz-linear-gradient(center bottom, #e4e4e4 0%, #eeeeee 70%);
188
  background-image: -o-linear-gradient(bottom, #e4e4e4 0%, #eeeeee 70%);
189
  color: #333;
190
  border: 1px solid #b4b4b4;
191
  line-height: 13px;
192
  padding: 3px 19px 3px 6px;
193
  position: relative;
194
  margin: 3px 0px 3px 5px;
195
}
196
div.chzn-container ul.chzn-choices li.search-choice span {
197
  cursor: default;
198
}
199
div.chzn-container ul.chzn-choices li.search-choice.search-choice-focus {
200
  background: #d4d4d4;
201
}
202
div.chzn-container ul.chzn-choices li.search-choice a.search-choice-close {
203
  position: absolute;
204
  right: 5px;
205
  top: 6px;
206
  display: block;
207
  width: 8px;
208
  height: 9px;
209
  font-size: 1px;
210
  background: url(chosen-sprite.png) right top no-repeat;
211
}
212
div.chzn-container ul.chzn-choices li.search-choice a.search-choice-close:hover {
213
  background-position: right -9px;
214
}
215
div.chzn-container ul.chzn-choices li.search-choice.search-choice-focus a.search-choice-close {
216
  background-position: right -9px;
217
}
218

    
219

    
220
/* Results */
221
div.chzn-container ul.chzn-results {
222
  margin: 0 4px 4px 0;
223
  max-height: 190px;
224
  padding: 0 0 0 4px;
225
  position: relative;
226
  overflow-x: hidden;
227
  overflow-y: auto;
228
  z-index: 20;
229
}
230
div.chzn-container-multi ul.chzn-results {
231
  margin: -1px 0 0;
232
  padding: 0;
233
}
234
div.chzn-container-multi ul.chzn-results li {
235
  border-left: 0px !important;
236
  border-right: 0px !important;
237
}
238
div.chzn-container ul.chzn-results li {
239
  line-height: 80%;
240
  padding: 7px 7px 8px;
241
  z-index: 22;
242
  margin: 0;
243
  list-style-type: none;
244
}
245
div.chzn-container ul.chzn-results li.active-result {
246
  cursor: pointer;
247
}
248
div.chzn-container ul.chzn-results li em {
249
  font-style: normal;
250
  background: #FEFFDC;
251
}
252
div.chzn-container ul.chzn-results li.highlighted {
253
  background: #3875d7;
254
  color: #fff;
255
}
256
div.chzn-container ul.chzn-results li.highlighted em {
257
  background: transparent;
258
}
259
div.chzn-container ul.chzn-results li.no-results {
260
  background: #F4F4F4;
261
}
262
div.chzn-container ul.chzn-results li.group-result {
263
  cursor: default;
264
  color: #999;
265
  font-weight: bold;
266
}
267
div.chzn-container ul.chzn-results li.group-option {
268
  padding-left: 20px;
269
}
270

    
271
div.chzn-container-multi div.chzn-drop li.result-selected {
272
  display: none;
273
}
274

    
275

    
276

    
277
/* Active */
278
div.chzn-container-active a.chzn-single {
279
  -webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
280
  -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
281
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
282
  border: 1px solid #5897fb;
283
}
284
div.chzn-container-active a.chzn-single-with-drop {
285
  border: 1px solid #aaa;
286
  border-width: 1px 1px 1px;
287
  -moz-box-shadow:  0px 1px 0px #FFF inset;
288
  -webkit-box-shadow:  0px 1px 0px #FFF inset;
289
  box-shadow: 0px 1px 0px #FFF inset;
290
  background: #EEE;
291
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
292
  background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
293
  background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
294
  -webkit-border-bottom-left-radius: 0px;
295
  -webkit-border-bottom-right-radius: 0px;
296
  -moz-border-radius-bottomleft: 0px;
297
  -moz-border-radius-bottomright: 0px;
298
  border-bottom-left-radius: 0px;
299
  border-bottom-right-radius: 0px;
300
}
301
div.chzn-container-active a.chzn-single-with-drop div {
302
  background: transparent;
303
  border-left: none;
304
}
305
div.chzn-container-active a.chzn-single-with-drop div b {
306
  background-position: -18px 1px;
307
}
308
div.chzn-container-active ul.chzn-choices {
309
  z-index: 21;
310
  -webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
311
  -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
312
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
313
  border: 1px solid #5897fb;
314
}
315
div.chzn-container-active ul.chzn-choices input {
316
  color: #111 !important;
317
}
(2-2/6)