jquery.chosen.css 13 KB

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