select2.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. .select2-container {
  2. box-sizing: border-box;
  3. display: inline-block;
  4. margin: 0;
  5. position: relative;
  6. vertical-align: middle; }
  7. .select2-container .select2-selection--single {
  8. box-sizing: border-box;
  9. cursor: pointer;
  10. display: block;
  11. height: 28px;
  12. user-select: none;
  13. -webkit-user-select: none; }
  14. .select2-container .select2-selection--single .select2-selection__rendered {
  15. display: block;
  16. overflow: hidden;
  17. padding-left: 8px;
  18. padding-right: 20px;
  19. text-overflow: ellipsis; }
  20. .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  21. padding-right: 8px;
  22. padding-left: 20px; }
  23. .select2-container .select2-selection--multiple {
  24. box-sizing: border-box;
  25. cursor: pointer;
  26. display: block;
  27. min-height: 32px;
  28. user-select: none;
  29. -webkit-user-select: none; }
  30. .select2-container .select2-selection--multiple .select2-selection__rendered {
  31. display: inline-block;
  32. overflow: hidden;
  33. padding-left: 8px;
  34. text-overflow: ellipsis; }
  35. .select2-container .select2-search--inline {
  36. float: left; }
  37. .select2-container .select2-search--inline .select2-search__field {
  38. border: none;
  39. font-size: 100%;
  40. margin-top: 5px; }
  41. .select2-dropdown {
  42. background-color: white;
  43. border: 1px solid #aaa;
  44. border-radius: 4px;
  45. box-sizing: border-box;
  46. display: block;
  47. position: absolute;
  48. left: -100000px;
  49. width: 100%;
  50. z-index: 100; }
  51. .select2-results {
  52. display: block; }
  53. .select2-results__options {
  54. list-style: none;
  55. margin: 0;
  56. padding: 0; }
  57. .select2-results__option {
  58. padding: 6px;
  59. user-select: none;
  60. -webkit-user-select: none; }
  61. .select2-results__option[aria-selected] {
  62. cursor: pointer; }
  63. .select2-container--open .select2-dropdown {
  64. left: 0; }
  65. .select2-container--open .select2-dropdown--above {
  66. border-bottom: none;
  67. border-bottom-left-radius: 0;
  68. border-bottom-right-radius: 0; }
  69. .select2-container--open .select2-dropdown--below {
  70. border-top: none;
  71. border-top-left-radius: 0;
  72. border-top-right-radius: 0; }
  73. .select2-search--dropdown {
  74. display: block;
  75. padding: 4px; }
  76. .select2-search--dropdown .select2-search__field {
  77. padding: 4px;
  78. width: 100%; }
  79. .select2-search--dropdown.select2-search--hide {
  80. display: none; }
  81. .select2-close-mask {
  82. border: 0;
  83. margin: 0;
  84. padding: 0;
  85. display: block;
  86. position: fixed;
  87. left: 0;
  88. top: 0;
  89. min-height: 100%;
  90. min-width: 100%;
  91. height: auto;
  92. width: auto;
  93. opacity: 0;
  94. z-index: 99;
  95. background-color: #fff;
  96. filter: alpha(opacity=0); }
  97. .select2-container--default .select2-selection--single {
  98. background-color: #fff;
  99. border: 1px solid #aaa;
  100. border-radius: 4px; }
  101. .select2-container--default .select2-selection--single .select2-selection__rendered {
  102. color: #444;
  103. line-height: 28px; }
  104. .select2-container--default .select2-selection--single .select2-selection__clear {
  105. cursor: pointer;
  106. float: right;
  107. font-weight: bold; }
  108. .select2-container--default .select2-selection--single .select2-selection__placeholder {
  109. color: #999; }
  110. .select2-container--default .select2-selection--single .select2-selection__arrow {
  111. height: 26px;
  112. position: absolute;
  113. top: 1px;
  114. right: 1px;
  115. width: 20px; }
  116. .select2-container--default .select2-selection--single .select2-selection__arrow b {
  117. border-color: #888 transparent transparent transparent;
  118. border-style: solid;
  119. border-width: 5px 4px 0 4px;
  120. height: 0;
  121. left: 50%;
  122. margin-left: -4px;
  123. margin-top: -2px;
  124. position: absolute;
  125. top: 50%;
  126. width: 0; }
  127. .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  128. float: left; }
  129. .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  130. left: 1px;
  131. right: auto; }
  132. .select2-container--default.select2-container--disabled .select2-selection--single {
  133. background-color: #eee;
  134. cursor: default; }
  135. .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
  136. display: none; }
  137. .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  138. border-color: transparent transparent #888 transparent;
  139. border-width: 0 4px 5px 4px; }
  140. .select2-container--default .select2-selection--multiple {
  141. background-color: white;
  142. border: 1px solid #aaa;
  143. border-radius: 4px;
  144. cursor: text; }
  145. .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  146. list-style: none;
  147. margin: 0;
  148. padding: 0 5px;
  149. width: 100%; }
  150. .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  151. color: #999;
  152. margin-top: 5px;
  153. float: left; }
  154. .select2-container--default .select2-selection--multiple .select2-selection__clear {
  155. cursor: pointer;
  156. float: right;
  157. font-weight: bold;
  158. margin-top: 5px;
  159. margin-right: 10px; }
  160. .select2-container--default .select2-selection--multiple .select2-selection__choice {
  161. background-color: #e4e4e4;
  162. border: 1px solid #aaa;
  163. border-radius: 4px;
  164. cursor: default;
  165. float: left;
  166. margin-right: 5px;
  167. margin-top: 5px;
  168. padding: 0 5px; }
  169. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  170. color: #999;
  171. cursor: pointer;
  172. display: inline-block;
  173. font-weight: bold;
  174. margin-right: 2px; }
  175. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  176. color: #333; }
  177. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder {
  178. float: right; }
  179. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  180. margin-left: 5px;
  181. margin-right: auto; }
  182. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  183. margin-left: 2px;
  184. margin-right: auto; }
  185. .select2-container--default.select2-container--disabled .select2-selection--multiple {
  186. background-color: #eee;
  187. cursor: default; }
  188. .select2-container--default.select2-container--disabled .select2-selection__choice__remove {
  189. display: none; }
  190. .select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  191. border-top-left-radius: 0;
  192. border-top-right-radius: 0; }
  193. .select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  194. border-bottom-left-radius: 0;
  195. border-bottom-right-radius: 0; }
  196. .select2-container--default .select2-search--dropdown .select2-search__field {
  197. border: 1px solid #aaa; }
  198. .select2-container--default .select2-search--inline .select2-search__field {
  199. background: transparent;
  200. border: none;
  201. outline: 0; }
  202. .select2-container--default .select2-results > .select2-results__options {
  203. max-height: 200px;
  204. overflow-y: auto; }
  205. .select2-container--default .select2-results__option[role=group] {
  206. padding: 0; }
  207. .select2-container--default .select2-results__option[aria-disabled=true] {
  208. color: #999; }
  209. .select2-container--default .select2-results__option[aria-selected=true] {
  210. background-color: #ddd; }
  211. .select2-container--default .select2-results__option .select2-results__option {
  212. padding-left: 1em; }
  213. .select2-container--default .select2-results__option .select2-results__option .select2-results__group {
  214. padding-left: 0; }
  215. .select2-container--default .select2-results__option .select2-results__option .select2-results__option {
  216. margin-left: -1em;
  217. padding-left: 2em; }
  218. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  219. margin-left: -2em;
  220. padding-left: 3em; }
  221. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  222. margin-left: -3em;
  223. padding-left: 4em; }
  224. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  225. margin-left: -4em;
  226. padding-left: 5em; }
  227. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  228. margin-left: -5em;
  229. padding-left: 6em; }
  230. .select2-container--default .select2-results__option--highlighted[aria-selected] {
  231. background-color: #5897fb;
  232. color: white; }
  233. .select2-container--default .select2-results__group {
  234. cursor: default;
  235. display: block;
  236. padding: 6px; }
  237. .select2-container--classic .select2-selection--single {
  238. background-color: #f6f6f6;
  239. border: 1px solid #aaa;
  240. border-radius: 4px;
  241. outline: 0;
  242. background-image: -webkit-linear-gradient(top, #ffffff 50%, #eeeeee 100%);
  243. background-image: -o-linear-gradient(top, #ffffff 50%, #eeeeee 100%);
  244. background-image: linear-gradient(to bottom, #ffffff 50%, #eeeeee 100%);
  245. background-repeat: repeat-x;
  246. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0); }
  247. .select2-container--classic .select2-selection--single:focus {
  248. border: 1px solid #5897fb; }
  249. .select2-container--classic .select2-selection--single .select2-selection__rendered {
  250. color: #444;
  251. line-height: 28px; }
  252. .select2-container--classic .select2-selection--single .select2-selection__clear {
  253. cursor: pointer;
  254. float: right;
  255. font-weight: bold;
  256. margin-right: 10px; }
  257. .select2-container--classic .select2-selection--single .select2-selection__placeholder {
  258. color: #999; }
  259. .select2-container--classic .select2-selection--single .select2-selection__arrow {
  260. background-color: #ddd;
  261. border: none;
  262. border-left: 1px solid #aaa;
  263. border-top-right-radius: 4px;
  264. border-bottom-right-radius: 4px;
  265. height: 26px;
  266. position: absolute;
  267. top: 1px;
  268. right: 1px;
  269. width: 20px;
  270. background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  271. background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  272. background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
  273. background-repeat: repeat-x;
  274. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#cccccc', GradientType=0); }
  275. .select2-container--classic .select2-selection--single .select2-selection__arrow b {
  276. border-color: #888 transparent transparent transparent;
  277. border-style: solid;
  278. border-width: 5px 4px 0 4px;
  279. height: 0;
  280. left: 50%;
  281. margin-left: -4px;
  282. margin-top: -2px;
  283. position: absolute;
  284. top: 50%;
  285. width: 0; }
  286. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
  287. float: left; }
  288. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  289. border: none;
  290. border-right: 1px solid #aaa;
  291. border-radius: 0;
  292. border-top-left-radius: 4px;
  293. border-bottom-left-radius: 4px;
  294. left: 1px;
  295. right: auto; }
  296. .select2-container--classic.select2-container--open .select2-selection--single {
  297. border: 1px solid #5897fb; }
  298. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
  299. background: transparent;
  300. border: none; }
  301. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
  302. border-color: transparent transparent #888 transparent;
  303. border-width: 0 4px 5px 4px; }
  304. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
  305. border-top: none;
  306. border-top-left-radius: 0;
  307. border-top-right-radius: 0;
  308. background-image: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee 50%);
  309. background-image: -o-linear-gradient(top, #ffffff 0%, #eeeeee 50%);
  310. background-image: linear-gradient(to bottom, #ffffff 0%, #eeeeee 50%);
  311. background-repeat: repeat-x;
  312. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0); }
  313. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
  314. border-bottom: none;
  315. border-bottom-left-radius: 0;
  316. border-bottom-right-radius: 0;
  317. background-image: -webkit-linear-gradient(top, #eeeeee 50%, #ffffff 100%);
  318. background-image: -o-linear-gradient(top, #eeeeee 50%, #ffffff 100%);
  319. background-image: linear-gradient(to bottom, #eeeeee 50%, #ffffff 100%);
  320. background-repeat: repeat-x;
  321. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0); }
  322. .select2-container--classic .select2-selection--multiple {
  323. background-color: white;
  324. border: 1px solid #aaa;
  325. border-radius: 4px;
  326. cursor: text;
  327. outline: 0; }
  328. .select2-container--classic .select2-selection--multiple:focus {
  329. border: 1px solid #5897fb; }
  330. .select2-container--classic .select2-selection--multiple .select2-selection__rendered {
  331. list-style: none;
  332. margin: 0;
  333. padding: 0 5px; }
  334. .select2-container--classic .select2-selection--multiple .select2-selection__clear {
  335. display: none; }
  336. .select2-container--classic .select2-selection--multiple .select2-selection__choice {
  337. background-color: #e4e4e4;
  338. border: 1px solid #aaa;
  339. border-radius: 4px;
  340. cursor: default;
  341. float: left;
  342. margin-right: 5px;
  343. margin-top: 5px;
  344. padding: 0 5px; }
  345. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
  346. color: #888;
  347. cursor: pointer;
  348. display: inline-block;
  349. font-weight: bold;
  350. margin-right: 2px; }
  351. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
  352. color: #555; }
  353. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  354. float: right; }
  355. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  356. margin-left: 5px;
  357. margin-right: auto; }
  358. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  359. margin-left: 2px;
  360. margin-right: auto; }
  361. .select2-container--classic.select2-container--open .select2-selection--multiple {
  362. border: 1px solid #5897fb; }
  363. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
  364. border-top: none;
  365. border-top-left-radius: 0;
  366. border-top-right-radius: 0; }
  367. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
  368. border-bottom: none;
  369. border-bottom-left-radius: 0;
  370. border-bottom-right-radius: 0; }
  371. .select2-container--classic .select2-search--dropdown .select2-search__field {
  372. border: 1px solid #aaa;
  373. outline: 0; }
  374. .select2-container--classic .select2-search--inline .select2-search__field {
  375. outline: 0; }
  376. .select2-container--classic .select2-dropdown {
  377. background-color: white;
  378. border: 1px solid transparent; }
  379. .select2-container--classic .select2-dropdown--above {
  380. border-bottom: none; }
  381. .select2-container--classic .select2-dropdown--below {
  382. border-top: none; }
  383. .select2-container--classic .select2-results > .select2-results__options {
  384. max-height: 200px;
  385. overflow-y: auto; }
  386. .select2-container--classic .select2-results__option[role=group] {
  387. padding: 0; }
  388. .select2-container--classic .select2-results__option[aria-disabled=true] {
  389. color: grey; }
  390. .select2-container--classic .select2-results__option--highlighted[aria-selected] {
  391. background-color: #3875d7;
  392. color: white; }
  393. .select2-container--classic .select2-results__group {
  394. cursor: default;
  395. display: block;
  396. padding: 6px; }
  397. .select2-container--classic.select2-container--open .select2-dropdown {
  398. border-color: #5897fb; }