select2.css 19 KB

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