select2.css 16 KB

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