select2.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. .select2-container {
  2. box-sizing: border-box;
  3. display: inline-block;
  4. margin: 0;
  5. position: relative;
  6. vertical-align: middle; }
  7. .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-selection--single .select2-selection__rendered {
  15. display: block;
  16. overflow: hidden;
  17. padding-left: 8px;
  18. padding-right: 20px;
  19. text-overflow: ellipsis; }
  20. [dir="rtl"] .select2-selection--single .select2-selection__rendered {
  21. padding-right: 8px;
  22. padding-left: 20px; }
  23. .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-selection--multiple .select2-selection__rendered {
  31. display: inline-block;
  32. overflow: hidden;
  33. padding-left: 8px;
  34. text-overflow: ellipsis; }
  35. .select2-search--inline {
  36. float: left; }
  37. .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--open .select2-selection--single .select2-selection__arrow b {
  136. border-color: transparent transparent #888 transparent;
  137. border-width: 0 4px 5px 4px; }
  138. .select2-container--default .select2-selection--multiple {
  139. background-color: white;
  140. border: 1px solid #aaa;
  141. border-radius: 4px;
  142. cursor: text; }
  143. .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  144. list-style: none;
  145. margin: 0;
  146. padding: 0 5px; }
  147. .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  148. color: #999;
  149. margin-top: 5px;
  150. float: left; }
  151. .select2-container--default .select2-selection--multiple .select2-selection__choice {
  152. background-color: #e4e4e4;
  153. border: 1px solid #aaa;
  154. border-radius: 4px;
  155. cursor: default;
  156. float: left;
  157. margin-right: 5px;
  158. margin-top: 5px;
  159. padding: 0 5px; }
  160. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  161. color: #999;
  162. cursor: pointer;
  163. display: inline-block;
  164. font-weight: bold;
  165. margin-right: 2px; }
  166. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  167. color: #333; }
  168. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder {
  169. float: right; }
  170. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  171. margin-left: 5px;
  172. margin-right: auto; }
  173. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  174. margin-left: 2px;
  175. margin-right: auto; }
  176. .select2-container--default.select2-container--disabled .select2-selection--multiple {
  177. background-color: #eee;
  178. cursor: default; }
  179. .select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  180. border-top-left-radius: 0;
  181. border-top-right-radius: 0; }
  182. .select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  183. border-bottom-left-radius: 0;
  184. border-bottom-right-radius: 0; }
  185. .select2-container--default .select2-search--dropdown .select2-search__field {
  186. border: 1px solid #aaa; }
  187. .select2-container--default .select2-search--inline .select2-search__field {
  188. background: transparent;
  189. border: none;
  190. outline: 0; }
  191. .select2-container--default .select2-results > .select2-results__options {
  192. max-height: 200px;
  193. overflow-y: auto; }
  194. .select2-container--default .select2-results__option[role=group] {
  195. padding: 0; }
  196. .select2-container--default .select2-results__option[aria-disabled=true] {
  197. color: #999; }
  198. .select2-container--default .select2-results__option[aria-selected=true] {
  199. background-color: #ddd; }
  200. .select2-container--default .select2-results__option--highlighted[aria-selected] {
  201. background-color: #5897fb;
  202. color: white; }
  203. .select2-container--default .select2-results__group {
  204. cursor: default;
  205. display: block;
  206. padding: 6px; }
  207. .select2-container--classic .select2-selection--single {
  208. background-color: #f6f6f6;
  209. border: 1px solid #aaa;
  210. border-radius: 4px;
  211. outline: 0;
  212. background-image: -webkit-linear-gradient(top, #ffffff 50%, #eeeeee 100%);
  213. background-image: -o-linear-gradient(top, #ffffff 50%, #eeeeee 100%);
  214. background-image: linear-gradient(to bottom, #ffffff 50%, #eeeeee 100%);
  215. background-repeat: repeat-x;
  216. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0); }
  217. .select2-container--classic .select2-selection--single:focus {
  218. border: 1px solid #5897fb; }
  219. .select2-container--classic .select2-selection--single .select2-selection__rendered {
  220. color: #444;
  221. line-height: 28px; }
  222. .select2-container--classic .select2-selection--single .select2-selection__clear {
  223. cursor: pointer;
  224. float: right;
  225. font-weight: bold;
  226. margin-right: 10px; }
  227. .select2-container--classic .select2-selection--single .select2-selection__placeholder {
  228. color: #999; }
  229. .select2-container--classic .select2-selection--single .select2-selection__arrow {
  230. background-color: #ddd;
  231. border: none;
  232. border-left: 1px solid #aaa;
  233. border-top-right-radius: 4px;
  234. border-bottom-right-radius: 4px;
  235. height: 26px;
  236. position: absolute;
  237. top: 1px;
  238. right: 1px;
  239. width: 20px;
  240. background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  241. background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  242. background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
  243. background-repeat: repeat-x;
  244. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#cccccc', GradientType=0); }
  245. .select2-container--classic .select2-selection--single .select2-selection__arrow b {
  246. border-color: #888 transparent transparent transparent;
  247. border-style: solid;
  248. border-width: 5px 4px 0 4px;
  249. height: 0;
  250. left: 50%;
  251. margin-left: -4px;
  252. margin-top: -2px;
  253. position: absolute;
  254. top: 50%;
  255. width: 0; }
  256. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
  257. float: left; }
  258. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  259. border: none;
  260. border-right: 1px solid #aaa;
  261. border-radius: 0;
  262. border-top-left-radius: 4px;
  263. border-bottom-left-radius: 4px;
  264. left: 1px;
  265. right: auto; }
  266. .select2-container--classic.select2-container--open .select2-selection--single {
  267. border: 1px solid #5897fb; }
  268. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
  269. background: transparent;
  270. border: none; }
  271. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
  272. border-color: transparent transparent #888 transparent;
  273. border-width: 0 4px 5px 4px; }
  274. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
  275. border-top: none;
  276. border-top-left-radius: 0;
  277. border-top-right-radius: 0;
  278. background-image: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee 50%);
  279. background-image: -o-linear-gradient(top, #ffffff 0%, #eeeeee 50%);
  280. background-image: linear-gradient(to bottom, #ffffff 0%, #eeeeee 50%);
  281. background-repeat: repeat-x;
  282. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0); }
  283. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
  284. border-bottom: none;
  285. border-bottom-left-radius: 0;
  286. border-bottom-right-radius: 0;
  287. background-image: -webkit-linear-gradient(top, #eeeeee 50%, #ffffff 100%);
  288. background-image: -o-linear-gradient(top, #eeeeee 50%, #ffffff 100%);
  289. background-image: linear-gradient(to bottom, #eeeeee 50%, #ffffff 100%);
  290. background-repeat: repeat-x;
  291. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0); }
  292. .select2-container--classic .select2-selection--multiple {
  293. background-color: white;
  294. border: 1px solid #aaa;
  295. border-radius: 4px;
  296. cursor: text;
  297. outline: 0; }
  298. .select2-container--classic .select2-selection--multiple:focus {
  299. border: 1px solid #5897fb; }
  300. .select2-container--classic .select2-selection--multiple .select2-selection__rendered {
  301. list-style: none;
  302. margin: 0;
  303. padding: 0 5px; }
  304. .select2-container--classic .select2-selection--multiple .select2-selection__choice {
  305. background-color: #e4e4e4;
  306. border: 1px solid #aaa;
  307. border-radius: 4px;
  308. cursor: default;
  309. float: left;
  310. margin-right: 5px;
  311. margin-top: 5px;
  312. padding: 0 5px; }
  313. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
  314. color: #888;
  315. cursor: pointer;
  316. display: inline-block;
  317. font-weight: bold;
  318. margin-right: 2px; }
  319. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
  320. color: #555; }
  321. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  322. float: right; }
  323. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  324. margin-left: 5px;
  325. margin-right: auto; }
  326. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  327. margin-left: 2px;
  328. margin-right: auto; }
  329. .select2-container--classic.select2-container--open .select2-selection--multiple {
  330. border: 1px solid #5897fb; }
  331. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
  332. border-top: none;
  333. border-top-left-radius: 0;
  334. border-top-right-radius: 0; }
  335. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
  336. border-bottom: none;
  337. border-bottom-left-radius: 0;
  338. border-bottom-right-radius: 0; }
  339. .select2-container--classic .select2-search--dropdown .select2-search__field {
  340. border: 1px solid #aaa;
  341. outline: 0; }
  342. .select2-container--classic .select2-search--inline .select2-search__field {
  343. outline: 0; }
  344. .select2-container--classic .select2-dropdown {
  345. background-color: white;
  346. border: 1px solid transparent; }
  347. .select2-container--classic .select2-dropdown--above {
  348. border-bottom: none; }
  349. .select2-container--classic .select2-dropdown--below {
  350. border-top: none; }
  351. .select2-container--classic .select2-results > .select2-results__options {
  352. max-height: 200px;
  353. overflow-y: auto; }
  354. .select2-container--classic .select2-results__option[role=group] {
  355. padding: 0; }
  356. .select2-container--classic .select2-results__option[aria-disabled=true] {
  357. color: grey; }
  358. .select2-container--classic .select2-results__option--highlighted[aria-selected] {
  359. background-color: #3875d7;
  360. color: white; }
  361. .select2-container--classic .select2-results__group {
  362. cursor: default;
  363. display: block;
  364. padding: 6px; }
  365. .select2-container--classic.select2-container--open .select2-dropdown {
  366. border-color: #5897fb; }