select2.css 18 KB

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