chosen.css 13 KB

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