chosen.css 13 KB

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