chosen.css 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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: 30px;
  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: 26px;
  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 4px;
  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: 2px;
  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: 30px;
  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: 3px 20px 3px 5px;
  228. border: 1px solid #eee;
  229. border-radius: 3px;
  230. background-color: #f5f5f5;
  231. background-clip: padding-box;
  232. line-height: 13px;
  233. cursor: default;
  234. }
  235. .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  236. position: absolute;
  237. top: 4px;
  238. right: 3px;
  239. display: block;
  240. width: 12px;
  241. height: 12px;
  242. background: url('chosen-sprite.png') -42px 1px no-repeat;
  243. font-size: 1px;
  244. }
  245. .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
  246. background-position: -42px -10px;
  247. }
  248. .chosen-container-multi .chosen-choices li.search-choice-disabled {
  249. padding-right: 5px;
  250. border: 1px solid #ccc;
  251. background-color: #e4e4e4;
  252. color: #666;
  253. }
  254. .chosen-container-multi .chosen-choices li.search-choice-focus {
  255. background: #d4d4d4;
  256. }
  257. .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
  258. background-position: -42px -10px;
  259. }
  260. .chosen-container-multi .chosen-results {
  261. margin: 0;
  262. padding: 0;
  263. }
  264. .chosen-container-multi .chosen-drop .result-selected {
  265. display: list-item;
  266. color: #ccc;
  267. cursor: default;
  268. }
  269. /* @end */
  270. /* @group Active */
  271. .chosen-container-active .chosen-single {
  272. border: 1px solid #5897fb;
  273. box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  274. }
  275. .chosen-container-active.chosen-with-drop .chosen-single {
  276. border: 1px solid #aaa;
  277. -moz-border-radius-bottomright: 0;
  278. border-bottom-right-radius: 0;
  279. -moz-border-radius-bottomleft: 0;
  280. border-bottom-left-radius: 0;
  281. box-shadow: 0 1px 0 #fff inset;
  282. }
  283. .chosen-container-active.chosen-with-drop .chosen-single div {
  284. border-left: none;
  285. background: transparent;
  286. }
  287. .chosen-container-active.chosen-with-drop .chosen-single div b {
  288. background-position: -18px 2px;
  289. }
  290. .chosen-container-active .chosen-choices {
  291. border: 1px solid #5897fb;
  292. box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  293. }
  294. .chosen-container-active .chosen-choices li.search-field input[type="text"] {
  295. color: #111 !important;
  296. }
  297. /* @end */
  298. /* @group Disabled Support */
  299. .chosen-disabled {
  300. opacity: 0.5 !important;
  301. cursor: default;
  302. }
  303. .chosen-disabled .chosen-single {
  304. cursor: default;
  305. }
  306. .chosen-disabled .chosen-choices .search-choice .search-choice-close {
  307. cursor: default;
  308. }
  309. /* @end */
  310. /* @group Right to Left */
  311. .chosen-rtl {
  312. text-align: right;
  313. }
  314. .chosen-rtl .chosen-single {
  315. overflow: visible;
  316. padding: 0 8px 0 0;
  317. }
  318. .chosen-rtl .chosen-single span {
  319. margin-right: 0;
  320. margin-left: 26px;
  321. direction: rtl;
  322. }
  323. .chosen-rtl .chosen-single-with-deselect span {
  324. margin-left: 38px;
  325. }
  326. .chosen-rtl .chosen-single div {
  327. right: auto;
  328. left: 3px;
  329. }
  330. .chosen-rtl .chosen-single abbr {
  331. right: auto;
  332. left: 26px;
  333. }
  334. .chosen-rtl .chosen-choices li {
  335. float: right;
  336. }
  337. .chosen-rtl .chosen-choices li.search-field input[type="text"] {
  338. direction: rtl;
  339. }
  340. .chosen-rtl .chosen-choices li.search-choice {
  341. margin: 3px 5px 3px 0;
  342. padding: 3px 5px 3px 19px;
  343. }
  344. .chosen-rtl .chosen-choices li.search-choice .search-choice-close {
  345. right: auto;
  346. left: 4px;
  347. }
  348. .chosen-rtl.chosen-container-single-nosearch .chosen-search,
  349. .chosen-rtl .chosen-drop {
  350. left: 9999px;
  351. }
  352. .chosen-rtl.chosen-container-single .chosen-results {
  353. margin: 0 0 4px 4px;
  354. padding: 0 4px 0 0;
  355. }
  356. .chosen-rtl .chosen-results li.group-option {
  357. padding-right: 15px;
  358. padding-left: 0;
  359. }
  360. .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
  361. border-right: none;
  362. }
  363. .chosen-rtl .chosen-search input[type="text"] {
  364. padding: 4px 5px 4px 20px;
  365. background: white url('chosen-sprite.png') no-repeat -30px -20px;
  366. background: url('chosen-sprite.png') no-repeat -30px -20px;
  367. direction: rtl;
  368. }
  369. .chosen-rtl.chosen-container-single .chosen-single div b {
  370. background-position: 6px 2px;
  371. }
  372. .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
  373. background-position: -12px 2px;
  374. }
  375. /* @end */
  376. /* @group Retina compatibility */
  377. @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
  378. .chosen-rtl .chosen-search input[type="text"],
  379. .chosen-container-single .chosen-single abbr,
  380. .chosen-container-single .chosen-single div b,
  381. .chosen-container-single .chosen-search input[type="text"],
  382. .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
  383. .chosen-container .chosen-results-scroll-down span,
  384. .chosen-container .chosen-results-scroll-up span {
  385. background-image: url('chosen-sprite@2x.png') !important;
  386. background-size: 52px 37px !important;
  387. background-repeat: no-repeat !important;
  388. }
  389. }
  390. /* @end */