chosen.css 13 KB

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