select2.css 15 KB

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