select2.css 17 KB

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