select2.css 16 KB

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