source: pro-violet-viettel/www/deploy/20150304/assets/css/less/thirdparty-chosen.less @ 782

Last change on this file since 782 was 780, checked in by dungnv, 10 years ago
File size: 5.8 KB
RevLine 
[780]1.chosen-container + .help-inline {
2 vertical-align:middle;
3}
4
5/** chosen select boxes -- replace sprite icons with FontAwesome icons */
6.chosen-select {
7  display:inline !important; /* for validation plugin to work it must be displayed */
8  visibility:hidden;
9  opacity:0;
10  position:absolute;
11  z-index:-1;
12}
13.chosen-container , [class*="chosen-container"]{
14  vertical-align:middle;
15  > .chosen-single {
16        line-height:28px;
17        height:30px;
18        box-shadow:none;
19        background:#FAFAFA;
20  }
21}
22
23.chosen-choices {
24  box-shadow:none !important;
25}
26.chosen-container-single .chosen-single abbr {
27  background: none;
28}
29.chosen-container-single .chosen-single abbr:after {
30  content:"\f00d";
31  display: inline-block;
32  color:#888;
33  font-family:FontAwesome;
34  font-size:13px;
35
36  position: absolute;
37  right: 0; top: -7px;
38}
39.chosen-container-single .chosen-single abbr:hover:after {
40  color:#464646;
41}
42.chosen-container-single.chosen-disabled .chosen-single abbr:hover:after {
43  color:#464646;
44}
45
46
47.chosen-single div b {
48         background: none !important;
49         &:before {
50                content:"\f0d7";
51                display:inline-block;
52         
53                color:#888;
54                font-family:FontAwesome;
55                font-size:12px;
56         
57                position:relative; top:-1px; left:1px;
58         }
59}
60.chosen-container-active.chosen-with-drop .chosen-single div b:before {
61        content:"\f0d8";
62}
63
64
65.chosen-container-single {
66  .chosen-search {
67         position:relative;
68         input[type="text"] {
69                background:none;
70                border-radius:0;
71                line-height:28px;
72                height:28px;
73         }
74         &:after{
75                content:"\f002";
76                display:inline-block;
77                 
78                color:#888;
79                font-family:FontAwesome;
80                font-size:14px;
81                 
82                position:absolute; top:8px; right:12px;
83        }
84  }
85}
86
87.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
88        height:25px;
89}
90
91
92.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
93   background:none;
94
95  &:before {
96          content:"\f00d";
97          display: inline-block;
98          color:#888;
99          font-family:FontAwesome;
100          font-size:13px;
101         
102          position: absolute;
103          right: 2px; top: -1px;
104  }
105  &:hover {
106        text-decoration:none;
107  }
108  &:hover:before {
109        color:#464646;
110  }
111}
112.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close:before {
113  color:#464646;
114}
115
116
117.chosen-container .chosen-results-scroll-down ,
118.chosen-container .chosen-results-scroll-up {
119  span {
120        background: none;
121        &:before{
122          content:"\f0d7";
123          display:inline-block;
124         
125          color:#888;
126          font-family:FontAwesome;
127          font-size:12px;
128
129          position:relative; top:-1px; left:1px;
130        }
131  }
132 
133}
134.chosen-container .chosen-results-scroll-up span:before {
135  content:"\f0d8";
136}
137.chosen-container-active .chosen-single-with-drop div b:before {
138  content:"\f0d8";
139}
140
141
142.chosen-rtl .chosen-search {
143  input[type="text"] {
144        background: none;
145  }
146  &:after {
147        content:"";
148        display:none;
149 }
150 &:before {
151        content:"\f002";
152        display:inline-block;
153 
154        color:#888;
155        font-family:FontAwesome;
156        font-size:14px;
157 
158        position:absolute; top:9px; left:12px;
159 }
160}
161
162
163
164/** chosen - etc */
165.chosen-container-single .chosen-single {
166  border-radius:0;
167}
168.chosen-container .chosen-results li.highlighted {
169  background:#86BD6F;/* green */
170  background:#4492C9;/* blue1 */
171  background:#316AC5;
172  color: #FFF;
173}
174.chosen-container-single .chosen-drop {
175  border-radius:0;
176  border-bottom:3px solid #4492C9;
177  border-color:#4492C9;
178}
179.chosen-single.chosen-single-with-drop  , .chosen-container-active .chosen-single{
180  border-color:#4492C9;
181}
182
183.chosen-single {
184        .form-group.has-error & {
185                border-color:@error-state-border !important;
186        }
187        .form-group.has-info & {
188                border-color:@info-state-border !important;
189        }
190        .form-group.has-warning & {
191                border-color:@warning-state-border !important;
192        }
193        .form-group.has-success & {
194                border-color:@success-state-border !important;
195        }
196}
197
198.chosen-rtl .chosen-container-single-nosearch .chosen-search { left: -9999px; }
199.chosen-rtl .chosen-drop { left: -9999px; }
200
201     .modal .chosen-rtl .chosen-container-single-nosearch .chosen-search { left: 9999px; }
202     .modal .chosen-rtl .chosen-drop { left: 9999px; }
203.rtl .modal .chosen-container.chosen-with-drop .chosen-drop { left: auto; right: 0; }
204
205
206
207.chosen-container-active.chosen-with-drop .chosen-single {
208        border-color:#4492C9;
209}
210
211
212
213@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi)  {
214  .chosen-rtl .chosen-search input[type="text"], .chosen-container-single .chosen-single abbr, .chosen-container-single .chosen-single div b, .chosen-container-single .chosen-search input[type="text"], .chosen-container-multi .chosen-choices li.search-choice .search-choice-close, .chosen-container .chosen-results-scroll-down span, .chosen-container .chosen-results-scroll-up span {
215      background-image: none !important;
216      background-repeat: no-repeat !important;
217      background-size: auto !important;
218  }
219}
220
221
222
223
224
225
226
227
228/* a second style (like tag inpit) */
229.tag-input-style + .chosen-container-multi {
230        .chosen-choices li.search-choice {
231                background-image:none;
232                background-color:@tag-bg;
233                color: #FFFFFF;
234                display: inline-block;
235                font-size: 13px;
236                font-weight: normal;
237                margin-bottom: 3px;
238                margin-right: 0;
239                padding: 6px 22px 7px 9px;
240                position: relative;
241                text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
242                transition: all 0.2s ease 0s;
243                vertical-align: baseline;
244                white-space: nowrap;
245               
246                border:none;
247                .box-shadow(none);
248                .border-radius(0);
249               
250                .search-choice-close {
251                        position:absolute;
252                        top:0; bottom:0;
253                        right:0;
254                        width:18px;
255                        height:auto;
256                        line-height:25px;
257                        text-align:center;
258                       
259                        &:before {
260                                color:#FFF;
261                                position:static;
262                                font-size:11px;
263                        }
264                       
265                        &:hover {
266                                background-color:rgba(0,0,0,0.2);
267                                &:before {
268                                        color:#FFF;
269                                }
270                        }
271                }
272        }
273}
274.tag-input-style + .chosen-container-multi.chosen-rtl {
275        .chosen-choices li.search-choice {
276                padding: 6px 9px 7px 22px;
277                margin-left: 0;
278                margin-right:3px;
279
280                .search-choice-close {
281                        right:auto;
282                        left:0;
283                }
284        }
285}
Note: See TracBrowser for help on using the repository browser.