select2.css 18 KB

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