select2.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  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-drop-above .select2-choice
  53. {
  54. border-bottom-color: #aaa;
  55. -webkit-border-radius:0px 0px 4px 4px;
  56. -moz-border-radius:0px 0px 4px 4px;
  57. border-radius:0px 0px 4px 4px;
  58. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.9, white));
  59. background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 90%);
  60. background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 90%);
  61. background-image: -o-linear-gradient(bottom, #eeeeee 0%, white 90%);
  62. background-image: -ms-linear-gradient(top, #eeeeee 0%,#ffffff 90%);
  63. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
  64. background-image: linear-gradient(top, #eeeeee 0%,#ffffff 90%);
  65. }
  66. .select2-container .select2-choice span {
  67. margin-right: 26px;
  68. display: block;
  69. overflow: hidden;
  70. white-space: nowrap;
  71. -o-text-overflow: ellipsis;
  72. -ms-text-overflow: ellipsis;
  73. text-overflow: ellipsis;
  74. }
  75. .select2-container .select2-choice abbr {
  76. display: block;
  77. position: absolute;
  78. right: 26px;
  79. top: 8px;
  80. width: 12px;
  81. height: 12px;
  82. font-size: 1px;
  83. background: url('select2.png') right top no-repeat;
  84. cursor: pointer;
  85. text-decoration: none;
  86. border:0;
  87. outline: 0;
  88. }
  89. .select2-container .select2-choice abbr:hover {
  90. background-position: right -11px;
  91. cursor: pointer;
  92. }
  93. .select2-drop {
  94. background: #fff;
  95. border: 1px solid #aaa;
  96. border-top: 0;
  97. position: absolute;
  98. top: 100%;
  99. -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  100. -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  101. -o-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  102. box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  103. z-index: 9999;
  104. width:100%;
  105. margin-top:-1px;
  106. -webkit-border-radius: 0 0 4px 4px;
  107. -moz-border-radius: 0 0 4px 4px;
  108. border-radius: 0 0 4px 4px;
  109. }
  110. .select2-drop.select2-drop-above {
  111. -webkit-border-radius: 4px 4px 0px 0px;
  112. -moz-border-radius: 4px 4px 0px 0px;
  113. border-radius: 4px 4px 0px 0px;
  114. margin-top:1px;
  115. border-top: 1px solid #aaa;
  116. border-bottom: 0;
  117. -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  118. -moz-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  119. -o-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  120. box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  121. }
  122. .select2-container .select2-choice div {
  123. -webkit-border-radius: 0 4px 4px 0;
  124. -moz-border-radius: 0 4px 4px 0;
  125. border-radius: 0 4px 4px 0;
  126. -moz-background-clip: padding;
  127. -webkit-background-clip: padding-box;
  128. background-clip: padding-box;
  129. background: #ccc;
  130. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
  131. background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
  132. background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
  133. background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
  134. background-image: -ms-linear-gradient(top, #cccccc 0%, #eeeeee 60%);
  135. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#cccccc', endColorstr = '#eeeeee', GradientType = 0);
  136. background-image: linear-gradient(top, #cccccc 0%, #eeeeee 60%);
  137. border-left: 1px solid #aaa;
  138. position: absolute;
  139. right: 0;
  140. top: 0;
  141. display: block;
  142. height: 100%;
  143. width: 18px;
  144. }
  145. .select2-container .select2-choice div b {
  146. background: url('select2.png') no-repeat 0 1px;
  147. display: block;
  148. width: 100%;
  149. height: 100%;
  150. }
  151. .select2-search {
  152. display: inline-block;
  153. white-space: nowrap;
  154. z-index: 10000;
  155. min-height: 26px;
  156. width: 100%;
  157. margin: 0;
  158. padding-left: 4px;
  159. padding-right: 4px;
  160. }
  161. .select2-search-hidden {
  162. display: block;
  163. position: absolute;
  164. left: -10000px;
  165. }
  166. .select2-search input {
  167. background: #fff url('select2.png') no-repeat 100% -22px;
  168. 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));
  169. background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  170. background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  171. background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
  172. background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  173. background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  174. padding: 4px 20px 4px 5px;
  175. outline: 0;
  176. border: 1px solid #aaa;
  177. font-family: sans-serif;
  178. font-size: 1em;
  179. width:100%;
  180. margin:0;
  181. height:auto !important;
  182. min-height: 26px;
  183. -webkit-box-shadow: none;
  184. -moz-box-shadow: none;
  185. box-shadow: none;
  186. border-radius: 0;
  187. -moz-border-radius: 0;
  188. -webkit-border-radius: 0;
  189. }
  190. .select2-drop.select2-drop-above .select2-search input
  191. {
  192. margin-top:4px;
  193. }
  194. .select2-search input.select2-active {
  195. background: #fff url('spinner.gif') no-repeat 100%;
  196. background: url('spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
  197. background: url('spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  198. background: url('spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  199. background: url('spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
  200. background: url('spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  201. background: url('spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  202. }
  203. .select2-container-active .select2-choice,
  204. .select2-container-active .select2-choices {
  205. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
  206. -moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
  207. -o-box-shadow : 0 0 5px rgba(0,0,0,.3);
  208. box-shadow : 0 0 5px rgba(0,0,0,.3);
  209. border: 1px solid #5897fb;
  210. outline: none;
  211. }
  212. .select2-dropdown-open .select2-choice {
  213. border: 1px solid #aaa;
  214. border-bottom-color: transparent;
  215. -webkit-box-shadow: 0 1px 0 #fff inset;
  216. -moz-box-shadow : 0 1px 0 #fff inset;
  217. -o-box-shadow : 0 1px 0 #fff inset;
  218. box-shadow : 0 1px 0 #fff inset;
  219. background-color: #eee;
  220. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
  221. background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
  222. background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
  223. background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
  224. background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
  225. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
  226. background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
  227. -webkit-border-bottom-left-radius : 0;
  228. -webkit-border-bottom-right-radius: 0;
  229. -moz-border-radius-bottomleft : 0;
  230. -moz-border-radius-bottomright: 0;
  231. border-bottom-left-radius : 0;
  232. border-bottom-right-radius: 0;
  233. }
  234. .select2-dropdown-open .select2-choice div {
  235. background: transparent;
  236. border-left: none;
  237. }
  238. .select2-dropdown-open .select2-choice div b {
  239. background-position: -18px 1px;
  240. }
  241. /* results */
  242. .select2-results {
  243. margin: 4px 4px 4px 0;
  244. padding: 0 0 0 4px;
  245. position: relative;
  246. overflow-x: hidden;
  247. overflow-y: auto;
  248. max-height: 200px;
  249. }
  250. .select2-results ul.select2-result-sub {
  251. margin: 0 0 0 0;
  252. }
  253. .select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
  254. .select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }
  255. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }
  256. .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 }
  257. .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 }
  258. .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 }
  259. .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 }
  260. .select2-results li {
  261. list-style: none;
  262. display: list-item;
  263. }
  264. .select2-results li.select2-result-with-children > .select2-result-label {
  265. font-weight: bold;
  266. }
  267. .select2-results .select2-result-label {
  268. padding: 3px 7px 4px;
  269. margin: 0;
  270. cursor: pointer;
  271. }
  272. .select2-results .select2-highlighted {
  273. background: #3875d7;
  274. color: #fff;
  275. }
  276. .select2-results li em {
  277. background: #feffde;
  278. font-style: normal;
  279. }
  280. .select2-results .select2-highlighted em {
  281. background: transparent;
  282. }
  283. .select2-results .select2-no-results {
  284. background: #f4f4f4;
  285. display: list-item;
  286. }
  287. /*
  288. disabled look for already selected choices in the results dropdown
  289. .select2-results .select2-disabled.select2-highlighted {
  290. color: #666;
  291. background: #f4f4f4;
  292. display: list-item;
  293. cursor: default;
  294. }
  295. .select2-results .select2-disabled {
  296. background: #f4f4f4;
  297. display: list-item;
  298. cursor: default;
  299. }
  300. */
  301. .select2-results .select2-disabled {
  302. display: none;
  303. }
  304. .select2-more-results.select2-active {
  305. background: #f4f4f4 url('spinner.gif') no-repeat 100%;
  306. }
  307. .select2-more-results {
  308. background: #f4f4f4;
  309. display: list-item;
  310. }
  311. /* disabled styles */
  312. .select2-container.select2-container-disabled .select2-choice {
  313. background-color: #f4f4f4;
  314. background-image: none;
  315. border: 1px solid #ddd;
  316. cursor: default;
  317. }
  318. .select2-container.select2-container-disabled .select2-choice div {
  319. background-color: #f4f4f4;
  320. background-image: none;
  321. border-left: 0;
  322. }
  323. /* multiselect */
  324. .select2-container-multi .select2-choices {
  325. background-color: #fff;
  326. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  327. background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  328. background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  329. background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  330. background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  331. background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  332. border: 1px solid #aaa;
  333. margin: 0;
  334. padding: 0;
  335. cursor: text;
  336. overflow: hidden;
  337. height: auto !important;
  338. height: 1%;
  339. position: relative;
  340. }
  341. .select2-container-multi .select2-choices {
  342. min-height: 26px;
  343. }
  344. .select2-container-multi.select2-container-active .select2-choices {
  345. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
  346. -moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
  347. -o-box-shadow : 0 0 5px rgba(0,0,0,.3);
  348. box-shadow : 0 0 5px rgba(0,0,0,.3);
  349. border: 1px solid #5897fb;
  350. outline: none;
  351. }
  352. .select2-container-multi .select2-choices li {
  353. float: left;
  354. list-style: none;
  355. }
  356. .select2-container-multi .select2-choices .select2-search-field {
  357. white-space: nowrap;
  358. margin: 0;
  359. padding: 0;
  360. }
  361. .select2-container-multi .select2-choices .select2-search-field input {
  362. color: #666;
  363. background: transparent !important;
  364. font-family: sans-serif;
  365. font-size: 100%;
  366. height: 15px;
  367. padding: 5px;
  368. margin: 1px 0;
  369. outline: 0;
  370. border: 0;
  371. -webkit-box-shadow: none;
  372. -moz-box-shadow : none;
  373. -o-box-shadow : none;
  374. box-shadow : none;
  375. }
  376. .select2-container-multi .select2-choices .select2-search-field input.select2-active {
  377. background: #fff url('spinner.gif') no-repeat 100% !important;
  378. }
  379. .select2-default {
  380. color: #999 !important;
  381. }
  382. .select2-container-multi .select2-choices .select2-search-choice {
  383. -webkit-border-radius: 3px;
  384. -moz-border-radius : 3px;
  385. border-radius : 3px;
  386. -moz-background-clip : padding;
  387. -webkit-background-clip: padding-box;
  388. background-clip : padding-box;
  389. background-color: #e4e4e4;
  390. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
  391. 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));
  392. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  393. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  394. background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  395. background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  396. background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  397. -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  398. -moz-box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  399. box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  400. color: #333;
  401. border: 1px solid #aaaaaa;
  402. line-height: 13px;
  403. padding: 3px 5px 3px 18px;
  404. margin: 3px 0 3px 5px;
  405. position: relative;
  406. cursor: default;
  407. }
  408. .select2-container-multi .select2-choices .select2-search-choice span {
  409. cursor: default;
  410. }
  411. .select2-container-multi .select2-choices .select2-search-choice-focus {
  412. background: #d4d4d4;
  413. }
  414. .select2-search-choice-close {
  415. display: block;
  416. position: absolute;
  417. right: 3px;
  418. top: 4px;
  419. width: 12px;
  420. height: 13px;
  421. font-size: 1px;
  422. background: url('select2.png') right top no-repeat;
  423. outline: none;
  424. }
  425. .select2-container-multi .select2-search-choice-close {
  426. left: 3px;
  427. }
  428. .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  429. background-position: right -11px;
  430. }
  431. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  432. background-position: right -11px;
  433. }
  434. /* disabled styles */
  435. .select2-container-multi.select2-container-disabled .select2-choices{
  436. background-color: #f4f4f4;
  437. background-image: none;
  438. border: 1px solid #ddd;
  439. cursor: default;
  440. }
  441. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
  442. background-image: none;
  443. background-color: #f4f4f4;
  444. border: 1px solid #ddd;
  445. padding: 3px 5px 3px 5px;
  446. }
  447. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close {
  448. display: none;
  449. }
  450. /* end multiselect */
  451. .select2-result-selectable .select2-match,
  452. .select2-result-unselectable .select2-result-selectable .select2-match { text-decoration: underline; }
  453. .select2-result-unselectable .select2-match { text-decoration: none; }
  454. .select2-offscreen { position: absolute; left: -10000px; }