select2.css 17 KB

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