chosen.css 13 KB

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