select2.css 12 KB

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