select2.css 13 KB

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