select2.css 10 KB

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