chosen.css 12 KB

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