chosen.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /* Chosen Select */
  2. .chosen-container {
  3. position: relative;
  4. display: inline-block;
  5. zoom: 1;
  6. width: 100% !important;
  7. vertical-align: middle;
  8. border-width: 1px;
  9. border-style: solid;
  10. *display: inline;
  11. }
  12. .chosen-container .chosen-drop {
  13. position: absolute;
  14. z-index: 1010;
  15. top: 38px;
  16. left: -9999px;
  17. width: 100%;
  18. border-width: 1px;
  19. border-style: solid;
  20. border-top: 0;
  21. background: #fff;
  22. }
  23. .chosen-container.chosen-with-drop .chosen-drop {
  24. right: -1px;
  25. left: -1px;
  26. width: auto;
  27. padding: 10px;
  28. }
  29. .chosen-container-single .chosen-single {
  30. line-height: 38px;
  31. position: relative;
  32. display: block;
  33. overflow: hidden;
  34. height: 38px;
  35. margin: 0;
  36. padding: 0 10px !important;
  37. cursor: pointer;
  38. white-space: nowrap;
  39. text-decoration: none;
  40. }
  41. .chosen-container-single .chosen-single span {
  42. display: block;
  43. overflow: hidden;
  44. white-space: nowrap;
  45. text-overflow: ellipsis;
  46. }
  47. .chosen-container-single .chosen-single-with-deselect span {
  48. margin-right: 38px;
  49. }
  50. .chosen-container-single .chosen-single abbr {
  51. font-size: 9px;
  52. font-weight: bold;
  53. line-height: 16px;
  54. position: absolute;
  55. top: 9px;
  56. right: 26px;
  57. display: block;
  58. width: 16px;
  59. height: 16px;
  60. text-align: center;
  61. }
  62. .chosen-container-single .chosen-search {
  63. position: relative;
  64. z-index: 1010;
  65. margin: 0 0 10px;
  66. white-space: nowrap;
  67. }
  68. .chosen-container-single .chosen-search i,
  69. .chosen-container-single .chosen-single div {
  70. line-height: 38px;
  71. position: absolute;
  72. z-index: 4;
  73. top: 50%;
  74. right: 0;
  75. display: block;
  76. width: 38px;
  77. height: 38px;
  78. margin-top: -19px;
  79. text-align: center;
  80. border-left: 1px solid transparent;
  81. }
  82. .chosen-container-active.chosen-with-drop .chosen-single div {
  83. border-bottom: 1px solid transparent;
  84. border-bottom-right-radius: 0;
  85. }
  86. .chosen-container-single .chosen-search i {
  87. margin-top: -19px;
  88. padding: 0 !important;
  89. }
  90. .chosen-container-single .chosen-search input {
  91. width: 100%;
  92. padding: 0 38px 0 5px;
  93. }
  94. .chosen-container-single.chosen-container-single-nosearch .chosen-search {
  95. position: absolute;
  96. left: -9999px;
  97. }
  98. .chosen-container .chosen-results {
  99. position: relative;
  100. overflow-x: hidden;
  101. overflow-y: auto;
  102. max-height: 240px;
  103. -webkit-overflow-scrolling: touch;
  104. }
  105. .chosen-container .chosen-results li {
  106. line-height: 20px;
  107. margin: 5px 0;
  108. padding: 3px 10px;
  109. list-style: none;
  110. }
  111. .chosen-container .chosen-results li.group-result {
  112. font-weight: bold;
  113. margin: 0;
  114. text-transform: uppercase;
  115. }
  116. .chosen-container .chosen-results li.active-result {
  117. display: list-item;
  118. cursor: pointer;
  119. }
  120. .chosen-container .chosen-results li.disabled-result {
  121. display: list-item;
  122. cursor: default;
  123. color: #ccc;
  124. }
  125. .chosen-container .chosen-results li.no-results {
  126. display: list-item;
  127. margin: 0;
  128. text-align: center;
  129. }
  130. .chosen-container .chosen-results li.no-results span {
  131. font-weight: bold;
  132. }
  133. .chosen-container .chosen-results li.group-option {
  134. padding-left: 15px;
  135. }
  136. .chosen-container .chosen-results li em {
  137. font-style: normal;
  138. text-decoration: underline;
  139. }
  140. /* Chosen multi */
  141. .chosen-container-multi {
  142. height: auto;
  143. min-height: 38px;
  144. padding: 0;
  145. }
  146. .chosen-container-multi .chosen-choices {
  147. position: relative;
  148. overflow: hidden;
  149. box-sizing: border-box;
  150. width: 100%;
  151. height: auto !important;
  152. height: 1%;
  153. margin: 0;
  154. padding: 0;
  155. cursor: text;
  156. }
  157. .chosen-container-multi .chosen-choices li {
  158. float: left;
  159. list-style: none;
  160. }
  161. .chosen-container-multi .chosen-choices li.search-field {
  162. margin: 0;
  163. padding: 0 10px;
  164. white-space: nowrap;
  165. }
  166. .chosen-container-multi .chosen-choices li.search-field input {
  167. width: 100%;
  168. height: 38px;
  169. padding: 0;
  170. border: 0 !important;
  171. outline: 0;
  172. background: transparent !important;
  173. -webkit-box-shadow: none;
  174. -moz-box-shadow: none;
  175. box-shadow: none;
  176. }
  177. .chosen-container-multi .chosen-choices li.search-field .default {
  178. color: #999;
  179. }
  180. .chosen-container-multi .chosen-choices li.search-choice {
  181. position: relative;
  182. margin: 6px 0 6px 6px;
  183. padding: 3px 25px 3px 5px;
  184. cursor: default;
  185. border-width: 1px;
  186. border-style: solid;
  187. }
  188. .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  189. line-height: 12px;
  190. position: absolute;
  191. top: 5px;
  192. right: 5px;
  193. display: block;
  194. width: 12px;
  195. height: 12px;
  196. cursor: pointer;
  197. text-align: center;
  198. opacity: .5;
  199. }
  200. .chosen-container-multi .chosen-results li.result-selected {
  201. opacity: .6;
  202. filter: alpha(opacity=60);
  203. }
  204. .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
  205. opacity: 1;
  206. }