select2.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 .dropdown {
  20. background-color: white;
  21. border: 1px solid #aaa;
  22. border-radius: 4px;
  23. box-sizing: border-box;
  24. display: block;
  25. position: absolute;
  26. left: -100000px;
  27. top: -100000px;
  28. width: 100%; }
  29. .select2-container .dropdown .results {
  30. display: block; }
  31. .select2-container .dropdown .results .options {
  32. list-style: none;
  33. margin: 0;
  34. padding: 0; }
  35. .select2-container .dropdown .results .options .option {
  36. cursor: pointer;
  37. padding: 6px;
  38. user-select: none;
  39. -webkit-user-select: none; }
  40. .select2-container.open .dropdown {
  41. border-top-left-radius: 0;
  42. border-top-right-radius: 0;
  43. left: 0;
  44. top: 28px; }
  45. .select2-container.select2-theme-default .selection .single-select {
  46. background-color: #eee;
  47. border: 1px solid #aaa;
  48. border-radius: 4px; }
  49. .select2-container.select2-theme-default .selection .single-select .rendered-selection {
  50. color: #444;
  51. line-height: 28px; }
  52. .select2-container.select2-theme-default.open .selection .single-select {
  53. border-bottom: none;
  54. border-bottom-left-radius: 0;
  55. border-bottom-right-radius: 0; }
  56. .select2-container.select2-theme-default .dropdown .results {
  57. max-height: 200px;
  58. overflow-y: scroll; }
  59. .select2-container.select2-theme-default .dropdown .results .options .option.selected {
  60. background-color: #ddd; }
  61. .select2-container.select2-theme-default .dropdown .results .options .option.highlighted {
  62. background-color: #5897fb;
  63. color: white; }
  64. .s2-container {
  65. margin: 0;
  66. position: relative;
  67. zoom: 1;
  68. vertical-align: middle; }
  69. .s2-container.s2-active {
  70. border: 1px solid #5897fb;
  71. border-top: bottom; }
  72. .s2-container .s2-single-select {
  73. display: block;
  74. height: 26px;
  75. padding: 0 0 0 8px;
  76. overflow: hidden;
  77. position: relative;
  78. border: 1px solid #aaa;
  79. white-space: nowrap;
  80. line-height: 26px;
  81. color: #444;
  82. text-decoration: none;
  83. border-radius: 4px;
  84. background-clip: padding-box;
  85. -webkit-touch-callout: none;
  86. -webkit-user-select: none;
  87. -moz-user-select: none;
  88. -ms-user-select: none;
  89. user-select: none;
  90. background-color: #fff;
  91. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff));
  92. background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%);
  93. background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%);
  94. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
  95. background-image: linear-gradient(to top, #eee 0%, #fff 50%); }
  96. .s2-container .s2-single-select .s2-selection {
  97. margin-right: 26px;
  98. display: block;
  99. overflow: hidden;
  100. white-space: nowrap;
  101. text-overflow: ellipsis; }
  102. .s2-container .s2-open .select2-container-active .select2-choice, .s2-container .s2-open .select2-container-active .select2-choices {
  103. border: 1px solid #5897fb;
  104. outline: none;
  105. -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  106. box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); }
  107. .s2-search input {
  108. -webkit-box-sizing: border-box;
  109. /* webkit */
  110. -moz-box-sizing: border-box;
  111. /* firefox */
  112. box-sizing: border-box;
  113. /* css3 */ }
  114. .s2-dropdown {
  115. width: 100%;
  116. margin-top: -1px;
  117. position: absolute;
  118. z-index: 9999;
  119. overflow: scroll;
  120. background: #fff;
  121. color: #000;
  122. border: 1px solid #5897fb;
  123. border-top: none;
  124. border-radius: 0 0 4px 4px;
  125. -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
  126. box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); }
  127. .s2-hidden {
  128. display: none; }