select2.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  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(to top, #eee 0%, #fff 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(to bottom, #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. filter: alpha(opacity=0);
  107. }
  108. .select2-drop {
  109. width: 100%;
  110. margin-top: -1px;
  111. position: absolute;
  112. z-index: 9999;
  113. top: 100%;
  114. background: #fff;
  115. color: #000;
  116. border: 1px solid #aaa;
  117. border-top: 0;
  118. border-radius: 0 0 4px 4px;
  119. -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  120. box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  121. }
  122. .select2-drop.select2-drop-above {
  123. margin-top: 1px;
  124. border-top: 1px solid #aaa;
  125. border-bottom: 0;
  126. border-radius: 4px 4px 0 0;
  127. -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  128. box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  129. }
  130. .select2-drop-active {
  131. border: 1px solid #5897fb;
  132. border-top: none;
  133. }
  134. .select2-drop.select2-drop-above.select2-drop-active {
  135. border-top: 1px solid #5897fb;
  136. }
  137. .select2-drop-auto-width {
  138. border-top: 1px solid #aaa;
  139. width: auto;
  140. }
  141. .select2-drop-auto-width .select2-search {
  142. padding-top: 4px;
  143. }
  144. .select2-container .select2-choice .select2-arrow {
  145. display: inline-block;
  146. width: 18px;
  147. height: 100%;
  148. position: absolute;
  149. right: 0;
  150. top: 0;
  151. border-left: 1px solid #aaa;
  152. border-radius: 0 4px 4px 0;
  153. background-clip: padding-box;
  154. background: #ccc;
  155. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
  156. background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
  157. background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
  158. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
  159. background-image: linear-gradient(to top, #ccc 0%, #eee 60%);
  160. }
  161. .select2-container .select2-choice .select2-arrow b {
  162. display: block;
  163. width: 100%;
  164. height: 100%;
  165. background: url('select2.png') no-repeat 0 1px;
  166. }
  167. .select2-search {
  168. display: inline-block;
  169. width: 100%;
  170. min-height: 26px;
  171. margin: 0;
  172. padding-left: 4px;
  173. padding-right: 4px;
  174. position: relative;
  175. z-index: 10000;
  176. white-space: nowrap;
  177. }
  178. .select2-search input {
  179. width: 100%;
  180. height: auto !important;
  181. min-height: 26px;
  182. padding: 4px 20px 4px 5px;
  183. margin: 0;
  184. outline: 0;
  185. font-family: sans-serif;
  186. font-size: 1em;
  187. border: 1px solid #aaa;
  188. border-radius: 0;
  189. -webkit-box-shadow: none;
  190. box-shadow: none;
  191. background: #fff url('select2.png') no-repeat 100% -22px;
  192. 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));
  193. background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
  194. background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
  195. background: url('select2.png') no-repeat 100% -22px, linear-gradient(to bottom, #fff 85%, #eee 99%);
  196. }
  197. .select2-drop.select2-drop-above .select2-search input {
  198. margin-top: 4px;
  199. }
  200. .select2-search input.select2-active {
  201. background: #fff url('select2-spinner.gif') no-repeat 100%;
  202. 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));
  203. background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
  204. background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
  205. background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(to bottom, #fff 85%, #eee 99%);
  206. }
  207. .select2-container-active .select2-choice,
  208. .select2-container-active .select2-choices {
  209. border: 1px solid #5897fb;
  210. outline: none;
  211. -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  212. box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  213. }
  214. .select2-dropdown-open .select2-choice {
  215. border-bottom-color: transparent;
  216. -webkit-box-shadow: 0 1px 0 #fff inset;
  217. box-shadow: 0 1px 0 #fff inset;
  218. border-bottom-left-radius: 0;
  219. border-bottom-right-radius: 0;
  220. background-color: #eee;
  221. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee));
  222. background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%);
  223. background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%);
  224. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
  225. background-image: linear-gradient(to top, #fff 0%, #eee 50%);
  226. }
  227. .select2-dropdown-open.select2-drop-above .select2-choice,
  228. .select2-dropdown-open.select2-drop-above .select2-choices {
  229. border: 1px solid #5897fb;
  230. border-top-color: transparent;
  231. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee));
  232. background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);
  233. background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);
  234. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
  235. background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
  236. }
  237. .select2-dropdown-open .select2-choice .select2-arrow {
  238. background: transparent;
  239. border-left: none;
  240. filter: none;
  241. }
  242. .select2-dropdown-open .select2-choice .select2-arrow b {
  243. background-position: -18px 1px;
  244. }
  245. .select2-hidden-accessible {
  246. border: 0;
  247. clip: rect(0 0 0 0);
  248. height: 1px;
  249. margin: -1px;
  250. overflow: hidden;
  251. padding: 0;
  252. position: absolute;
  253. width: 1px;
  254. }
  255. /* results */
  256. .select2-results {
  257. max-height: 200px;
  258. padding: 0 0 0 4px;
  259. margin: 4px 4px 4px 0;
  260. position: relative;
  261. overflow-x: hidden;
  262. overflow-y: auto;
  263. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  264. }
  265. .select2-results ul.select2-result-sub {
  266. margin: 0;
  267. padding-left: 0;
  268. }
  269. .select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
  270. .select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }
  271. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }
  272. .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 }
  273. .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 }
  274. .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 }
  275. .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 }
  276. .select2-results li {
  277. list-style: none;
  278. display: list-item;
  279. background-image: none;
  280. }
  281. .select2-results li.select2-result-with-children > .select2-result-label {
  282. font-weight: bold;
  283. }
  284. .select2-results .select2-result-label {
  285. padding: 3px 7px 4px;
  286. margin: 0;
  287. cursor: pointer;
  288. min-height: 1em;
  289. -webkit-touch-callout: none;
  290. -webkit-user-select: none;
  291. -moz-user-select: none;
  292. -ms-user-select: none;
  293. user-select: none;
  294. }
  295. .select2-results .select2-highlighted {
  296. background: #3875d7;
  297. color: #fff;
  298. }
  299. .select2-results li em {
  300. background: #feffde;
  301. font-style: normal;
  302. }
  303. .select2-results .select2-highlighted em {
  304. background: transparent;
  305. }
  306. .select2-results .select2-highlighted ul {
  307. background: #fff;
  308. color: #000;
  309. }
  310. .select2-results .select2-no-results,
  311. .select2-results .select2-searching,
  312. .select2-results .select2-selection-limit {
  313. background: #f4f4f4;
  314. display: list-item;
  315. padding-left: 5px;
  316. }
  317. /*
  318. disabled look for disabled choices in the results dropdown
  319. */
  320. .select2-results .select2-disabled.select2-highlighted {
  321. color: #666;
  322. background: #f4f4f4;
  323. display: list-item;
  324. cursor: default;
  325. }
  326. .select2-results .select2-disabled {
  327. background: #f4f4f4;
  328. display: list-item;
  329. cursor: default;
  330. }
  331. .select2-results .select2-selected {
  332. display: none;
  333. }
  334. .select2-more-results.select2-active {
  335. background: #f4f4f4 url('select2-spinner.gif') no-repeat 100%;
  336. }
  337. .select2-more-results {
  338. background: #f4f4f4;
  339. display: list-item;
  340. }
  341. /* disabled styles */
  342. .select2-container.select2-container-disabled .select2-choice {
  343. background-color: #f4f4f4;
  344. background-image: none;
  345. border: 1px solid #ddd;
  346. cursor: default;
  347. }
  348. .select2-container.select2-container-disabled .select2-choice .select2-arrow {
  349. background-color: #f4f4f4;
  350. background-image: none;
  351. border-left: 0;
  352. }
  353. .select2-container.select2-container-disabled .select2-choice abbr {
  354. display: none;
  355. }
  356. /* multiselect */
  357. .select2-container-multi .select2-choices {
  358. height: auto !important;
  359. height: 1%;
  360. margin: 0;
  361. padding: 0;
  362. position: relative;
  363. border: 1px solid #aaa;
  364. cursor: text;
  365. overflow: hidden;
  366. background-color: #fff;
  367. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff));
  368. background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%);
  369. background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%);
  370. background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
  371. }
  372. .select2-locked {
  373. padding: 3px 5px 3px 5px !important;
  374. }
  375. .select2-container-multi .select2-choices {
  376. min-height: 26px;
  377. }
  378. .select2-container-multi.select2-container-active .select2-choices {
  379. border: 1px solid #5897fb;
  380. outline: none;
  381. -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  382. box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  383. }
  384. .select2-container-multi .select2-choices li {
  385. float: left;
  386. list-style: none;
  387. }
  388. html[dir="rtl"] .select2-container-multi .select2-choices li
  389. {
  390. float: right;
  391. }
  392. .select2-container-multi .select2-choices .select2-search-field {
  393. margin: 0;
  394. padding: 0;
  395. white-space: nowrap;
  396. }
  397. .select2-container-multi .select2-choices .select2-search-field input {
  398. padding: 5px;
  399. margin: 1px 0;
  400. font-family: sans-serif;
  401. font-size: 100%;
  402. color: #666;
  403. outline: 0;
  404. border: 0;
  405. -webkit-box-shadow: none;
  406. box-shadow: none;
  407. background: transparent !important;
  408. }
  409. .select2-container-multi .select2-choices .select2-search-field input.select2-active {
  410. background: #fff url('select2-spinner.gif') no-repeat 100% !important;
  411. }
  412. .select2-default {
  413. color: #999 !important;
  414. }
  415. .select2-container-multi .select2-choices .select2-search-choice {
  416. padding: 3px 5px 3px 18px;
  417. margin: 3px 0 3px 5px;
  418. position: relative;
  419. line-height: 13px;
  420. color: #333;
  421. cursor: default;
  422. border: 1px solid #aaaaaa;
  423. border-radius: 3px;
  424. -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  425. box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  426. background-clip: padding-box;
  427. -webkit-touch-callout: none;
  428. -webkit-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%, #eee));
  435. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  436. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  437. background-image: linear-gradient(to top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  438. }
  439. html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
  440. {
  441. margin-left: 0;
  442. margin-right: 5px;
  443. }
  444. .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
  445. cursor: default;
  446. }
  447. .select2-container-multi .select2-choices .select2-search-choice-focus {
  448. background: #d4d4d4;
  449. }
  450. .select2-search-choice-close {
  451. display: block;
  452. width: 12px;
  453. height: 13px;
  454. position: absolute;
  455. right: 3px;
  456. top: 4px;
  457. font-size: 1px;
  458. outline: none;
  459. background: url('select2.png') right top no-repeat;
  460. }
  461. html[dir="rtl"] .select2-search-choice-close {
  462. right: auto;
  463. left: 3px;
  464. }
  465. .select2-container-multi .select2-search-choice-close {
  466. left: 3px;
  467. }
  468. .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  469. background-position: right -11px;
  470. }
  471. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  472. background-position: right -11px;
  473. }
  474. /* disabled styles */
  475. .select2-container-multi.select2-container-disabled .select2-choices {
  476. background-color: #f4f4f4;
  477. background-image: none;
  478. border: 1px solid #ddd;
  479. cursor: default;
  480. }
  481. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
  482. padding: 3px 5px 3px 5px;
  483. border: 1px solid #ddd;
  484. background-image: none;
  485. background-color: #f4f4f4;
  486. }
  487. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
  488. background: none;
  489. }
  490. /* end multiselect */
  491. .select2-result-selectable .select2-match,
  492. .select2-result-unselectable .select2-match {
  493. text-decoration: underline;
  494. }
  495. .select2-offscreen, .select2-offscreen:focus {
  496. clip: rect(0 0 0 0) !important;
  497. width: 1px !important;
  498. height: 1px !important;
  499. border: 0 !important;
  500. margin: 0 !important;
  501. padding: 0 !important;
  502. overflow: hidden !important;
  503. position: absolute !important;
  504. outline: 0 !important;
  505. left: 0px !important;
  506. top: 0px !important;
  507. }
  508. .select2-display-none {
  509. display: none;
  510. }
  511. .select2-measure-scrollbar {
  512. position: absolute;
  513. top: -10000px;
  514. left: -10000px;
  515. width: 100px;
  516. height: 100px;
  517. overflow: scroll;
  518. }
  519. /* Retina-ize icons */
  520. @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2ppx) {
  521. .select2-search input,
  522. .select2-search-choice-close,
  523. .select2-container .select2-choice abbr,
  524. .select2-container .select2-choice .select2-arrow b {
  525. background-image: url('select2x2.png') !important;
  526. background-repeat: no-repeat !important;
  527. background-size: 60px 40px !important;
  528. }
  529. .select2-search input {
  530. background-position: 100% -21px !important;
  531. }
  532. }