chosen.css 12 KB

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