chosen.css 13 KB

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