select2.css 16 KB

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