select2.css 15 KB

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