select2.css 18 KB

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