]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - themes/default/less/chosen.less
Release 6.5.3
[Github/sugarcrm.git] / themes / default / less / chosen.less
1 // CHOSEN
2 // ---------
3
4 /* @group Base */
5 .chzn-container {
6   font-size: 13px;
7   position: relative;
8   display: inline-block;
9   zoom: 1;
10   *display: inline;
11 }
12 .chzn-container .chzn-drop {
13   background: #fff;
14   border: 1px solid #aaa;
15   border-top: 0;
16   position: absolute;
17   top: 29px;
18   left: 0;
19   -webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
20   -moz-box-shadow   : 0 4px 5px rgba(0,0,0,.15);
21   -o-box-shadow     : 0 4px 5px rgba(0,0,0,.15);
22   box-shadow        : 0 4px 5px rgba(0,0,0,.15);
23   z-index: 999;
24 }
25 /* @end */
26
27 /* @group Single Chosen */
28 .chzn-container-single .chzn-single {
29   background-color: #ffffff;
30   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0 );   
31   background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
32   background-image: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
33   background-image: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
34   background-image: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
35   background-image: -ms-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
36   background-image: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%); 
37   -webkit-border-radius: 5px;
38   -moz-border-radius   : 5px;
39   border-radius        : 5px;
40   -moz-background-clip   : padding;
41   -webkit-background-clip: padding-box;
42   background-clip        : padding-box;
43   border: 1px solid #aaaaaa;
44   -webkit-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
45   -moz-box-shadow   : 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
46   box-shadow        : 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
47   display: block;
48   overflow: hidden;
49   white-space: nowrap;
50   position: relative;
51   height: 23px;
52   line-height: 24px;
53   padding: 0 0 0 8px;
54   color: #444444;
55   text-decoration: none;
56 }
57 .chzn-container-single .chzn-default {
58         color: #999;
59 }
60 .chzn-container-single .chzn-single span {
61   margin-right: 26px;
62   display: block;
63   overflow: hidden;
64   white-space: nowrap;
65   -o-text-overflow: ellipsis;
66   -ms-text-overflow: ellipsis;
67   text-overflow: ellipsis;
68 }
69 .chzn-container-single .chzn-single abbr {
70   display: block;
71   position: absolute;
72   right: 26px;
73   top: 6px;
74   width: 12px;
75   height: 13px;
76   font-size: 1px;
77   background: url('../img/chosen-sprite.png') right top no-repeat;
78 }
79 .chzn-container-single .chzn-single abbr:hover {
80   background-position: right -11px;
81 }
82 .chzn-container-single .chzn-single div {
83   position: absolute;
84   right: 0;
85   top: 0;
86   display: block;
87   height: 100%;
88   width: 18px;
89 }
90 .chzn-container-single .chzn-single div b {
91   background: url('../img/chosen-sprite.png') no-repeat 0 0;
92   display: block;
93   width: 100%;
94   height: 100%;
95 }
96 .chzn-container-single .chzn-search {
97   padding: 3px 4px;
98   position: relative;
99   margin: 0;
100   white-space: nowrap;
101   z-index: 1010;
102 }
103 .chzn-container-single .chzn-search input {
104   background: #fff url('../img/chosen-sprite.png') no-repeat 100% -22px;
105   background: url('../img/chosen-sprite.png') no-repeat 100% -22px, -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
106   background: url('../img/chosen-sprite.png') no-repeat 100% -22px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
107   background: url('../img/chosen-sprite.png') no-repeat 100% -22px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
108   background: url('../img/chosen-sprite.png') no-repeat 100% -22px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
109   background: url('../img/chosen-sprite.png') no-repeat 100% -22px, -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
110   background: url('../img/chosen-sprite.png') no-repeat 100% -22px, linear-gradient(top, #eeeeee 1%, #ffffff 15%);
111   margin: 1px 0;
112   padding: 4px 20px 4px 5px;
113   outline: 0;
114   border: 1px solid #aaa;
115   font-family: sans-serif;
116   font-size: 1em;
117 }
118 .chzn-container-single .chzn-drop {
119   -webkit-border-radius: 0 0 4px 4px;
120   -moz-border-radius   : 0 0 4px 4px;
121   border-radius        : 0 0 4px 4px;
122   -moz-background-clip   : padding;
123   -webkit-background-clip: padding-box;
124   background-clip        : padding-box;
125 }
126 /* @end */
127
128 .chzn-container-single-nosearch .chzn-search input {
129   position: absolute;
130   left: -9000px;
131 }
132
133 /* @group Multi Chosen */
134 .chzn-container-multi .chzn-choices {
135   background-color: #fff;
136   background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
137   background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
138   background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
139   background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
140   background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
141   background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
142   border: 1px solid #aaa;
143   margin: 0;
144   padding: 0;
145   cursor: text;
146   overflow: hidden;
147   height: auto !important;
148   height: 1%;
149   position: relative;
150 }
151 .chzn-container-multi .chzn-choices li {
152   float: left;
153   list-style: none;
154 }
155 .chzn-container-multi .chzn-choices .search-field {
156   white-space: nowrap;
157   margin: 0;
158   padding: 0;
159 }
160 .chzn-container-multi .chzn-choices .search-field input {
161   color: #666;
162   background: transparent !important;
163   border: 0 !important;
164   font-family: sans-serif;
165   font-size: 100%;
166   height: 15px;
167   padding: 5px;
168   margin: 1px 0;
169   outline: 0;
170   -webkit-box-shadow: none;
171   -moz-box-shadow   : none;
172   -o-box-shadow     : none;
173   box-shadow        : none;
174 }
175 .chzn-container-multi .chzn-choices .search-field .default {
176   color: #999;
177 }
178 .chzn-container-multi .chzn-choices .search-choice {
179   -webkit-border-radius: 3px;
180   -moz-border-radius   : 3px;
181   border-radius        : 3px;
182   -moz-background-clip   : padding;
183   -webkit-background-clip: padding-box;
184   background-clip        : padding-box;
185   background-color: #e4e4e4;
186   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 ); 
187   background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
188   background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
189   background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
190   background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
191   background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
192   background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%); 
193   -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
194   -moz-box-shadow   : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
195   box-shadow        : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
196   color: #333;
197   border: 1px solid #aaaaaa;
198   line-height: 13px;
199   padding: 3px 20px 3px 5px;
200   margin: 3px 0 3px 5px;
201   position: relative;
202   cursor: default;
203 }
204 .chzn-container-multi .chzn-choices .search-choice-focus {
205   background: #d4d4d4;
206 }
207 .chzn-container-multi .chzn-choices .search-choice .search-choice-close {
208   display: block;
209   position: absolute;
210   right: 3px;
211   top: 4px;
212   width: 12px;
213   height: 13px;
214   font-size: 1px;
215   background: url('../img/chosen-sprite.png') right top no-repeat;
216 }
217 .chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
218   background-position: right -11px;
219 }
220 .chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
221   background-position: right -11px;
222 }
223 /* @end */
224
225 /* @group Results */
226 .chzn-container .chzn-results {
227   margin: 0 4px 4px 0;
228   max-height: 240px;
229   padding: 0 0 0 4px;
230   position: relative;
231   overflow-x: hidden;
232   overflow-y: auto;
233 }
234 .chzn-container-multi .chzn-results {
235   margin: -1px 0 0;
236   padding: 0;
237 }
238 .chzn-container .chzn-results li {
239   display: none;
240   line-height: 15px;
241   padding: 5px 6px;
242   margin: 0;
243   list-style: none;
244 }
245 .chzn-container .chzn-results .active-result {
246   cursor: pointer;
247   display: list-item;
248 }
249 .chzn-container .chzn-results .highlighted {
250   background-color: #3875d7;
251   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0 );  
252   background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
253   background-image: -webkit-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
254   background-image: -moz-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
255   background-image: -o-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
256   background-image: -ms-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
257   background-image: linear-gradient(top, #3875d7 20%, #2a62bc 90%);
258   color: #fff;
259 }
260 .chzn-container .chzn-results li em {
261   background: #feffde;
262   font-style: normal;
263 }
264 .chzn-container .chzn-results .highlighted em {
265   background: transparent;
266 }
267 .chzn-container .chzn-results .no-results {
268   background: #f4f4f4;
269   display: list-item;
270 }
271 .chzn-container .chzn-results .group-result {
272   cursor: default;
273   color: #999;
274   font-weight: bold;
275 }
276 .chzn-container .chzn-results .group-option {
277   padding-left: 15px;
278 }
279 .chzn-container-multi .chzn-drop .result-selected {
280   display: none;
281 }
282 .chzn-container .chzn-results-scroll {
283   background: white;
284   margin: 0 4px;
285   position: absolute;
286   text-align: center;
287   width: 321px; /* This should by dynamic with js */
288   z-index: 1;
289 }
290 .chzn-container .chzn-results-scroll span {
291   display: inline-block;
292   height: 17px;
293   text-indent: -5000px;
294   width: 9px;
295 }
296 .chzn-container .chzn-results-scroll-down {
297   bottom: 0;
298 }
299 .chzn-container .chzn-results-scroll-down span {
300   background: url('../img/chosen-sprite.png') no-repeat -4px -3px;
301 }
302 .chzn-container .chzn-results-scroll-up span {
303   background: url('../img/chosen-sprite.png') no-repeat -22px -3px;
304 }
305 /* @end */
306
307 /* @group Active  */
308 .chzn-container-active .chzn-single {
309   -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
310   -moz-box-shadow   : 0 0 5px rgba(0,0,0,.3);
311   -o-box-shadow     : 0 0 5px rgba(0,0,0,.3);
312   box-shadow        : 0 0 5px rgba(0,0,0,.3);
313   border: 1px solid #5897fb;
314 }
315 .chzn-container-active .chzn-single-with-drop {
316   border: 1px solid #aaa;
317   -webkit-box-shadow: 0 1px 0 #fff inset;
318   -moz-box-shadow   : 0 1px 0 #fff inset;
319   -o-box-shadow     : 0 1px 0 #fff inset;
320   box-shadow        : 0 1px 0 #fff inset;
321   background-color: #eee;
322   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0 );
323   background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
324   background-image: -webkit-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
325   background-image: -moz-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
326   background-image: -o-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
327   background-image: -ms-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
328   background-image: linear-gradient(top, #eeeeee 20%, #ffffff 80%);
329   -webkit-border-bottom-left-radius : 0;
330   -webkit-border-bottom-right-radius: 0;
331   -moz-border-radius-bottomleft : 0;
332   -moz-border-radius-bottomright: 0;
333   border-bottom-left-radius : 0;
334   border-bottom-right-radius: 0;
335 }
336 .chzn-container-active .chzn-single-with-drop div {
337   background: transparent;
338   border-left: none;
339 }
340 .chzn-container-active .chzn-single-with-drop div b {
341   background-position: -18px 1px;
342 }
343 .chzn-container-active .chzn-choices {
344   -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
345   -moz-box-shadow   : 0 0 5px rgba(0,0,0,.3);
346   -o-box-shadow     : 0 0 5px rgba(0,0,0,.3);
347   box-shadow        : 0 0 5px rgba(0,0,0,.3);
348   border: 1px solid #5897fb;
349 }
350 .chzn-container-active .chzn-choices .search-field input {
351   color: #111 !important;
352 }
353 /* @end */
354
355 /* @group Disabled Support */
356 .chzn-disabled {
357   cursor: default;
358   opacity:0.5 !important;
359 }
360 .chzn-disabled .chzn-single {
361   cursor: default;
362 }
363 .chzn-disabled .chzn-choices .search-choice .search-choice-close {
364   cursor: default;
365 }
366
367 /* @group Right to Left */
368 .chzn-rtl { text-align: right; }
369 .chzn-rtl .chzn-single { padding: 0 8px 0 0; overflow: visible; }
370 .chzn-rtl .chzn-single span { margin-left: 26px; margin-right: 0; direction: rtl; }
371
372 .chzn-rtl .chzn-single div { left: 3px; right: auto; }
373 .chzn-rtl .chzn-single abbr {
374   left: 26px;
375   right: auto;
376 }
377 .chzn-rtl .chzn-choices .search-field input { direction: rtl; }
378 .chzn-rtl .chzn-choices li { float: right; }
379 .chzn-rtl .chzn-choices .search-choice { padding: 3px 5px 3px 19px; margin: 3px 5px 3px 0; }
380 .chzn-rtl .chzn-choices .search-choice .search-choice-close { left: 4px; right: auto; background-position: right top;}
381 .chzn-rtl.chzn-container-single .chzn-results { margin: 0 0 4px 4px; padding: 0 4px 0 0; }
382 .chzn-rtl .chzn-results .group-option { padding-left: 0; padding-right: 15px; }
383 .chzn-rtl.chzn-container-active .chzn-single-with-drop div { border-right: none; }
384 .chzn-rtl .chzn-search input {
385   background: #fff url('../chosen-sprite.png') no-repeat -38px -22px;
386   background: url('../chosen-sprite.png') no-repeat -38px -22px, -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
387   background: url('../img/chosen-sprite.png') no-repeat -38px -22px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);  
388   background: url('../img/chosen-sprite.png') no-repeat -38px -22px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
389   background: url('../img/chosen-sprite.png') no-repeat -38px -22px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
390   background: url('../img/chosen-sprite.png') no-repeat -38px -22px, -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
391   background: url('../img/chosen-sprite.png') no-repeat -38px -22px, linear-gradient(top, #eeeeee 1%, #ffffff 15%);
392   padding: 4px 5px 4px 20px;
393   direction: rtl;
394 }
395 /* @end */