chosen.css 10 KB

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