select2.css 17 KB

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