select2.css 10 KB

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