select2.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. .select2-container {
  2. box-sizing: border-box;
  3. display: inline-block;
  4. margin: 0;
  5. position: relative;
  6. vertical-align: middle; }
  7. .select2-container .selection .single-select {
  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-container .selection .single-select .rendered-selection {
  15. display: block;
  16. overflow: hidden;
  17. padding-left: 8px;
  18. text-overflow: ellipsis; }
  19. .select2-container .selection .multiple-select {
  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-container .selection .multiple-select .rendered-selection {
  27. display: block;
  28. overflow: hidden;
  29. padding-left: 8px;
  30. text-overflow: ellipsis; }
  31. .select2-container .dropdown {
  32. background-color: white;
  33. border: 1px solid #aaa;
  34. border-radius: 4px;
  35. box-sizing: border-box;
  36. display: block;
  37. position: absolute;
  38. left: -100000px;
  39. width: 100%;
  40. z-index: 100; }
  41. .select2-container .dropdown .results {
  42. display: block; }
  43. .select2-container .dropdown .results .options {
  44. list-style: none;
  45. margin: 0;
  46. padding: 0; }
  47. .select2-container .dropdown .results .options .option {
  48. cursor: pointer;
  49. padding: 6px;
  50. user-select: none;
  51. -webkit-user-select: none; }
  52. .select2-container.open .dropdown {
  53. border-top: none;
  54. border-top-left-radius: 0;
  55. border-top-right-radius: 0;
  56. left: 0; }
  57. .select2-container.select2-theme-default .selection .single-select {
  58. background-color: #eee;
  59. border: 1px solid #aaa;
  60. border-radius: 4px; }
  61. .select2-container.select2-theme-default .selection .single-select .rendered-selection {
  62. color: #444;
  63. line-height: 28px; }
  64. .select2-container.select2-theme-default .selection .multiple-select {
  65. background-color: white;
  66. border: 1px solid #aaa;
  67. border-radius: 4px; }
  68. .select2-container.select2-theme-default .selection .multiple-select .rendered-selection {
  69. list-style: none;
  70. margin: 0;
  71. padding: 5px;
  72. padding-bottom: 0; }
  73. .select2-container.select2-theme-default .selection .multiple-select .rendered-selection .choice {
  74. background-color: #e4e4e4;
  75. border: 1px solid #aaa;
  76. border-radius: 4px;
  77. float: left;
  78. margin-right: 5px;
  79. margin-bottom: 5px;
  80. padding: 0 5px; }
  81. .select2-container.select2-theme-default.open .selection .single-select, .select2-container.select2-theme-default.open .selection .multiple-select {
  82. border-bottom-left-radius: 0;
  83. border-bottom-right-radius: 0; }
  84. .select2-container.select2-theme-default .dropdown .results {
  85. max-height: 200px;
  86. overflow-y: scroll; }
  87. .select2-container.select2-theme-default .dropdown .results .options .option.group {
  88. padding: 0; }
  89. .select2-container.select2-theme-default .dropdown .results .options .option.group .group-label {
  90. cursor: default;
  91. display: block;
  92. padding: 6px; }
  93. .select2-container.select2-theme-default .dropdown .results .options .option.disabled {
  94. color: #666; }
  95. .select2-container.select2-theme-default .dropdown .results .options .option.selected {
  96. background-color: #ddd; }
  97. .select2-container.select2-theme-default .dropdown .results .options .option.highlightable.highlighted {
  98. background-color: #5897fb;
  99. color: white; }
  100. .s2-container {
  101. margin: 0;
  102. position: relative;
  103. zoom: 1;
  104. vertical-align: middle; }
  105. .s2-container.s2-active {
  106. border: 1px solid #5897fb;
  107. border-top: bottom; }
  108. .s2-container .s2-single-select {
  109. display: block;
  110. height: 26px;
  111. padding: 0 0 0 8px;
  112. overflow: hidden;
  113. position: relative;
  114. border: 1px solid #aaa;
  115. white-space: nowrap;
  116. line-height: 26px;
  117. color: #444;
  118. text-decoration: none;
  119. border-radius: 4px;
  120. background-clip: padding-box;
  121. -webkit-touch-callout: none;
  122. -webkit-user-select: none;
  123. -moz-user-select: none;
  124. -ms-user-select: none;
  125. user-select: none;
  126. background-color: #fff;
  127. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff));
  128. background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%);
  129. background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%);
  130. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
  131. background-image: linear-gradient(to top, #eee 0%, #fff 50%); }
  132. .s2-container .s2-single-select .s2-selection {
  133. margin-right: 26px;
  134. display: block;
  135. overflow: hidden;
  136. white-space: nowrap;
  137. text-overflow: ellipsis; }
  138. .s2-container .s2-open .select2-container-active .select2-choice, .s2-container .s2-open .select2-container-active .select2-choices {
  139. border: 1px solid #5897fb;
  140. outline: none;
  141. -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  142. box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); }
  143. .s2-search input {
  144. -webkit-box-sizing: border-box;
  145. /* webkit */
  146. -moz-box-sizing: border-box;
  147. /* firefox */
  148. box-sizing: border-box;
  149. /* css3 */ }
  150. .s2-dropdown {
  151. width: 100%;
  152. margin-top: -1px;
  153. position: absolute;
  154. z-index: 9999;
  155. overflow: scroll;
  156. background: #fff;
  157. color: #000;
  158. border: 1px solid #5897fb;
  159. border-top: none;
  160. border-radius: 0 0 4px 4px;
  161. -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
  162. box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); }
  163. .s2-hidden {
  164. display: none; }