select2.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  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-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-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-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-search-hidden {
  136. display: block;
  137. position: absolute;
  138. left: -10000px;
  139. }
  140. .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-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-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-results ul.select2-result-sub {
  221. margin: 0 0 0 0;
  222. }
  223. .select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
  224. .select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }
  225. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }
  226. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 80px }
  227. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 100px }
  228. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 110px }
  229. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 120px }
  230. .select2-results li {
  231. list-style: none;
  232. display: list-item;
  233. }
  234. .select2-results li.select2-result-with-children > .select2-result-label {
  235. font-weight: bold;
  236. }
  237. .select2-results .select2-result-label {
  238. line-height: 80%;
  239. padding: 7px 7px 8px;
  240. margin: 0;
  241. cursor: pointer;
  242. }
  243. .select2-results .select2-highlighted {
  244. background: #3875d7;
  245. color: #fff;
  246. }
  247. .select2-results li em {
  248. background: #feffde;
  249. font-style: normal;
  250. }
  251. .select2-results .select2-highlighted em {
  252. background: transparent;
  253. }
  254. .select2-results .select2-no-results {
  255. background: #f4f4f4;
  256. display: list-item;
  257. }
  258. /*
  259. disabled look for already selected choices in the results dropdown
  260. .select2-results .select2-disabled.select2-highlighted {
  261. color: #666;
  262. background: #f4f4f4;
  263. display: list-item;
  264. cursor: default;
  265. }
  266. .select2-results .select2-disabled {
  267. background: #f4f4f4;
  268. display: list-item;
  269. cursor: default;
  270. }
  271. */
  272. .select2-results .select2-disabled {
  273. display: none;
  274. }
  275. .select2-more-results.select2-active {
  276. background: #f4f4f4 url('spinner.gif') no-repeat 100%;
  277. }
  278. .select2-more-results {
  279. background: #f4f4f4;
  280. display: list-item;
  281. }
  282. /* disabled styles */
  283. .select2-container.select2-container-disabled .select2-choice {
  284. background-color: #f4f4f4;
  285. background-image: none;
  286. border: 1px solid #ddd;
  287. cursor: default;
  288. }
  289. .select2-container.select2-container-disabled .select2-choice div {
  290. background-color: #f4f4f4;
  291. background-image: none;
  292. border-left: 0;
  293. }
  294. /* multiselect */
  295. .select2-container-multi .select2-choices {
  296. background-color: #fff;
  297. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  298. background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  299. background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  300. background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  301. background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  302. background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  303. border: 1px solid #aaa;
  304. margin: 0;
  305. padding: 0;
  306. cursor: text;
  307. overflow: hidden;
  308. height: auto !important;
  309. height: 1%;
  310. position: relative;
  311. }
  312. .select2-container-multi .select2-choices {
  313. min-height: 26px;
  314. }
  315. .select2-container-multi.select2-container-active .select2-choices {
  316. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
  317. -moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
  318. -o-box-shadow : 0 0 5px rgba(0,0,0,.3);
  319. box-shadow : 0 0 5px rgba(0,0,0,.3);
  320. border: 1px solid #5897fb;
  321. outline: none;
  322. }
  323. .select2-container-multi .select2-choices li {
  324. float: left;
  325. list-style: none;
  326. }
  327. .select2-container-multi .select2-choices .select2-search-field {
  328. white-space: nowrap;
  329. margin: 0;
  330. padding: 0;
  331. }
  332. .select2-container-multi .select2-choices .select2-search-field input {
  333. color: #666;
  334. background: transparent !important;
  335. font-family: sans-serif;
  336. font-size: 100%;
  337. height: 15px;
  338. padding: 5px;
  339. margin: 1px 0;
  340. outline: 0;
  341. border: 0;
  342. -webkit-box-shadow: none;
  343. -moz-box-shadow : none;
  344. -o-box-shadow : none;
  345. box-shadow : none;
  346. }
  347. .select2-default {
  348. color: #999 !important;
  349. }
  350. .select2-container-multi .select2-choices .select2-search-choice {
  351. -webkit-border-radius: 3px;
  352. -moz-border-radius : 3px;
  353. border-radius : 3px;
  354. -moz-background-clip : padding;
  355. -webkit-background-clip: padding-box;
  356. background-clip : padding-box;
  357. background-color: #e4e4e4;
  358. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
  359. 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));
  360. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  361. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  362. background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  363. background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  364. background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  365. -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  366. -moz-box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  367. box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  368. color: #333;
  369. border: 1px solid #aaaaaa;
  370. line-height: 13px;
  371. padding: 3px 5px 3px 18px;
  372. margin: 3px 0 3px 5px;
  373. position: relative;
  374. cursor: default;
  375. }
  376. .select2-container-multi .select2-choices .select2-search-choice span {
  377. cursor: default;
  378. }
  379. .select2-container-multi .select2-choices .select2-search-choice-focus {
  380. background: #d4d4d4;
  381. }
  382. .select2-search-choice-close {
  383. display: block;
  384. position: absolute;
  385. right: 3px;
  386. top: 4px;
  387. width: 12px;
  388. height: 13px;
  389. font-size: 1px;
  390. background: url(select2.png) right top no-repeat;
  391. outline: none;
  392. }
  393. .select2-container-multi .select2-search-choice-close {
  394. left: 3px;
  395. }
  396. .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  397. background-position: right -11px;
  398. }
  399. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  400. background-position: right -11px;
  401. }
  402. /* disabled styles */
  403. .select2-container-multi.select2-container-disabled .select2-choices{
  404. background-color: #f4f4f4;
  405. background-image: none;
  406. border: 1px solid #ddd;
  407. cursor: default;
  408. }
  409. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
  410. background-image: none;
  411. background-color: #f4f4f4;
  412. border: 1px solid #ddd;
  413. padding: 3px 5px 3px 5px;
  414. }
  415. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close {
  416. display: none;
  417. }
  418. /* end multiselect */