select2.css 16 KB

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