select2.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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-hidden {
  136. display: block;
  137. position: absolute;
  138. left: -10000px;
  139. }
  140. .select2-container .select2-search input {
  141. background: #fff url('select2.png') no-repeat 100% -22px;
  142. 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));
  143. background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  144. background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  145. background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
  146. background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  147. background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  148. padding: 4px 20px 4px 5px;
  149. outline: 0;
  150. border: 1px solid #aaa;
  151. font-family: sans-serif;
  152. font-size: 1em;
  153. width:100%;
  154. margin:0;
  155. height:auto !important;
  156. min-height: 26px;
  157. -webkit-box-shadow: none;
  158. -moz-box-shadow: none;
  159. box-shadow: none;
  160. border-radius: 0;
  161. -moz-border-radius: 0;
  162. -webkit-border-radius: 0;
  163. }
  164. .select2-container .select2-search input.select2-active {
  165. background: #fff url('spinner.gif') no-repeat 100%;
  166. background: url('spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
  167. background: url('spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  168. background: url('spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  169. background: url('spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
  170. background: url('spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  171. background: url('spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  172. }
  173. .select2-container-active .select2-choice,
  174. .select2-container-active .select2-choices {
  175. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
  176. -moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
  177. -o-box-shadow : 0 0 5px rgba(0,0,0,.3);
  178. box-shadow : 0 0 5px rgba(0,0,0,.3);
  179. border: 1px solid #5897fb;
  180. outline: none;
  181. }
  182. .select2-dropdown-open .select2-choice {
  183. border: 1px solid #aaa;
  184. border-bottom-color: transparent;
  185. -webkit-box-shadow: 0 1px 0 #fff inset;
  186. -moz-box-shadow : 0 1px 0 #fff inset;
  187. -o-box-shadow : 0 1px 0 #fff inset;
  188. box-shadow : 0 1px 0 #fff inset;
  189. background-color: #eee;
  190. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
  191. background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
  192. background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
  193. background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
  194. background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
  195. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
  196. background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
  197. -webkit-border-bottom-left-radius : 0;
  198. -webkit-border-bottom-right-radius: 0;
  199. -moz-border-radius-bottomleft : 0;
  200. -moz-border-radius-bottomright: 0;
  201. border-bottom-left-radius : 0;
  202. border-bottom-right-radius: 0;
  203. }
  204. .select2-dropdown-open .select2-choice div {
  205. background: transparent;
  206. border-left: none;
  207. }
  208. .select2-dropdown-open .select2-choice div b {
  209. background-position: -18px 1px;
  210. }
  211. /* results */
  212. .select2-container .select2-results {
  213. margin: 4px 4px 4px 0;
  214. padding: 0 0 0 4px;
  215. position: relative;
  216. overflow-x: hidden;
  217. overflow-y: auto;
  218. max-height: 200px;
  219. }
  220. .select2-container .select2-results li {
  221. line-height: 80%;
  222. padding: 7px 7px 8px;
  223. margin: 0;
  224. list-style: none;
  225. cursor: pointer;
  226. display: list-item;
  227. }
  228. .select2-container .select2-results .select2-highlighted {
  229. background: #3875d7;
  230. color: #fff;
  231. }
  232. .select2-container .select2-results li em {
  233. background: #feffde;
  234. font-style: normal;
  235. }
  236. .select2-container .select2-results .select2-highlighted em {
  237. background: transparent;
  238. }
  239. .select2-container .select2-results .select2-no-results {
  240. background: #f4f4f4;
  241. display: list-item;
  242. }
  243. /*
  244. disabled look for already selected choices in the results dropdown
  245. .select2-container .select2-results .select2-disabled.select2-highlighted {
  246. color: #666;
  247. background: #f4f4f4;
  248. display: list-item;
  249. cursor: default;
  250. }
  251. .select2-container .select2-results .select2-disabled {
  252. background: #f4f4f4;
  253. display: list-item;
  254. cursor: default;
  255. }
  256. */
  257. .select2-container .select2-results .select2-disabled {
  258. display: none;
  259. }
  260. .select2-more-results.select2-active {
  261. background: #f4f4f4 url('spinner.gif') no-repeat 100%;
  262. }
  263. .select2-more-results {
  264. background: #f4f4f4;
  265. display: list-item;
  266. }
  267. /* disabled styles */
  268. .select2-container.select2-container-disabled .select2-choice {
  269. background-color: #f4f4f4;
  270. background-image: none;
  271. border: 1px solid #ddd;
  272. cursor: default;
  273. }
  274. .select2-container.select2-container-disabled .select2-choice div {
  275. background-color: #f4f4f4;
  276. background-image: none;
  277. border-left: 0;
  278. }
  279. /* multiselect */
  280. .select2-container-multi .select2-choices {
  281. background-color: #fff;
  282. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  283. background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  284. background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  285. background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  286. background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  287. background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  288. border: 1px solid #aaa;
  289. margin: 0;
  290. padding: 0;
  291. cursor: text;
  292. overflow: hidden;
  293. height: auto !important;
  294. height: 1%;
  295. position: relative;
  296. }
  297. .select2-container-multi .select2-drop {
  298. margin-top:0;
  299. }
  300. .select2-container-multi .select2-choices {
  301. min-height: 26px;
  302. }
  303. .select2-container-multi.select2-container-active .select2-choices {
  304. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
  305. -moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
  306. -o-box-shadow : 0 0 5px rgba(0,0,0,.3);
  307. box-shadow : 0 0 5px rgba(0,0,0,.3);
  308. border: 1px solid #5897fb;
  309. outline: none;
  310. }
  311. .select2-container-multi .select2-choices li {
  312. float: left;
  313. list-style: none;
  314. }
  315. .select2-container-multi .select2-choices .select2-search-field {
  316. white-space: nowrap;
  317. margin: 0;
  318. padding: 0;
  319. }
  320. .select2-container-multi .select2-choices .select2-search-field input {
  321. color: #666;
  322. background: transparent !important;
  323. font-family: sans-serif;
  324. font-size: 100%;
  325. height: 15px;
  326. padding: 5px;
  327. margin: 1px 0;
  328. outline: 0;
  329. border: 0;
  330. -webkit-box-shadow: none;
  331. -moz-box-shadow : none;
  332. -o-box-shadow : none;
  333. box-shadow : none;
  334. }
  335. .select2-default {
  336. color: #999 !important;
  337. }
  338. .select2-container-multi .select2-choices .select2-search-choice {
  339. -webkit-border-radius: 3px;
  340. -moz-border-radius : 3px;
  341. border-radius : 3px;
  342. -moz-background-clip : padding;
  343. -webkit-background-clip: padding-box;
  344. background-clip : padding-box;
  345. background-color: #e4e4e4;
  346. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
  347. 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));
  348. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  349. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  350. background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  351. background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  352. background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  353. -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  354. -moz-box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  355. box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  356. color: #333;
  357. border: 1px solid #aaaaaa;
  358. line-height: 13px;
  359. padding: 3px 5px 3px 18px;
  360. margin: 3px 0 3px 5px;
  361. position: relative;
  362. cursor: default;
  363. }
  364. .select2-container-multi .select2-choices .select2-search-choice span {
  365. cursor: default;
  366. }
  367. .select2-container-multi .select2-choices .select2-search-choice-focus {
  368. background: #d4d4d4;
  369. }
  370. .select2-search-choice-close {
  371. display: block;
  372. position: absolute;
  373. right: 3px;
  374. top: 4px;
  375. width: 12px;
  376. height: 13px;
  377. font-size: 1px;
  378. background: url(select2.png) right top no-repeat;
  379. outline: none;
  380. }
  381. .select2-container-multi .select2-search-choice-close {
  382. left: 3px;
  383. }
  384. .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  385. background-position: right -11px;
  386. }
  387. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  388. background-position: right -11px;
  389. }
  390. .select2-container-multi .select2-results {
  391. margin: -1px 0 0;
  392. padding: 0;
  393. }
  394. /* disabled styles */
  395. .select2-container-multi.select2-container-disabled .select2-choices{
  396. background-color: #f4f4f4;
  397. background-image: none;
  398. border: 1px solid #ddd;
  399. cursor: default;
  400. }
  401. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
  402. background-image: none;
  403. background-color: #f4f4f4;
  404. border: 1px solid #ddd;
  405. padding: 3px 5px 3px 5px;
  406. }
  407. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close {
  408. display: none;
  409. }
  410. /* end multiselect */