chosen.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. /*!
  2. Chosen, a Select Box Enhancer for jQuery and Prototype
  3. by Patrick Filler for Harvest, http://getharvest.com
  4. Version 1.3.0
  5. Full source at https://github.com/harvesthq/chosen
  6. Copyright (c) 2011-2014 Harvest http://getharvest.com
  7. MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
  8. This file is generated by `grunt build`, do not edit it by hand.
  9. */
  10. /* @group Base */
  11. .chosen-container {
  12. position: relative;
  13. display: inline-block;
  14. vertical-align: middle;
  15. font-size: 13px;
  16. zoom: 1;
  17. *display: inline;
  18. -webkit-user-select: none;
  19. -moz-user-select: none;
  20. user-select: none;
  21. }
  22. .chosen-container * {
  23. -webkit-box-sizing: border-box;
  24. -moz-box-sizing: border-box;
  25. box-sizing: border-box;
  26. }
  27. .chosen-container .chosen-drop {
  28. position: absolute;
  29. top: 100%;
  30. left: -9999px;
  31. z-index: 1010;
  32. width: 100%;
  33. border: 1px solid #aaa;
  34. border-top: 0;
  35. background: #fff;
  36. box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
  37. }
  38. .chosen-container.chosen-with-drop .chosen-drop {
  39. left: 0;
  40. }
  41. .chosen-container a {
  42. cursor: pointer;
  43. }
  44. /* @end */
  45. /* @group Single Chosen */
  46. .chosen-container-single .chosen-single {
  47. position: relative;
  48. display: block;
  49. overflow: hidden;
  50. padding: 0 0 0 8px;
  51. height: 25px;
  52. border: 1px solid #aaa;
  53. background-color: #fff;
  54. background-clip: padding-box;
  55. box-shadow: 0 0 3px white inset, 0 1px 1px rgba(0, 0, 0, 0.1);
  56. color: #444;
  57. text-decoration: none;
  58. white-space: nowrap;
  59. line-height: 24px;
  60. }
  61. .chosen-container-single .chosen-default {
  62. color: #999;
  63. }
  64. .chosen-container-single .chosen-single span {
  65. display: block;
  66. overflow: hidden;
  67. margin-right: 26px;
  68. text-overflow: ellipsis;
  69. white-space: nowrap;
  70. }
  71. .chosen-container-single .chosen-single-with-deselect span {
  72. margin-right: 38px;
  73. }
  74. .chosen-container-single .chosen-single abbr {
  75. position: absolute;
  76. top: 6px;
  77. right: 26px;
  78. display: block;
  79. width: 12px;
  80. height: 12px;
  81. background: url('chosen-sprite.png') -42px 1px no-repeat;
  82. font-size: 1px;
  83. }
  84. .chosen-container-single .chosen-single abbr:hover {
  85. background-position: -42px -10px;
  86. }
  87. .chosen-container-single.chosen-disabled .chosen-single abbr:hover {
  88. background-position: -42px -10px;
  89. }
  90. .chosen-container-single .chosen-single div {
  91. position: absolute;
  92. top: 0;
  93. right: 0;
  94. display: block;
  95. width: 18px;
  96. height: 100%;
  97. }
  98. .chosen-container-single .chosen-single div b {
  99. display: block;
  100. width: 100%;
  101. height: 100%;
  102. background: url('chosen-sprite.png') no-repeat 0px 2px;
  103. }
  104. .chosen-container-single .chosen-search {
  105. position: relative;
  106. z-index: 1010;
  107. margin: 0;
  108. padding: 3px 4px;
  109. white-space: nowrap;
  110. }
  111. .chosen-container-single .chosen-search input[type="text"] {
  112. margin: 1px 0;
  113. padding: 4px 20px 4px 5px;
  114. width: 100%;
  115. height: auto;
  116. outline: 0;
  117. border: 1px solid #aaa;
  118. background: white url('chosen-sprite.png') no-repeat 100% -20px;
  119. background: url('chosen-sprite.png') no-repeat 100% -20px;
  120. font-size: 1em;
  121. font-family: sans-serif;
  122. line-height: normal;
  123. border-radius: 0;
  124. }
  125. .chosen-container-single .chosen-drop {
  126. margin-top: -1px;
  127. border-radius: 0 0 4px 4px;
  128. background-clip: padding-box;
  129. }
  130. .chosen-container-single.chosen-container-single-nosearch .chosen-search {
  131. position: absolute;
  132. left: -9999px;
  133. }
  134. /* @end */
  135. /* @group Results */
  136. .chosen-container .chosen-results {
  137. color: #444;
  138. position: relative;
  139. overflow-x: hidden;
  140. overflow-y: auto;
  141. margin: 0 4px 4px 0;
  142. padding: 0 0 0 4px;
  143. max-height: 240px;
  144. -webkit-overflow-scrolling: touch;
  145. }
  146. .chosen-container .chosen-results li {
  147. display: none;
  148. margin: 0;
  149. padding: 5px 6px;
  150. list-style: none;
  151. line-height: 15px;
  152. word-wrap: break-word;
  153. -webkit-touch-callout: none;
  154. }
  155. .chosen-container .chosen-results li.active-result {
  156. display: list-item;
  157. cursor: pointer;
  158. }
  159. .chosen-container .chosen-results li.disabled-result {
  160. display: list-item;
  161. color: #ccc;
  162. cursor: default;
  163. }
  164. .chosen-container .chosen-results li.highlighted {
  165. background-color: #3875d7;
  166. background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
  167. background-image: -webkit-linear-gradient(#3875d7 20%, #2a62bc 90%);
  168. background-image: -moz-linear-gradient(#3875d7 20%, #2a62bc 90%);
  169. background-image: -o-linear-gradient(#3875d7 20%, #2a62bc 90%);
  170. background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
  171. color: #fff;
  172. }
  173. .chosen-container .chosen-results li.no-results {
  174. color: #777;
  175. display: list-item;
  176. background: #f4f4f4;
  177. }
  178. .chosen-container .chosen-results li.group-result {
  179. display: list-item;
  180. font-weight: bold;
  181. cursor: default;
  182. }
  183. .chosen-container .chosen-results li.group-option {
  184. padding-left: 15px;
  185. }
  186. .chosen-container .chosen-results li em {
  187. font-style: normal;
  188. text-decoration: underline;
  189. }
  190. /* @end */
  191. /* @group Multi Chosen */
  192. .chosen-container-multi .chosen-choices {
  193. position: relative;
  194. overflow: hidden;
  195. margin: 0;
  196. padding: 0 5px;
  197. width: 100%;
  198. height: auto !important;
  199. height: 1%;
  200. border: 1px solid #aaa;
  201. background-color: #fff;
  202. background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  203. background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
  204. background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
  205. background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
  206. background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
  207. cursor: text;
  208. }
  209. .chosen-container-multi .chosen-choices li {
  210. float: left;
  211. list-style: none;
  212. }
  213. .chosen-container-multi .chosen-choices li.search-field {
  214. margin: 0;
  215. padding: 0;
  216. white-space: nowrap;
  217. }
  218. .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
  219. margin: 1px 0;
  220. padding: 0;
  221. height: 25px;
  222. outline: 0;
  223. border: 0 !important;
  224. background: transparent !important;
  225. box-shadow: none;
  226. color: #999;
  227. font-size: 100%;
  228. font-family: sans-serif;
  229. line-height: normal;
  230. border-radius: 0;
  231. }
  232. .chosen-container-multi .chosen-choices li.search-choice {
  233. position: relative;
  234. margin: 3px 5px 3px 0;
  235. padding: 3px 20px 3px 5px;
  236. border: 1px solid #aaa;
  237. max-width: 100%;
  238. border-radius: 3px;
  239. background-color: #eeeeee;
  240. background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
  241. background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  242. background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  243. background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  244. background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  245. background-size: 100% 19px;
  246. background-repeat: repeat-x;
  247. background-clip: padding-box;
  248. box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  249. color: #333;
  250. line-height: 13px;
  251. cursor: default;
  252. }
  253. .chosen-container-multi .chosen-choices li.search-choice span {
  254. word-wrap: break-word;
  255. }
  256. .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  257. position: absolute;
  258. top: 4px;
  259. right: 3px;
  260. display: block;
  261. width: 12px;
  262. height: 12px;
  263. background: url('chosen-sprite.png') -42px 1px no-repeat;
  264. font-size: 1px;
  265. }
  266. .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
  267. background-position: -42px -10px;
  268. }
  269. .chosen-container-multi .chosen-choices li.search-choice-disabled {
  270. padding-right: 5px;
  271. border: 1px solid #ccc;
  272. background-color: #e4e4e4;
  273. background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
  274. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  275. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  276. background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  277. background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  278. color: #666;
  279. }
  280. .chosen-container-multi .chosen-choices li.search-choice-focus {
  281. background: #d4d4d4;
  282. }
  283. .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
  284. background-position: -42px -10px;
  285. }
  286. .chosen-container-multi .chosen-results {
  287. margin: 0;
  288. padding: 0;
  289. }
  290. .chosen-container-multi .chosen-drop .result-selected {
  291. display: list-item;
  292. color: #ccc;
  293. cursor: default;
  294. }
  295. /* @end */
  296. /* @group Active */
  297. .chosen-container-active .chosen-single {
  298. border: 1px solid #5897fb;
  299. box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  300. }
  301. .chosen-container-active.chosen-with-drop .chosen-single {
  302. }
  303. .chosen-container-active.chosen-with-drop .chosen-single div {
  304. border-left: none;
  305. background: transparent;
  306. }
  307. .chosen-container-active.chosen-with-drop .chosen-single div b {
  308. background-position: -18px 2px;
  309. }
  310. .chosen-container-active .chosen-choices {
  311. border: 1px solid #5897fb;
  312. box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  313. }
  314. .chosen-container-active .chosen-choices li.search-field input[type="text"] {
  315. color: #222 !important;
  316. }
  317. /* @end */
  318. /* @group Disabled Support */
  319. .chosen-disabled {
  320. opacity: 0.5 !important;
  321. cursor: default;
  322. }
  323. .chosen-disabled .chosen-single {
  324. cursor: default;
  325. }
  326. .chosen-disabled .chosen-choices .search-choice .search-choice-close {
  327. cursor: default;
  328. }
  329. /* @end */
  330. /* @group Right to Left */
  331. .chosen-rtl {
  332. text-align: right;
  333. }
  334. .chosen-rtl .chosen-single {
  335. overflow: visible;
  336. padding: 0 8px 0 0;
  337. }
  338. .chosen-rtl .chosen-single span {
  339. margin-right: 0;
  340. margin-left: 26px;
  341. direction: rtl;
  342. }
  343. .chosen-rtl .chosen-single-with-deselect span {
  344. margin-left: 38px;
  345. }
  346. .chosen-rtl .chosen-single div {
  347. right: auto;
  348. left: 3px;
  349. }
  350. .chosen-rtl .chosen-single abbr {
  351. right: auto;
  352. left: 26px;
  353. }
  354. .chosen-rtl .chosen-choices li {
  355. float: right;
  356. }
  357. .chosen-rtl .chosen-choices li.search-field input[type="text"] {
  358. direction: rtl;
  359. }
  360. .chosen-rtl .chosen-choices li.search-choice {
  361. margin: 3px 5px 3px 0;
  362. padding: 3px 5px 3px 19px;
  363. }
  364. .chosen-rtl .chosen-choices li.search-choice .search-choice-close {
  365. right: auto;
  366. left: 4px;
  367. }
  368. .chosen-rtl.chosen-container-single-nosearch .chosen-search,
  369. .chosen-rtl .chosen-drop {
  370. left: 9999px;
  371. }
  372. .chosen-rtl.chosen-container-single .chosen-results {
  373. margin: 0 0 4px 4px;
  374. padding: 0 4px 0 0;
  375. }
  376. .chosen-rtl .chosen-results li.group-option {
  377. padding-right: 15px;
  378. padding-left: 0;
  379. }
  380. .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
  381. border-right: none;
  382. }
  383. .chosen-rtl .chosen-search input[type="text"] {
  384. padding: 4px 5px 4px 20px;
  385. background: white url('chosen-sprite.png') no-repeat -30px -20px;
  386. background: url('chosen-sprite.png') no-repeat -30px -20px;
  387. direction: rtl;
  388. }
  389. .chosen-rtl.chosen-container-single .chosen-single div b {
  390. background-position: 6px 2px;
  391. }
  392. .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
  393. background-position: -12px 2px;
  394. }
  395. /* @end */
  396. /* @group Retina compatibility */
  397. @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
  398. .chosen-rtl .chosen-search input[type="text"],
  399. .chosen-container-single .chosen-single abbr,
  400. .chosen-container-single .chosen-single div b,
  401. .chosen-container-single .chosen-search input[type="text"],
  402. .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
  403. .chosen-container .chosen-results-scroll-down span,
  404. .chosen-container .chosen-results-scroll-up span {
  405. background-image: url('chosen-sprite@2x.png') !important;
  406. background-size: 52px 37px !important;
  407. background-repeat: no-repeat !important;
  408. }
  409. }
  410. /* @end */