jquery.chosen.css 12 KB

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