select2.css 17 KB

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