select2.css 17 KB

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