select2.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  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, #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(to 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. 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 top, #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 top, #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. /* results */
  246. .select2-results {
  247. max-height: 200px;
  248. padding: 0 0 0 4px;
  249. margin: 4px 4px 4px 0;
  250. position: relative;
  251. overflow-x: hidden;
  252. overflow-y: auto;
  253. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  254. }
  255. .select2-results ul.select2-result-sub {
  256. margin: 0;
  257. padding-left: 0;
  258. }
  259. .select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
  260. .select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }
  261. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }
  262. .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 }
  263. .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 }
  264. .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 }
  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 ul.select2-result-sub > li .select2-result-label { padding-left: 120px }
  266. .select2-results li {
  267. list-style: none;
  268. display: list-item;
  269. background-image: none;
  270. }
  271. .select2-results li.select2-result-with-children > .select2-result-label {
  272. font-weight: bold;
  273. }
  274. .select2-results .select2-result-label {
  275. padding: 3px 7px 4px;
  276. margin: 0;
  277. cursor: pointer;
  278. min-height: 1em;
  279. -webkit-touch-callout: none;
  280. -webkit-user-select: none;
  281. -moz-user-select: none;
  282. -ms-user-select: none;
  283. user-select: none;
  284. }
  285. .select2-results .select2-highlighted {
  286. background: #3875d7;
  287. color: #fff;
  288. }
  289. .select2-results li em {
  290. background: #feffde;
  291. font-style: normal;
  292. }
  293. .select2-results .select2-highlighted em {
  294. background: transparent;
  295. }
  296. .select2-results .select2-highlighted ul {
  297. background: #fff;
  298. color: #000;
  299. }
  300. .select2-results .select2-no-results,
  301. .select2-results .select2-searching,
  302. .select2-results .select2-selection-limit {
  303. background: #f4f4f4;
  304. display: list-item;
  305. padding-left: 5px;
  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(to 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. html[dir="rtl"] .select2-container-multi .select2-choices li
  379. {
  380. float: right;
  381. }
  382. .select2-container-multi .select2-choices .select2-search-field {
  383. margin: 0;
  384. padding: 0;
  385. white-space: nowrap;
  386. }
  387. .select2-container-multi .select2-choices .select2-search-field input {
  388. padding: 5px;
  389. margin: 1px 0;
  390. font-family: sans-serif;
  391. font-size: 100%;
  392. color: #666;
  393. outline: 0;
  394. border: 0;
  395. -webkit-box-shadow: none;
  396. box-shadow: none;
  397. background: transparent !important;
  398. }
  399. .select2-container-multi .select2-choices .select2-search-field input.select2-active {
  400. background: #fff url('select2-spinner.gif') no-repeat 100% !important;
  401. }
  402. .select2-default {
  403. color: #999 !important;
  404. }
  405. .select2-container-multi .select2-choices .select2-search-choice {
  406. padding: 3px 5px 3px 18px;
  407. margin: 3px 0 3px 5px;
  408. position: relative;
  409. line-height: 13px;
  410. color: #333;
  411. cursor: default;
  412. border: 1px solid #aaaaaa;
  413. border-radius: 3px;
  414. -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  415. box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  416. background-clip: padding-box;
  417. -webkit-touch-callout: none;
  418. -webkit-user-select: none;
  419. -moz-user-select: none;
  420. -ms-user-select: none;
  421. user-select: none;
  422. background-color: #e4e4e4;
  423. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);
  424. 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));
  425. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  426. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  427. background-image: linear-gradient(to top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  428. }
  429. html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
  430. {
  431. margin-left: 0;
  432. margin-right: 5px;
  433. }
  434. .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
  435. cursor: default;
  436. }
  437. .select2-container-multi .select2-choices .select2-search-choice-focus {
  438. background: #d4d4d4;
  439. }
  440. .select2-search-choice-close {
  441. display: block;
  442. width: 12px;
  443. height: 13px;
  444. position: absolute;
  445. right: 3px;
  446. top: 4px;
  447. font-size: 1px;
  448. outline: none;
  449. background: url('select2.png') right top no-repeat;
  450. }
  451. html[dir="rtl"] .select2-search-choice-close {
  452. right: auto;
  453. left: 3px;
  454. }
  455. .select2-container-multi .select2-search-choice-close {
  456. left: 3px;
  457. }
  458. .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  459. background-position: right -11px;
  460. }
  461. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  462. background-position: right -11px;
  463. }
  464. /* disabled styles */
  465. .select2-container-multi.select2-container-disabled .select2-choices {
  466. background-color: #f4f4f4;
  467. background-image: none;
  468. border: 1px solid #ddd;
  469. cursor: default;
  470. }
  471. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
  472. padding: 3px 5px 3px 5px;
  473. border: 1px solid #ddd;
  474. background-image: none;
  475. background-color: #f4f4f4;
  476. }
  477. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
  478. background: none;
  479. }
  480. /* end multiselect */
  481. .select2-result-selectable .select2-match,
  482. .select2-result-unselectable .select2-match {
  483. text-decoration: underline;
  484. }
  485. .select2-offscreen, .select2-offscreen:focus {
  486. clip: rect(0 0 0 0) !important;
  487. width: 1px !important;
  488. height: 1px !important;
  489. border: 0 !important;
  490. margin: 0 !important;
  491. padding: 0 !important;
  492. overflow: hidden !important;
  493. position: absolute !important;
  494. outline: 0 !important;
  495. left: 0px !important;
  496. top: 0px !important;
  497. }
  498. .select2-display-none {
  499. display: none;
  500. }
  501. .select2-measure-scrollbar {
  502. position: absolute;
  503. top: -10000px;
  504. left: -10000px;
  505. width: 100px;
  506. height: 100px;
  507. overflow: scroll;
  508. }
  509. /* Retina-ize icons */
  510. @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
  511. .select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice .select2-arrow b {
  512. background-image: url('select2x2.png') !important;
  513. background-repeat: no-repeat !important;
  514. background-size: 60px 40px !important;
  515. }
  516. .select2-search input {
  517. background-position: 100% -21px !important;
  518. }
  519. }