select2.css 17 KB

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