select2.min.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. .select2-container {
  2. box-sizing: border-box;
  3. display: inline-block;
  4. margin: 0;
  5. position: relative;
  6. vertical-align: middle;
  7. }
  8. .select2-container .select2-selection--single {
  9. box-sizing: border-box;
  10. cursor: pointer;
  11. display: block;
  12. height: 28px;
  13. user-select: none;
  14. -webkit-user-select: none;
  15. }
  16. .select2-container .select2-selection--single .select2-selection__rendered {
  17. display: block;
  18. padding-left: 8px;
  19. padding-right: 20px;
  20. overflow: hidden;
  21. text-overflow: ellipsis;
  22. white-space: nowrap;
  23. }
  24. .select2-container .select2-selection--single .select2-selection__clear {
  25. position: relative;
  26. }
  27. .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  28. padding-right: 8px;
  29. padding-left: 20px;
  30. }
  31. .select2-container .select2-selection--multiple {
  32. box-sizing: border-box;
  33. cursor: pointer;
  34. display: block;
  35. min-height: 32px;
  36. user-select: none;
  37. -webkit-user-select: none;
  38. }
  39. .select2-container .select2-selection--multiple .select2-selection__rendered {
  40. display: inline-block;
  41. overflow: hidden;
  42. padding-left: 8px;
  43. text-overflow: ellipsis;
  44. white-space: nowrap;
  45. }
  46. .select2-container .select2-search--inline {
  47. float: left;
  48. }
  49. .select2-container .select2-search--inline .select2-search__field {
  50. box-sizing: border-box;
  51. border: none;
  52. font-size: 100%;
  53. padding: 0;
  54. min-height: 20px;;
  55. }
  56. .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
  57. -webkit-appearance: none;
  58. }
  59. .select2-dropdown {
  60. background-color: white;
  61. border: 1px solid #aaa;
  62. border-radius: 4px;
  63. box-sizing: border-box;
  64. display: block;
  65. position: absolute;
  66. left: -100000px;
  67. width: 100%;
  68. z-index: 1051;
  69. }
  70. .select2-results {
  71. display: block;
  72. }
  73. .select2-results__options {
  74. list-style: none;
  75. margin: 0;
  76. padding: 0;
  77. }
  78. .select2-results__option {
  79. padding: 6px;
  80. user-select: none;
  81. -webkit-user-select: none;
  82. }
  83. .select2-results__option[aria-selected] {
  84. cursor: pointer;
  85. }
  86. .select2-container--open .select2-dropdown {
  87. left: 0;
  88. }
  89. .select2-container--open .select2-dropdown--above {
  90. border-bottom: none;
  91. border-bottom-left-radius: 0;
  92. border-bottom-right-radius: 0;
  93. }
  94. .select2-container--open .select2-dropdown--below {
  95. border-top: none;
  96. border-top-left-radius: 0;
  97. border-top-right-radius: 0;
  98. }
  99. .select2-search--dropdown {
  100. display: block;
  101. padding: 4px;
  102. }
  103. .select2-search--dropdown .select2-search__field {
  104. padding: 4px;
  105. width: 100%;
  106. box-sizing: border-box;
  107. }
  108. .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  109. -webkit-appearance: none;
  110. }
  111. .select2-search--dropdown.select2-search--hide {
  112. display: none;
  113. }
  114. .select2-close-mask {
  115. border: 0;
  116. margin: 0;
  117. padding: 0;
  118. display: block;
  119. position: fixed;
  120. left: 0;
  121. top: 0;
  122. min-height: 100%;
  123. min-width: 100%;
  124. height: auto;
  125. width: auto;
  126. opacity: 0;
  127. z-index: 99;
  128. background-color: #fff;
  129. filter: alpha(opacity=0);
  130. }
  131. .select2-hidden-accessible {
  132. border: 0 !important;
  133. clip: rect(0 0 0 0) !important;
  134. height: 1px !important;
  135. margin: -1px !important;
  136. overflow: hidden !important;
  137. padding: 0 !important;
  138. position: absolute !important;
  139. width: 1px !important;
  140. }
  141. .select2-container--default .select2-selection--single {
  142. background-color: #fff;
  143. border: 1px solid #aaa;
  144. border-radius: 4px;
  145. }
  146. .select2-container--default .select2-selection--single .select2-selection__rendered {
  147. color: #444;
  148. line-height: 28px;
  149. }
  150. .select2-container--default .select2-selection--single .select2-selection__clear {
  151. cursor: pointer;
  152. float: right;
  153. font-weight: bold;
  154. }
  155. .select2-container--default .select2-selection--single .select2-selection__placeholder {
  156. color: #999;
  157. }
  158. .select2-container--default .select2-selection--single .select2-selection__arrow {
  159. height: 26px;
  160. position: absolute;
  161. top: 1px;
  162. right: 1px;
  163. width: 20px;
  164. }
  165. .select2-container--default .select2-selection--single .select2-selection__arrow b {
  166. border-color: #888 transparent transparent transparent;
  167. border-style: solid;
  168. border-width: 5px 4px 0 4px;
  169. height: 0;
  170. left: 50%;
  171. margin-left: -4px;
  172. margin-top: -2px;
  173. position: absolute;
  174. top: 50%;
  175. width: 0;
  176. }
  177. .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  178. float: left;
  179. }
  180. .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  181. left: 1px;
  182. right: auto;
  183. }
  184. .select2-container--default.select2-container--disabled .select2-selection--single {
  185. background-color: #eee;
  186. cursor: default;
  187. }
  188. .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
  189. display: none;
  190. }
  191. .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  192. border-color: transparent transparent #888 transparent;
  193. border-width: 0 4px 5px 4px;
  194. }
  195. .select2-container--default .select2-selection--multiple {
  196. background-color: white;
  197. border: 1px solid #aaa;
  198. border-radius: 4px;
  199. cursor: text;
  200. line-height: 10px;;
  201. }
  202. .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  203. box-sizing: border-box;
  204. list-style: none;
  205. margin: 0;
  206. padding: 0 5px;
  207. width: 100%;
  208. min-height: 30px;
  209. display: flex;
  210. align-items: center;;
  211. }
  212. .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
  213. margin-left: 0;
  214. list-style: none;
  215. line-height: 1.42857143;;
  216. }
  217. .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  218. color: #999;
  219. margin-top: 5px;
  220. float: left;
  221. }
  222. .select2-container--default .select2-selection--multiple .select2-selection__clear {
  223. cursor: pointer;
  224. position: absolute;
  225. right: 10px;
  226. font-weight: bold;
  227. top: 50%;
  228. translate: 0 calc(-50% + -0.5px);;
  229. }
  230. .select2-container--default .select2-selection--multiple .select2-selection__choice {
  231. background-color: #e4e4e4;
  232. border: 1px solid #aaa;
  233. border-radius: 4px;
  234. cursor: default;
  235. float: left;
  236. margin-right: 5px;
  237. padding: 0 5px;
  238. }
  239. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  240. color: #999;
  241. cursor: pointer;
  242. display: inline-block;
  243. font-weight: bold;
  244. margin-right: 2px;
  245. }
  246. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  247. color: #333;
  248. }
  249. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
  250. float: right;
  251. }
  252. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  253. margin-left: 5px;
  254. margin-right: auto;
  255. }
  256. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  257. margin-left: 2px;
  258. margin-right: auto;
  259. }
  260. .select2-container--default.select2-container--focus .select2-selection--multiple {
  261. border: solid black 1px;
  262. outline: 0;
  263. }
  264. .select2-container--default.select2-container--disabled .select2-selection--multiple {
  265. background-color: #eee;
  266. cursor: default;
  267. }
  268. .select2-container--default.select2-container--disabled .select2-selection__choice__remove {
  269. display: none;
  270. }
  271. .select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  272. border-top-left-radius: 0;
  273. border-top-right-radius: 0;
  274. }
  275. .select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  276. border-bottom-left-radius: 0;
  277. border-bottom-right-radius: 0;
  278. }
  279. .select2-container--default .select2-search--dropdown .select2-search__field {
  280. border: 1px solid #aaa;
  281. }
  282. .select2-container--default .select2-search--inline .select2-search__field {
  283. background: transparent;
  284. border: none;
  285. outline: 0;
  286. box-shadow: none;
  287. -webkit-appearance: textfield;
  288. min-width: 100px;
  289. will-change: width;;
  290. }
  291. .select2-container--default .select2-results>.select2-results__options {
  292. max-height: 200px;
  293. overflow-y: auto;
  294. }
  295. .select2-container--default .select2-results__option[role=group] {
  296. padding: 0;
  297. }
  298. .select2-container--default .select2-results__option[aria-disabled=true] {
  299. color: #999;
  300. }
  301. .select2-container--default .select2-results__option[aria-selected=true] {
  302. background-color: #ddd;
  303. }
  304. .select2-container--default .select2-results__option .select2-results__option {
  305. padding-left: 1em;
  306. }
  307. .select2-container--default .select2-results__option .select2-results__option .select2-results__group {
  308. padding-left: 0;
  309. }
  310. .select2-container--default .select2-results__option .select2-results__option .select2-results__option {
  311. margin-left: -1em;
  312. padding-left: 2em;
  313. }
  314. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  315. margin-left: -2em;
  316. padding-left: 3em;
  317. }
  318. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  319. margin-left: -3em;
  320. padding-left: 4em;
  321. }
  322. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  323. margin-left: -4em;
  324. padding-left: 5em;
  325. }
  326. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  327. margin-left: -5em;
  328. padding-left: 6em;
  329. }
  330. .select2-container--default .select2-results__option--highlighted[aria-selected] {
  331. background-color: #5897fb;
  332. color: white;
  333. }
  334. .select2-container--default .select2-results__group {
  335. cursor: default;
  336. display: block;
  337. padding: 6px;
  338. }
  339. .select2-container--classic .select2-selection--single {
  340. background-color: #f7f7f7;
  341. border: 1px solid #aaa;
  342. border-radius: 4px;
  343. outline: 0;
  344. background-image: -webkit-linear-gradient(top, #fff 50%, #eee 100%);
  345. background-image: -o-linear-gradient(top, #fff 50%, #eee 100%);
  346. background-image: linear-gradient(to bottom, #fff 50%, #eee 100%);
  347. background-repeat: repeat-x;
  348. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
  349. }
  350. .select2-container--classic .select2-selection--single:focus {
  351. border: 1px solid #5897fb;
  352. }
  353. .select2-container--classic .select2-selection--single .select2-selection__rendered {
  354. color: #444;
  355. line-height: 28px;
  356. }
  357. .select2-container--classic .select2-selection--single .select2-selection__clear {
  358. cursor: pointer;
  359. float: right;
  360. font-weight: bold;
  361. margin-right: 10px;
  362. }
  363. .select2-container--classic .select2-selection--single .select2-selection__placeholder {
  364. color: #999;
  365. }
  366. .select2-container--classic .select2-selection--single .select2-selection__arrow {
  367. background-color: #ddd;
  368. border: none;
  369. border-left: 1px solid #aaa;
  370. border-top-right-radius: 4px;
  371. border-bottom-right-radius: 4px;
  372. height: 26px;
  373. position: absolute;
  374. top: 1px;
  375. right: 1px;
  376. width: 20px;
  377. background-image: -webkit-linear-gradient(top, #eee 50%, #ccc 100%);
  378. background-image: -o-linear-gradient(top, #eee 50%, #ccc 100%);
  379. background-image: linear-gradient(to bottom, #eee 50%, #ccc 100%);
  380. background-repeat: repeat-x;
  381. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0);
  382. }
  383. .select2-container--classic .select2-selection--single .select2-selection__arrow b {
  384. border-color: #888 transparent transparent transparent;
  385. border-style: solid;
  386. border-width: 5px 4px 0 4px;
  387. height: 0;
  388. left: 50%;
  389. margin-left: -4px;
  390. margin-top: -2px;
  391. position: absolute;
  392. top: 50%;
  393. width: 0;
  394. }
  395. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
  396. float: left;
  397. }
  398. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  399. border: none;
  400. border-right: 1px solid #aaa;
  401. border-radius: 0;
  402. border-top-left-radius: 4px;
  403. border-bottom-left-radius: 4px;
  404. left: 1px;
  405. right: auto;
  406. }
  407. .select2-container--classic.select2-container--open .select2-selection--single {
  408. border: 1px solid #5897fb;
  409. }
  410. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
  411. background: transparent;
  412. border: none;
  413. }
  414. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
  415. border-color: transparent transparent #888 transparent;
  416. border-width: 0 4px 5px 4px;
  417. }
  418. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
  419. border-top: none;
  420. border-top-left-radius: 0;
  421. border-top-right-radius: 0;
  422. background-image: -webkit-linear-gradient(top, #fff 0%, #eee 50%);
  423. background-image: -o-linear-gradient(top, #fff 0%, #eee 50%);
  424. background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
  425. background-repeat: repeat-x;
  426. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
  427. }
  428. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
  429. border-bottom: none;
  430. border-bottom-left-radius: 0;
  431. border-bottom-right-radius: 0;
  432. background-image: -webkit-linear-gradient(top, #eee 50%, #fff 100%);
  433. background-image: -o-linear-gradient(top, #eee 50%, #fff 100%);
  434. background-image: linear-gradient(to bottom, #eee 50%, #fff 100%);
  435. background-repeat: repeat-x;
  436. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0);
  437. }
  438. .select2-container--classic .select2-selection--multiple {
  439. background-color: white;
  440. border: 1px solid #aaa;
  441. border-radius: 4px;
  442. cursor: text;
  443. outline: 0;
  444. }
  445. .select2-container--classic .select2-selection--multiple:focus {
  446. border: 1px solid #5897fb;
  447. }
  448. .select2-container--classic .select2-selection--multiple .select2-selection__rendered {
  449. list-style: none;
  450. margin: 0;
  451. padding: 0 5px;
  452. }
  453. .select2-container--classic .select2-selection--multiple .select2-selection__clear {
  454. display: none;
  455. }
  456. .select2-container--classic .select2-selection--multiple .select2-selection__choice {
  457. background-color: #e4e4e4;
  458. border: 1px solid #aaa;
  459. border-radius: 4px;
  460. cursor: default;
  461. float: left;
  462. margin-right: 5px;
  463. margin-top: 5px;
  464. padding: 0 5px;
  465. }
  466. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
  467. color: #888;
  468. cursor: pointer;
  469. display: inline-block;
  470. font-weight: bold;
  471. margin-right: 2px;
  472. }
  473. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
  474. color: #555;
  475. }
  476. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  477. float: right;
  478. }
  479. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  480. margin-left: 5px;
  481. margin-right: auto;
  482. }
  483. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  484. margin-left: 2px;
  485. margin-right: auto;
  486. }
  487. .select2-container--classic.select2-container--open .select2-selection--multiple {
  488. border: 1px solid #5897fb;
  489. }
  490. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
  491. border-top: none;
  492. border-top-left-radius: 0;
  493. border-top-right-radius: 0;
  494. }
  495. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
  496. border-bottom: none;
  497. border-bottom-left-radius: 0;
  498. border-bottom-right-radius: 0;
  499. }
  500. .select2-container--classic .select2-search--dropdown .select2-search__field {
  501. border: 1px solid #aaa;
  502. outline: 0;
  503. }
  504. .select2-container--classic .select2-search--inline .select2-search__field {
  505. outline: 0;
  506. box-shadow: none;
  507. }
  508. .select2-container--classic .select2-dropdown {
  509. background-color: #fff;
  510. border: 1px solid transparent;
  511. }
  512. .select2-container--classic .select2-dropdown--above {
  513. border-bottom: none;
  514. }
  515. .select2-container--classic .select2-dropdown--below {
  516. border-top: none;
  517. }
  518. .select2-container--classic .select2-results>.select2-results__options {
  519. max-height: 200px;
  520. overflow-y: auto;
  521. }
  522. .select2-container--classic .select2-results__option[role=group] {
  523. padding: 0;
  524. }
  525. .select2-container--classic .select2-results__option[aria-disabled=true] {
  526. color: grey;
  527. }
  528. .select2-container--classic .select2-results__option--highlighted[aria-selected] {
  529. background-color: #3875d7;
  530. color: #fff;
  531. }
  532. .select2-container--classic .select2-results__group {
  533. cursor: default;
  534. display: block;
  535. padding: 6px;
  536. }
  537. .select2-container--classic.select2-container--open .select2-dropdown {
  538. border-color: #5897fb;
  539. }