select2.css 18 KB

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