chosen.css 12 KB

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