select2.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. .select2-container {
  2. position: relative;
  3. display: inline-block;
  4. /* inline-block for ie7 */
  5. zoom: 1;
  6. *display: inline;
  7. }
  8. .select2-container .select2-choice {
  9. background-color: #fff;
  10. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
  11. background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%);
  12. background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
  13. background-image: -o-linear-gradient(top, #eeeeee 0%, #ffffff 50%);
  14. background-image: -ms-linear-gradient(top, #eeeeee 0%, #ffffff 50%);
  15. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#ffffff', GradientType = 0);
  16. background-image: linear-gradient(top, #eeeeee 0%, #ffffff 50%);
  17. -webkit-border-radius: 4px;
  18. -moz-border-radius: 4px;
  19. border-radius: 4px;
  20. -moz-background-clip: padding;
  21. -webkit-background-clip: padding-box;
  22. background-clip: padding-box;
  23. border: 1px solid #aaa;
  24. display: block;
  25. overflow: hidden;
  26. white-space: nowrap;
  27. position: relative;
  28. height: 26px;
  29. line-height: 26px;
  30. padding: 0 0 0 8px;
  31. color: #444;
  32. text-decoration: none;
  33. }
  34. .select2-container .select2-choice span {
  35. margin-right: 26px;
  36. display: block;
  37. overflow: hidden;
  38. white-space: nowrap;
  39. -o-text-overflow: ellipsis;
  40. -ms-text-overflow: ellipsis;
  41. text-overflow: ellipsis;
  42. }
  43. .select2-container .select2-choice abbr {
  44. display: block;
  45. position: absolute;
  46. right: 26px;
  47. top: 8px;
  48. width: 12px;
  49. height: 12px;
  50. font-size: 1px;
  51. background: url(select2.png) right top no-repeat;
  52. cursor: pointer;
  53. text-decoration: none;
  54. border:0;
  55. outline: 0;
  56. }
  57. .select2-container .select2-choice abbr:hover {
  58. background-position: right -11px;
  59. cursor: pointer;
  60. }
  61. .select2-container .select2-drop {
  62. background: #fff;
  63. border: 1px solid #aaa;
  64. border-top: 0;
  65. position: absolute;
  66. top: 29px;
  67. left: 0;
  68. -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  69. -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  70. -o-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  71. box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  72. z-index: 999;
  73. -webkit-border-radius: 0 0 4px 4px;
  74. -moz-border-radius: 0 0 4px 4px;
  75. border-radius: 0 0 4px 4px;
  76. -moz-background-clip: padding;
  77. -webkit-background-clip: padding-box;
  78. background-clip: padding-box;
  79. }
  80. .select2-container .select2-choice div {
  81. -webkit-border-radius: 0 4px 4px 0;
  82. -moz-border-radius: 0 4px 4px 0;
  83. border-radius: 0 4px 4px 0;
  84. -moz-background-clip: padding;
  85. -webkit-background-clip: padding-box;
  86. background-clip: padding-box;
  87. background: #ccc;
  88. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
  89. background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
  90. background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
  91. background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
  92. background-image: -ms-linear-gradient(top, #cccccc 0%, #eeeeee 60%);
  93. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#cccccc', endColorstr = '#eeeeee', GradientType = 0);
  94. background-image: linear-gradient(top, #cccccc 0%, #eeeeee 60%);
  95. border-left: 1px solid #aaa;
  96. position: absolute;
  97. right: 0;
  98. top: 0;
  99. display: block;
  100. height: 100%;
  101. width: 18px;
  102. }
  103. .select2-container .select2-choice div b {
  104. background: url('select2.png') no-repeat 0 1px;
  105. display: block;
  106. width: 100%;
  107. height: 100%;
  108. }
  109. .select2-container .select2-search {
  110. padding: 3px 4px;
  111. position: relative;
  112. margin: 0;
  113. white-space: nowrap;
  114. z-index: 1010;
  115. }
  116. .select2-container .select2-search input {
  117. background: #fff url('select2.png') no-repeat 100% -22px;
  118. background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
  119. background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  120. background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  121. background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
  122. background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  123. background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  124. margin: 1px 0;
  125. padding: 4px 20px 4px 5px;
  126. outline: 0;
  127. border: 1px solid #aaa;
  128. font-family: sans-serif;
  129. font-size: 1em;
  130. }
  131. .select2-container .select2-search input.select2-active {
  132. background: #fff url('spinner.gif') no-repeat 100%;
  133. background: url('spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
  134. background: url('spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  135. background: url('spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  136. background: url('spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
  137. background: url('spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  138. background: url('spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  139. margin: 1px 0;
  140. padding: 4px 20px 4px 5px;
  141. outline: 0;
  142. border: 1px solid #aaa;
  143. font-family: sans-serif;
  144. font-size: 1em;
  145. }
  146. .select2-container-active .select2-choice,
  147. .select2-container-active .select2-choices {
  148. -webkit-box-shadow: none;
  149. -moz-box-shadow: none;
  150. box-shadow: none;
  151. outline: thin dotted #333;
  152. outline: 5px auto -webkit-focus-ring-color;
  153. outline-offset: -2px;
  154. }
  155. .select2-dropdown-open .select2-choice {
  156. border: 1px solid #aaa;
  157. -webkit-box-shadow: 0 1px 0 #fff inset;
  158. -moz-box-shadow : 0 1px 0 #fff inset;
  159. -o-box-shadow : 0 1px 0 #fff inset;
  160. box-shadow : 0 1px 0 #fff inset;
  161. background-color: #eee;
  162. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
  163. background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
  164. background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
  165. background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
  166. background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
  167. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
  168. background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
  169. -webkit-border-bottom-left-radius : 0;
  170. -webkit-border-bottom-right-radius: 0;
  171. -moz-border-radius-bottomleft : 0;
  172. -moz-border-radius-bottomright: 0;
  173. border-bottom-left-radius : 0;
  174. border-bottom-right-radius: 0;
  175. }
  176. .select2-dropdown-open .select2-choice div {
  177. background: transparent;
  178. border-left: none;
  179. }
  180. .select2-dropdown-open .select2-choice div b {
  181. background-position: -18px 1px;
  182. }
  183. /* results */
  184. .select2-container .select2-results {
  185. margin: 0 4px 4px 0;
  186. padding: 0 0 0 4px;
  187. position: relative;
  188. overflow-x: hidden;
  189. overflow-y: auto;
  190. max-height: 200px;
  191. }
  192. .select2-container .select2-results li {
  193. line-height: 80%;
  194. padding: 7px 7px 8px;
  195. margin: 0;
  196. list-style: none;
  197. cursor: pointer;
  198. display: list-item;
  199. }
  200. .select2-container .select2-results .select2-highlighted {
  201. background: #3875d7;
  202. color: #fff;
  203. }
  204. .select2-container .select2-results li em {
  205. background: #feffde;
  206. font-style: normal;
  207. }
  208. .select2-container .select2-results .select2-highlighted em {
  209. background: transparent;
  210. }
  211. .select2-container .select2-results .select2-no-results {
  212. background: #f4f4f4;
  213. display: list-item;
  214. }
  215. .select2-container .select2-results .select2-disabled.select2-highlighted {
  216. color: #666;
  217. background: #f4f4f4;
  218. display: list-item;
  219. cursor: default;
  220. }
  221. .select2-container .select2-results .select2-disabled {
  222. background: #f4f4f4;
  223. display: list-item;
  224. cursor: default;
  225. }
  226. .select2-more-results.select2-active {
  227. background: #f4f4f4 url('spinner.gif') no-repeat 100%;
  228. }
  229. .select2-more-results {
  230. background: #f4f4f4;
  231. display: list-item;
  232. }
  233. /* multiselect */
  234. .select2-container-multi .select2-choices {
  235. background-color: #fff;
  236. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  237. background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  238. background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  239. background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  240. background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  241. background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  242. border: 1px solid #aaa;
  243. margin: 0;
  244. padding: 0;
  245. cursor: text;
  246. overflow: hidden;
  247. height: auto !important;
  248. height: 1%;
  249. position: relative;
  250. }
  251. .select2-container-multi .select2-choices li {
  252. float: left;
  253. list-style: none;
  254. }
  255. .select2-container-multi .select2-choices .select2-search-field {
  256. white-space: nowrap;
  257. margin: 0;
  258. padding: 0;
  259. }
  260. .select2-container-multi .select2-choices .select2-search-field input {
  261. color: #666;
  262. background: transparent !important;
  263. font-family: sans-serif;
  264. font-size: 100%;
  265. height: 15px;
  266. padding: 5px;
  267. margin: 1px 0;
  268. outline: 0;
  269. border: 0;
  270. -webkit-box-shadow: none;
  271. -moz-box-shadow : none;
  272. -o-box-shadow : none;
  273. box-shadow : none;
  274. }
  275. .select2-default {
  276. color: #999 !important;
  277. }
  278. .select2-container-multi .select2-choices .select2-search-choice {
  279. -webkit-border-radius: 3px;
  280. -moz-border-radius : 3px;
  281. border-radius : 3px;
  282. -moz-background-clip : padding;
  283. -webkit-background-clip: padding-box;
  284. background-clip : padding-box;
  285. background-color: #e4e4e4;
  286. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
  287. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
  288. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  289. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  290. background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  291. background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  292. background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  293. -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  294. -moz-box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  295. box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  296. color: #333;
  297. border: 1px solid #aaaaaa;
  298. line-height: 13px;
  299. padding: 3px 20px 3px 5px;
  300. margin: 3px 0 3px 5px;
  301. position: relative;
  302. cursor: default;
  303. }
  304. .select2-container-multi .select2-choices .select2-search-choice span {
  305. cursor: default;
  306. }
  307. .select2-container-multi .select2-choices .select2-search-choice-focus {
  308. background: #d4d4d4;
  309. }
  310. .select2-search-choice-close {
  311. display: block;
  312. position: absolute;
  313. right: 3px;
  314. top: 4px;
  315. width: 12px;
  316. height: 13px;
  317. font-size: 1px;
  318. background: url(select2.png) right top no-repeat;
  319. }
  320. .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  321. background-position: right -11px;
  322. }
  323. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  324. background-position: right -11px;
  325. }
  326. .select2-container-multi .select2-results {
  327. margin: -1px 0 0;
  328. padding: 0;
  329. }
  330. /* end multiselect */