select2.css 19 KB

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