chosen.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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 7px;
  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. -moz-box-sizing: border-box;
  198. background-color: #FFFFFF;
  199. border: 1px solid #CBD5DD;
  200. border-radius: 2px;
  201. cursor: text;
  202. height: auto !important;
  203. margin: 0;
  204. min-height: 30px;
  205. overflow: hidden;
  206. padding: 2px;
  207. position: relative;
  208. width: 100%;
  209. }
  210. .chosen-container-multi .chosen-choices li {
  211. float: left;
  212. list-style: none;
  213. }
  214. .chosen-container-multi .chosen-choices li.search-field {
  215. margin: 0;
  216. padding: 0;
  217. white-space: nowrap;
  218. }
  219. .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
  220. margin: 1px 0;
  221. padding: 5px;
  222. height: 25px;
  223. outline: 0;
  224. border: 0 !important;
  225. background: transparent !important;
  226. box-shadow: none;
  227. color: #666;
  228. font-size: 100%;
  229. font-family: sans-serif;
  230. line-height: normal;
  231. border-radius: 0;
  232. }
  233. .chosen-container-multi .chosen-choices li.search-field .default {
  234. color: #999;
  235. }
  236. .chosen-container-multi .chosen-choices li.search-choice {
  237. position: relative;
  238. margin: 3px 0 3px 5px;
  239. padding: 3px 20px 3px 5px;
  240. border: 1px solid #aaa;
  241. border-radius: 3px;
  242. background-color: #e4e4e4;
  243. 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));
  244. background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  245. background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  246. background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  247. background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  248. background-clip: padding-box;
  249. box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  250. color: #333;
  251. line-height: 13px;
  252. cursor: default;
  253. }
  254. .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  255. position: absolute;
  256. top: 4px;
  257. right: 3px;
  258. display: block;
  259. width: 12px;
  260. height: 12px;
  261. background: url('chosen-sprite.png') -42px 1px no-repeat;
  262. font-size: 1px;
  263. }
  264. .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
  265. background-position: -42px -10px;
  266. }
  267. .chosen-container-multi .chosen-choices li.search-choice-disabled {
  268. padding-right: 5px;
  269. border: 1px solid #ccc;
  270. background-color: #e4e4e4;
  271. 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));
  272. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  273. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  274. background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  275. background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  276. color: #666;
  277. }
  278. .chosen-container-multi .chosen-choices li.search-choice-focus {
  279. background: #d4d4d4;
  280. }
  281. .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
  282. background-position: -42px -10px;
  283. }
  284. .chosen-container-multi .chosen-results {
  285. margin: 0;
  286. padding: 0;
  287. }
  288. .chosen-container-multi .chosen-drop .result-selected {
  289. display: list-item;
  290. color: #ccc;
  291. cursor: default;
  292. }
  293. /* @end */
  294. /* @group Active */
  295. .chosen-container-active .chosen-single {
  296. border: 1px solid #5897fb;
  297. box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  298. }
  299. .chosen-container-active.chosen-with-drop .chosen-single {
  300. border: 1px solid #aaa;
  301. -moz-border-radius-bottomright: 0;
  302. border-bottom-right-radius: 0;
  303. -moz-border-radius-bottomleft: 0;
  304. border-bottom-left-radius: 0;
  305. }
  306. .chosen-container-active.chosen-with-drop .chosen-single div {
  307. border-left: none;
  308. background: transparent;
  309. }
  310. .chosen-container-active.chosen-with-drop .chosen-single div b {
  311. background-position: -18px 7px;
  312. }
  313. .chosen-container-active .chosen-choices {
  314. border: 1px solid #5897fb;
  315. box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  316. }
  317. .chosen-container-active .chosen-choices li.search-field input[type="text"] {
  318. color: #111 !important;
  319. }
  320. /* @end */
  321. /* @group Disabled Support */
  322. .chosen-disabled {
  323. opacity: 0.5 !important;
  324. cursor: default;
  325. }
  326. .chosen-disabled .chosen-single {
  327. cursor: default;
  328. }
  329. .chosen-disabled .chosen-choices .search-choice .search-choice-close {
  330. cursor: default;
  331. }
  332. /* @end */
  333. /* @group Right to Left */
  334. .chosen-rtl {
  335. text-align: right;
  336. }
  337. .chosen-rtl .chosen-single {
  338. overflow: visible;
  339. padding: 0 8px 0 0;
  340. }
  341. .chosen-rtl .chosen-single span {
  342. margin-right: 0;
  343. margin-left: 26px;
  344. direction: rtl;
  345. }
  346. .chosen-rtl .chosen-single-with-deselect span {
  347. margin-left: 38px;
  348. }
  349. .chosen-rtl .chosen-single div {
  350. right: auto;
  351. left: 3px;
  352. }
  353. .chosen-rtl .chosen-single abbr {
  354. right: auto;
  355. left: 26px;
  356. }
  357. .chosen-rtl .chosen-choices li {
  358. float: right;
  359. }
  360. .chosen-rtl .chosen-choices li.search-field input[type="text"] {
  361. direction: rtl;
  362. }
  363. .chosen-rtl .chosen-choices li.search-choice {
  364. margin: 3px 5px 3px 0;
  365. padding: 3px 5px 3px 19px;
  366. }
  367. .chosen-rtl .chosen-choices li.search-choice .search-choice-close {
  368. right: auto;
  369. left: 4px;
  370. }
  371. .chosen-rtl.chosen-container-single-nosearch .chosen-search,
  372. .chosen-rtl .chosen-drop {
  373. left: 9999px;
  374. }
  375. .chosen-rtl.chosen-container-single .chosen-results {
  376. margin: 0 0 4px 4px;
  377. padding: 0 4px 0 0;
  378. }
  379. .chosen-rtl .chosen-results li.group-option {
  380. padding-right: 15px;
  381. padding-left: 0;
  382. }
  383. .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
  384. border-right: none;
  385. }
  386. .chosen-rtl .chosen-search input[type="text"] {
  387. padding: 4px 5px 4px 20px;
  388. background: white url('chosen-sprite.png') no-repeat -30px -20px;
  389. background: url('chosen-sprite.png') no-repeat -30px -20px;
  390. direction: rtl;
  391. }
  392. .chosen-rtl.chosen-container-single .chosen-single div b {
  393. background-position: 6px 2px;
  394. }
  395. .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
  396. background-position: -12px 2px;
  397. }
  398. /* @end */
  399. /* @group Retina compatibility */
  400. @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
  401. .chosen-rtl .chosen-search input[type="text"],
  402. .chosen-container-single .chosen-single abbr,
  403. .chosen-container-single .chosen-single div b,
  404. .chosen-container-single .chosen-search input[type="text"],
  405. .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
  406. .chosen-container .chosen-results-scroll-down span,
  407. .chosen-container .chosen-results-scroll-up span {
  408. background-image: url('chosen-sprite_402x.png') !important;
  409. background-size: 52px 37px !important;
  410. background-repeat: no-repeat !important;
  411. }
  412. }
  413. /* @end */