select2.css 12 KB

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