chosen.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. /*
  2. *
  3. * Chosen for Bootstrap and Less
  4. *
  5. * Converted by @whitetruffle (http://www.twitter.com/whitetruffle)
  6. * from @joeylomanto's SASS fork (http://chosen-sass-bootstrap.herokuapp.com/)
  7. * Havest: @harvest
  8. *
  9. */
  10. .chzn-container {
  11. position: relative;
  12. display: inline-block;
  13. zoom: 1;
  14. *display: inline;
  15. }
  16. .chzn-container .chzn-drop {
  17. -webkit-border-radius: 4px;
  18. -moz-border-radius: 4px;
  19. border-radius: 4px;
  20. -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
  21. -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
  22. box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
  23. background: #fff;
  24. border: 1px solid #CCC;
  25. position: absolute;
  26. top: 29px;
  27. left: 0;
  28. z-index: 1010;
  29. margin: 4px 0 0;
  30. }
  31. .chzn-container-single .chzn-single {
  32. -webkit-border-radius: 3px;
  33. -moz-border-radius: 3px;
  34. border-radius: 3px;
  35. -webkit-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
  36. -moz-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
  37. box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
  38. -webkit-background-clip: padding-box;
  39. -moz-background-clip: padding-box;
  40. background-clip: padding-box;
  41. background-color: #f6f6f6;
  42. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(50%, #f6f6f6), to(#f4f4f4));
  43. background-image: -webkit-linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  44. background-image: -moz-linear-gradient(top, #ffffff, #f6f6f6 50%, #f4f4f4);
  45. background-image: -o-linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  46. background-image: linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  47. background-repeat: no-repeat;
  48. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff4f4f4', GradientType=0);
  49. -moz-background-clip: padding;
  50. background-color: #ffffff;
  51. border: 1px solid #CCC;
  52. display: block;
  53. overflow: hidden;
  54. white-space: nowrap;
  55. position: relative;
  56. height: 28px;
  57. line-height: 29px;
  58. padding: 0 0 0 8px;
  59. color: #555555;
  60. text-decoration: none;
  61. }
  62. .chzn-container-single .chzn-single span {
  63. overflow: hidden;
  64. text-overflow: ellipsis;
  65. white-space: nowrap;
  66. margin-right: 26px;
  67. display: block;
  68. overflow: hidden;
  69. white-space: nowrap;
  70. }
  71. .chzn-container-single .chzn-single abbr {
  72. display: block;
  73. position: absolute;
  74. right: 26px;
  75. top: 8px;
  76. width: 12px;
  77. height: 13px;
  78. font-size: 1px;
  79. background: url("chosen-sprite.png") right top no-repeat;
  80. }
  81. .chzn-container-single .chzn-single abbr:hover {
  82. background-position: right -11px;
  83. }
  84. .chzn-container-single .chzn-single div {
  85. position: absolute;
  86. right: 0;
  87. top: 0;
  88. display: block;
  89. height: 100%;
  90. width: 18px;
  91. }
  92. .chzn-container-single .chzn-single div b {
  93. background: url("chosen-sprite.png") no-repeat 0 2px;
  94. display: block;
  95. width: 100%;
  96. height: 100%;
  97. }
  98. .chzn-container-single .chzn-search {
  99. padding: 3px 4px;
  100. position: relative;
  101. margin: 0;
  102. white-space: nowrap;
  103. z-index: 1010;
  104. }
  105. .chzn-container-single .chzn-search input {
  106. margin: 1px 0;
  107. padding: 4px 20px 4px 5px;
  108. outline: 0;
  109. }
  110. .chzn-container-single .chzn-default {
  111. color: #999;
  112. }
  113. .chzn-container-single .chzn-drop {
  114. -webkit-border-radius: 3px;
  115. -moz-border-radius: 3px;
  116. border-radius: 3px;
  117. -webkit-background-clip: padding-box;
  118. -moz-background-clip: padding-box;
  119. background-clip: padding-box;
  120. -moz-background-clip: padding;
  121. }
  122. .chzn-container-single.chzn-disabled .chzn-single abbr:hover {
  123. background-position: right top;
  124. }
  125. .chzn-container-single-nosearch .chzn-search input {
  126. position: absolute;
  127. left: -9000px;
  128. }
  129. .chzn-container-multi .chzn-choices {
  130. -webkit-border-radius: 3px;
  131. -moz-border-radius: 3px;
  132. border-radius: 3px;
  133. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  134. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  135. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  136. -webkit-transition: border linear 0.2s;
  137. -moz-transition: border linear 0.2s;
  138. -o-transition: border linear 0.2s;
  139. transition: border linear 0.2s;
  140. -webkit-transition: box-shadow linear 0.2s;
  141. -moz-transition: box-shadow linear 0.2s;
  142. -o-transition: box-shadow linear 0.2s;
  143. transition: box-shadow linear 0.2s;
  144. background-color: #ffffff !important;
  145. border: 1px solid #cccccc;
  146. cursor: text;
  147. overflow: hidden;
  148. height: auto !important;
  149. height: 1%;
  150. position: relative;
  151. display: block;
  152. padding: 0;
  153. margin: 0;
  154. font-size: 14px;
  155. line-height: 20px;
  156. color: #555555;
  157. }
  158. .chzn-container-multi .chzn-choices li {
  159. float: left;
  160. list-style: none;
  161. }
  162. .chzn-container-multi .chzn-choices .search-field {
  163. white-space: nowrap;
  164. margin: 0;
  165. padding: 0;
  166. }
  167. .chzn-container-multi .chzn-choices .search-field input {
  168. -webkit-box-shadow: none;
  169. -moz-box-shadow: none;
  170. box-shadow: none;
  171. color: #555555;
  172. background: transparent !important;
  173. border: 0 !important;
  174. font-family: sans-serif;
  175. font-size: 100%;
  176. height: 15px;
  177. padding: 5px;
  178. margin: 1px 0 2px;
  179. outline: 0;
  180. }
  181. .chzn-container-multi .chzn-choices .search-field .default {
  182. color: #999;
  183. }
  184. .chzn-container-multi .chzn-choices .search-choice {
  185. -webkit-border-radius: 3px;
  186. -moz-border-radius: 3px;
  187. border-radius: 3px;
  188. -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  189. -moz-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  190. box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  191. background-color: #f6f6f6;
  192. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(50%, #f6f6f6), to(#f4f4f4));
  193. background-image: -webkit-linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  194. background-image: -moz-linear-gradient(top, #ffffff, #f6f6f6 50%, #f4f4f4);
  195. background-image: -o-linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  196. background-image: linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  197. background-repeat: no-repeat;
  198. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff4f4f4', GradientType=0);
  199. -webkit-background-clip: padding-box;
  200. -moz-background-clip: padding-box;
  201. background-clip: padding-box;
  202. -moz-background-clip: padding;
  203. color: #555555;
  204. border: 1px solid #999999;
  205. line-height: 13px;
  206. padding: 3px 20px 3px 5px;
  207. margin: 3px 0 3px 5px;
  208. position: relative;
  209. cursor: default;
  210. }
  211. .chzn-container-multi .chzn-choices .search-choice .search-choice-close {
  212. display: block;
  213. position: absolute;
  214. right: 3px;
  215. top: 4px;
  216. width: 12px;
  217. height: 13px;
  218. font-size: 1px;
  219. background: url("chosen-sprite.png") right top no-repeat;
  220. }
  221. .chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
  222. background-position: right -11px;
  223. }
  224. .chzn-container-multi .chzn-choices .search-choice.search-choice-disabled {
  225. background-color: #eeeeee;
  226. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4f4f4), color-stop(50%, #f0f0f0), to(#e8e8e8));
  227. background-image: -webkit-linear-gradient(#f4f4f4, #f0f0f0 50%, #e8e8e8);
  228. background-image: -moz-linear-gradient(top, #f4f4f4, #f0f0f0 50%, #e8e8e8);
  229. background-image: -o-linear-gradient(#f4f4f4, #f0f0f0 50%, #e8e8e8);
  230. background-image: linear-gradient(#f4f4f4, #f0f0f0 50%, #e8e8e8);
  231. background-repeat: no-repeat;
  232. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff4f4f4', endColorstr='#ffe8e8e8', GradientType=0);
  233. color: #666;
  234. border: 1px solid #cccccc;
  235. padding-right: 5px;
  236. }
  237. .chzn-container-multi .chzn-choices .search-choice-focus {
  238. background: #d4d4d4;
  239. }
  240. .chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
  241. background-position: right -11px;
  242. }
  243. .chzn-container .chzn-results {
  244. margin: 0 4px 4px 0;
  245. max-height: 240px;
  246. padding: 0 0 0 4px;
  247. position: relative;
  248. overflow-x: hidden;
  249. overflow-y: auto;
  250. -webkit-overflow-scrolling: touch;
  251. }
  252. .chzn-container .chzn-results li {
  253. display: none;
  254. line-height: 15px;
  255. padding: 5px 6px;
  256. margin: 0;
  257. list-style: none;
  258. }
  259. .chzn-container .chzn-results li em {
  260. background: #feffde;
  261. font-style: normal;
  262. }
  263. .chzn-container .chzn-results .no-results {
  264. background: #f4f4f4;
  265. display: list-item;
  266. }
  267. .chzn-container .chzn-results .group-result {
  268. cursor: default;
  269. color: #999;
  270. font-weight: bold;
  271. }
  272. .chzn-container .chzn-results .group-option {
  273. padding-left: 15px;
  274. }
  275. .chzn-container .chzn-results .active-result {
  276. cursor: pointer;
  277. display: list-item;
  278. }
  279. .chzn-container .chzn-results .highlighted {
  280. background-color: #326dcc;
  281. background-image: -moz-linear-gradient(top, #3875d7, #2a62bc);
  282. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3875d7), to(#2a62bc));
  283. background-image: -webkit-linear-gradient(top, #3875d7, #2a62bc);
  284. background-image: -o-linear-gradient(top, #3875d7, #2a62bc);
  285. background-image: linear-gradient(to bottom, #3875d7, #2a62bc);
  286. background-repeat: repeat-x;
  287. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3875d7', endColorstr='#ff2a62bc', GradientType=0);
  288. color: #fff;
  289. }
  290. .chzn-container .chzn-results .highlighted em {
  291. background: transparent;
  292. }
  293. .chzn-container .chzn-results-scroll {
  294. background: white;
  295. margin: 0 4px;
  296. position: absolute;
  297. text-align: center;
  298. width: 321px;
  299. /* This should by dynamic with js */
  300. z-index: 1;
  301. }
  302. .chzn-container .chzn-results-scroll span {
  303. display: inline-block;
  304. height: 17px;
  305. text-indent: -5000px;
  306. width: 9px;
  307. }
  308. .chzn-container .chzn-results-scroll-down {
  309. bottom: 0;
  310. }
  311. .chzn-container .chzn-results-scroll-down span {
  312. background: url("chosen-sprite.png") no-repeat -4px -3px;
  313. }
  314. .chzn-container .chzn-results-scroll-up span {
  315. background: url("chosen-sprite.png") no-repeat -22px -3px;
  316. }
  317. .chzn-container-multi .chzn-results {
  318. margin: 4px;
  319. padding: 0;
  320. }
  321. .chzn-container-multi .chzn-drop .result-selected {
  322. display: none;
  323. }
  324. .chzn-container-active .chzn-single {
  325. border: 1px solid #CCC;
  326. }
  327. .chzn-container-active .chzn-single .chzn-drop {
  328. margin-top: -29px;
  329. }
  330. .chzn-container-active .chzn-single-with-drop {
  331. -webkit-box-shadow: none;
  332. -moz-box-shadow: none;
  333. box-shadow: none;
  334. border-color: #CCC;
  335. }
  336. .chzn-container-active .chzn-single-with-drop div {
  337. background: transparent;
  338. border-left: none;
  339. }
  340. .chzn-container-active .chzn-single-with-drop div b {
  341. background-position: -18px 1px;
  342. }
  343. .chzn-container-active .chzn-choices {
  344. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  345. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  346. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  347. border: 1px solid rgba(82, 168, 236, 0.8);
  348. outline: 0;
  349. outline: thin dotted \9;
  350. /* IE6-9 */
  351. }
  352. .chzn-container-active .chzn-choices .search-field input {
  353. color: #111 !important;
  354. }
  355. .chzn-disabled {
  356. opacity: 0.005;
  357. filter: alpha(opacity=0.5);
  358. cursor: default;
  359. }
  360. .chzn-disabled .chzn-single {
  361. cursor: default;
  362. }
  363. .chzn-disabled .search-choice-close {
  364. cursor: default;
  365. }
  366. .chzn-rtl {
  367. text-align: right;
  368. }
  369. .chzn-rtl .chzn-single {
  370. padding: 0 8px 0 0;
  371. overflow: visible;
  372. }
  373. .chzn-rtl .chzn-single span {
  374. margin-left: 26px;
  375. margin-right: 0;
  376. direction: rtl;
  377. }
  378. .chzn-rtl .chzn-single div {
  379. left: 3px;
  380. right: auto;
  381. }
  382. .chzn-rtl .chzn-single abbr {
  383. left: 26px;
  384. right: auto;
  385. }
  386. .chzn-rtl .chzn-choices li {
  387. float: right;
  388. }
  389. .chzn-rtl .chzn-choices .search-field input {
  390. direction: rtl;
  391. }
  392. .chzn-rtl .chzn-choices .search-choice {
  393. padding: 3px 5px 3px 19px;
  394. margin: 3px 5px 3px 0;
  395. }
  396. .chzn-rtl .chzn-choices .search-choice .search-choice-close {
  397. left: 4px;
  398. right: auto;
  399. background-position: right top;
  400. }
  401. .chzn-rtl .chzn-results .group-option {
  402. padding-left: 0;
  403. padding-right: 15px;
  404. }
  405. .chzn-rtl .chzn-search input {
  406. padding: 4px 5px 4px 20px;
  407. direction: rtl;
  408. }
  409. .chzn-rtl.chzn-container-single .chzn-results {
  410. margin: 0 0 4px 4px;
  411. padding: 0 4px 0 0;
  412. }
  413. .chzn-rtl.chzn-container-active .chzn-single-with-drop div {
  414. border-right: none;
  415. }