select2.css 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. /*
  2. Version: 3.5.0 Timestamp: Mon Jun 16 19:29:44 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.sel-xs .select2-choice {
  27. line-height: 20px;
  28. font-size: 12px;
  29. }
  30. .select2-container .select2-choice {
  31. display: block;
  32. padding: 5px 0 5px 8px;
  33. overflow: hidden;
  34. position: relative;
  35. font-size: 13px;
  36. border: 1px solid #ccc;
  37. white-space: nowrap;
  38. line-height: 29px;
  39. color: #444;
  40. text-decoration: none;
  41. -moz-border-radius: 3px;
  42. -webkit-border-radius: 3px;
  43. border-radius: 3px;
  44. background-clip: padding-box;
  45. background-color: #fff;
  46. -webkit-touch-callout: none;
  47. -webkit-user-select: none;
  48. -moz-user-select: none;
  49. -ms-user-select: none;
  50. user-select: none;
  51. }
  52. html[dir="rtl"] .select2-container .select2-choice {
  53. padding: 0 8px 0 0;
  54. }
  55. .select2-container.select2-drop-above .select2-choice {
  56. border-bottom-color: #aaa;
  57. border-radius: 0 0 4px 4px;
  58. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff));
  59. background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%);
  60. background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%);
  61. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
  62. background-image: linear-gradient(to bottom, #eee 0%, #fff 90%);
  63. }
  64. .select2-container.select2-allowclear .select2-choice .select2-chosen {
  65. margin-right: 42px;
  66. }
  67. .select2-container .select2-choice > .select2-chosen {
  68. margin-right: 26px;
  69. display: block;
  70. overflow: hidden;
  71. white-space: nowrap;
  72. text-overflow: ellipsis;
  73. float: none;
  74. width: auto;
  75. }
  76. html[dir="rtl"] .select2-container .select2-choice > .select2-chosen {
  77. margin-left: 26px;
  78. margin-right: 0;
  79. }
  80. .select2-container .select2-choice abbr {
  81. display: none;
  82. width: 12px;
  83. height: 12px;
  84. position: absolute;
  85. right: 24px;
  86. top: 8px;
  87. font-size: 1px;
  88. text-decoration: none;
  89. border: 0;
  90. background: url('../images/select2.png') right top no-repeat;
  91. cursor: pointer;
  92. outline: 0;
  93. }
  94. .select2-container.select2-allowclear .select2-choice abbr {
  95. display: inline-block;
  96. }
  97. .select2-container .select2-choice abbr:hover {
  98. background-position: right -11px;
  99. cursor: pointer;
  100. }
  101. .select2-drop-mask {
  102. border: 0;
  103. margin: 0;
  104. padding: 0;
  105. position: fixed;
  106. left: 0;
  107. top: 0;
  108. min-height: 100%;
  109. min-width: 100%;
  110. height: auto;
  111. width: auto;
  112. opacity: 0;
  113. z-index: 9998;
  114. /* styles required for IE to work */
  115. background-color: #fff;
  116. filter: alpha(opacity=0);
  117. }
  118. .select2-drop {
  119. width: 100%;
  120. margin-top: -1px;
  121. position: absolute;
  122. z-index: 9999;
  123. top: 100%;
  124. background: #fff;
  125. color: #000;
  126. border: 1px solid #aaa;
  127. border-top: 0;
  128. border-radius: 0 0 4px 4px;
  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.select2-drop-above {
  133. margin-top: 1px;
  134. border-top: 1px solid #aaa;
  135. border-bottom: 0;
  136. border-radius: 4px 4px 0 0;
  137. -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  138. box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  139. }
  140. .select2-drop-active {
  141. border: 1px solid #999;
  142. border-top: 1px solid #999;
  143. background: #f7f7f7;
  144. }
  145. .select2-drop.select2-drop-above.select2-drop-active {
  146. border-top: 1px solid #999;
  147. }
  148. .select2-drop-auto-width {
  149. border-top: 1px solid #aaa;
  150. width: auto;
  151. }
  152. .select2-drop-auto-width .select2-search {
  153. padding-top: 4px;
  154. }
  155. .select2-container .select2-choice .select2-arrow {
  156. display: inline-block;
  157. width: 23px;
  158. height: 100%;
  159. position: absolute;
  160. right: 0;
  161. top: 2px;
  162. -moz-borde-radius: 0 3px 3px 0;
  163. -webkit-border-radius: 0 3px 3px 0;
  164. border-radius: 0 3px 3px 0;
  165. background-clip: padding-box;
  166. }
  167. .select2-container.sel-xs .select2-choice .select2-arrow {
  168. top: 0;
  169. }
  170. html[dir="rtl"] .select2-container .select2-choice .select2-arrow {
  171. left: 0;
  172. right: auto;
  173. border-left: none;
  174. border-right: 1px solid #aaa;
  175. border-radius: 4px 0 0 4px;
  176. }
  177. .select2-container .select2-choice .select2-arrow b {
  178. display: block;
  179. width: 100%;
  180. height: 100%;
  181. background: url('../images/droparrows.png') no-repeat 0 15px;
  182. opacity: 0.75;
  183. }
  184. .select2-container.sel-xs .select2-choice .select2-arrow b {
  185. background-position: 0 12px;
  186. }
  187. html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {
  188. background-position: 2px 1px;
  189. }
  190. .select2-search {
  191. display: inline-block;
  192. width: 100%;
  193. min-height: 26px;
  194. margin: 0;
  195. padding-left: 4px;
  196. padding-right: 4px;
  197. position: relative;
  198. z-index: 10000;
  199. white-space: nowrap;
  200. }
  201. .select2-search input {
  202. width: 100%;
  203. height: auto !important;
  204. min-height: 26px;
  205. padding: 4px 20px 4px 5px;
  206. margin: 0;
  207. outline: 0;
  208. font-family: sans-serif;
  209. font-size: 1em;
  210. border: 1px solid #aaa;
  211. border-radius: 0;
  212. -webkit-box-shadow: none;
  213. box-shadow: none;
  214. background: #fff url('../images/select2.png') no-repeat 100% -22px;
  215. margin-top: 5px;
  216. }
  217. html[dir="rtl"] .select2-search input {
  218. padding: 4px 5px 4px 20px;
  219. background: #fff url('../images/select2.png') no-repeat -37px -22px;
  220. background: url('../images/select2.png') no-repeat -37px -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
  221. background: url('../images/select2.png') no-repeat -37px -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
  222. background: url('../images/select2.png') no-repeat -37px -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
  223. background: url('../images/select2.png') no-repeat -37px -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
  224. }
  225. .select2-drop.select2-drop-above .select2-search input {
  226. margin-top: 4px;
  227. }
  228. .select2-search input.select2-active {
  229. background: #fff url('../images/select2-spinner.gif') no-repeat 100%;
  230. background: url('../images/select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
  231. background: url('../images/select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
  232. background: url('../images/select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
  233. background: url('../images/select2-spinner.gif') no-repeat 100%, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
  234. }
  235. .select2-container-active .select2-choice,
  236. .select2-container-active .select2-choices {
  237. border: 1px solid #999;
  238. outline: none;
  239. -moz-box-shadow: 3px 3px 0 rgba(12,12,12,0.05);
  240. -webkit-box-shadow: 3px 3px 0 rgba(12,12,12,0.05);
  241. box-shadow: 3px 3px 0 rgba(12,12,12,0.05);
  242. }
  243. .select2-dropdown-open .select2-choice {
  244. border-bottom-color: transparent;
  245. -webkit-box-shadow: 0 1px 0 #fff inset;
  246. box-shadow: 0 1px 0 #fff inset;
  247. border-bottom-left-radius: 0;
  248. border-bottom-right-radius: 0;
  249. }
  250. .select2-dropdown-open.select2-drop-above .select2-choice,
  251. .select2-dropdown-open.select2-drop-above .select2-choices {
  252. border: 1px solid #5897fb;
  253. border-top-color: transparent;
  254. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee));
  255. background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);
  256. background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);
  257. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
  258. background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
  259. }
  260. .select2-dropdown-open .select2-choice .select2-arrow {
  261. background: transparent;
  262. border-left: none;
  263. filter: none;
  264. }
  265. html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow {
  266. border-right: none;
  267. }
  268. .select2-dropdown-open .select2-choice .select2-arrow b {
  269. background-position: -48px 15px;
  270. }
  271. html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow b {
  272. background-position: -48px 15px;
  273. }
  274. .select2-hidden-accessible {
  275. border: 0;
  276. clip: rect(0 0 0 0);
  277. height: 1px;
  278. margin: -1px;
  279. overflow: hidden;
  280. padding: 0;
  281. position: absolute;
  282. width: 1px;
  283. }
  284. /* results */
  285. .select2-results {
  286. max-height: 200px;
  287. padding: 0 0 0 4px;
  288. margin: 4px 4px 4px 0;
  289. position: relative;
  290. overflow-x: hidden;
  291. overflow-y: auto;
  292. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  293. }
  294. html[dir="rtl"] .select2-results {
  295. padding: 0 4px 0 0;
  296. margin: 4px 0 4px 4px;
  297. }
  298. .select2-results ul.select2-result-sub {
  299. margin: 0;
  300. padding-left: 0;
  301. }
  302. .select2-results li {
  303. list-style: none;
  304. display: list-item;
  305. background-image: none;
  306. font-size: 13px;
  307. -moz-transition: all 0.2s ease-out 0s;
  308. -webkit-transition: all 0.2s ease-out 0s;
  309. transition: all 0.2s ease-out 0s;
  310. }
  311. .select2-results li.select2-result-with-children > .select2-result-label {
  312. font-weight: bold;
  313. }
  314. .select2-results .select2-result-label {
  315. padding: 3px 7px 4px;
  316. margin: 0;
  317. cursor: pointer;
  318. min-height: 1em;
  319. -webkit-touch-callout: none;
  320. -webkit-user-select: none;
  321. -moz-user-select: none;
  322. -ms-user-select: none;
  323. user-select: none;
  324. }
  325. .select2-results-dept-1 .select2-result-label { padding-left: 20px }
  326. .select2-results-dept-2 .select2-result-label { padding-left: 40px }
  327. .select2-results-dept-3 .select2-result-label { padding-left: 60px }
  328. .select2-results-dept-4 .select2-result-label { padding-left: 80px }
  329. .select2-results-dept-5 .select2-result-label { padding-left: 100px }
  330. .select2-results-dept-6 .select2-result-label { padding-left: 110px }
  331. .select2-results-dept-7 .select2-result-label { padding-left: 120px }
  332. .select2-results .select2-highlighted {
  333. background: #666;
  334. color: #fff;
  335. -moz-border-radius: 2px;
  336. -webkit-border-radius: 2px;
  337. border-radius: 2px;
  338. }
  339. .select2-results li em {
  340. background: #feffde;
  341. font-style: normal;
  342. }
  343. .select2-results .select2-highlighted em {
  344. background: transparent;
  345. }
  346. .select2-results .select2-highlighted ul {
  347. background: #fff;
  348. color: #000;
  349. }
  350. .select2-results .select2-no-results,
  351. .select2-results .select2-searching,
  352. .select2-results .select2-selection-limit {
  353. background: #f4f4f4;
  354. display: list-item;
  355. padding-left: 5px;
  356. }
  357. /*
  358. disabled look for disabled choices in the results dropdown
  359. */
  360. .select2-results .select2-disabled.select2-highlighted {
  361. color: #666;
  362. background: #f4f4f4;
  363. display: list-item;
  364. cursor: default;
  365. }
  366. .select2-results .select2-disabled {
  367. background: #f4f4f4;
  368. display: list-item;
  369. cursor: default;
  370. }
  371. .select2-results .select2-selected {
  372. display: none;
  373. }
  374. .select2-more-results.select2-active {
  375. background: #f4f4f4 url('../images/select2-spinner.gif') no-repeat 100%;
  376. }
  377. .select2-more-results {
  378. background: #f4f4f4;
  379. display: list-item;
  380. }
  381. /* disabled styles */
  382. .select2-container.select2-container-disabled .select2-choice {
  383. background-color: #f4f4f4;
  384. background-image: none;
  385. border: 1px solid #ddd;
  386. cursor: default;
  387. }
  388. .select2-container.select2-container-disabled .select2-choice .select2-arrow {
  389. background-color: #f4f4f4;
  390. background-image: none;
  391. border-left: 0;
  392. }
  393. .select2-container.select2-container-disabled .select2-choice abbr {
  394. display: none;
  395. }
  396. /* multiselect */
  397. .select2-container-multi .select2-choices {
  398. height: auto !important;
  399. height: 1%;
  400. margin: 0;
  401. padding: 3px 5px 3px 5px;
  402. position: relative;
  403. font-size: 13px;
  404. border: 1px solid #ccc;
  405. cursor: text;
  406. overflow: hidden;
  407. background-color: #fff;
  408. -moz-border-radius: 3px;
  409. -webkit-border-radius: 3px;
  410. border-radius: 3px;
  411. }
  412. .select2-container-multi.sel-xs .select2-choices {
  413. padding: 2px 4px;
  414. min-height: 30px;
  415. }
  416. .select2-container-multi.sel-xs .select2-choices li {
  417. padding: 4px 5px;
  418. line-height: normal;
  419. font-size: 12px;
  420. }
  421. .select2-container-multi.sel-xs .select2-choices li > div {
  422. margin-left: 15px;
  423. line-height: 10px;
  424. }
  425. .select2-container-multi.sel-xs .select2-search-choice-close {
  426. top: 2px;
  427. }
  428. .select2-container-multi.sel-xs .select2-choices .select2-search-field input {
  429. padding: 0;
  430. }
  431. html[dir="rtl"] .select2-container-multi .select2-choices {
  432. padding: 0 0 0 5px;
  433. }
  434. .select2-locked {
  435. padding: 3px 5px 3px 5px !important;
  436. }
  437. .select2-container-multi .select2-choices {
  438. min-height: 26px;
  439. }
  440. .select2-container-multi.select2-container-active .select2-choices {
  441. border: 1px solid #999;
  442. outline: none;
  443. -moz-box-shadow: 3px 3px 0 rgba(12, 12, 12, 0.05);
  444. -webkit-box-shadow: 3px 3px 0 rgba(12, 12, 12, 0.05)
  445. box-shadow: 3px 3px 0 rgba(12, 12, 12, 0.05);
  446. -moz-border-radius: 3px 3px 0 0;
  447. -webkit-border-radius: 3px 3px 0 0;
  448. border-radius: 3px 3px 0 0;
  449. }
  450. .select2-container-multi .select2-choices li {
  451. float: left;
  452. list-style: none;
  453. }
  454. .select2-container-multi .select2-choices li:first-child {
  455. margin-left: 0;
  456. }
  457. html[dir="rtl"] .select2-container-multi .select2-choices li
  458. {
  459. float: right;
  460. }
  461. .select2-container-multi .select2-choices .select2-search-field {
  462. margin: 0;
  463. padding: 0;
  464. white-space: nowrap;
  465. }
  466. .select2-container-multi .select2-choices .select2-search-field input {
  467. padding: 5px;
  468. margin: 1px 0;
  469. font-family: sans-serif;
  470. font-size: 100%;
  471. color: #666;
  472. outline: 0;
  473. border: 0;
  474. -webkit-box-shadow: none;
  475. box-shadow: none;
  476. background: transparent !important;
  477. }
  478. .select2-container-multi.sel-sm .select2-choices .select2-search-field input {
  479. padding-top: 2px;
  480. padding-bottom: 1px;
  481. }
  482. .select2-container-multi .select2-choices .select2-search-field input.select2-active {
  483. background: #fff url('../images/select2-spinner.gif') no-repeat 100% !important;
  484. }
  485. .select2-default {
  486. color: #999 !important;
  487. }
  488. .select2-container-multi .select2-choices .select2-search-choice {
  489. padding: 5px 10px 5px 24px;
  490. margin: 2px 0 2px 5px;
  491. position: relative;
  492. line-height: 16px;
  493. color: #666;
  494. cursor: default;
  495. border: 1px solid #ddd;
  496. border-radius: 2px;
  497. background-clip: padding-box;
  498. -webkit-touch-callout: none;
  499. -webkit-user-select: none;
  500. -moz-user-select: none;
  501. -ms-user-select: none;
  502. user-select: none;
  503. background-color: #e4e4e4;
  504. }
  505. .select2-container-multi.sel-sm .select2-choices .select2-search-choice {
  506. padding-top: 2px;
  507. padding-bottom: 1px;
  508. }
  509. html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
  510. {
  511. margin: 3px 5px 3px 0;
  512. padding: 3px 18px 3px 5px;
  513. }
  514. .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
  515. cursor: default;
  516. }
  517. .select2-container-multi .select2-choices .select2-search-choice-focus {
  518. background: #d4d4d4;
  519. }
  520. .select2-search-choice-close {
  521. display: block;
  522. width: 12px;
  523. height: 13px;
  524. position: absolute;
  525. right: 3px;
  526. top: 4px;
  527. font-size: 1px;
  528. outline: none;
  529. background: url('../images/select2.png') right top no-repeat;
  530. }
  531. html[dir="rtl"] .select2-search-choice-close {
  532. right: auto;
  533. left: 3px;
  534. }
  535. .select2-container-multi .select2-search-choice-close {
  536. left: 6px;
  537. top: 7px;
  538. }
  539. .select2-container-multi.sel-sm .select2-search-choice-close {
  540. top: 3px;
  541. }
  542. html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
  543. left: auto;
  544. right: 2px;
  545. }
  546. .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  547. background-position: right -11px;
  548. }
  549. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  550. background-position: right -11px;
  551. }
  552. /* disabled styles */
  553. .select2-container-multi.select2-container-disabled .select2-choices {
  554. background-color: #f4f4f4;
  555. background-image: none;
  556. border: 1px solid #ddd;
  557. cursor: default;
  558. }
  559. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
  560. padding: 3px 5px 3px 5px;
  561. border: 1px solid #ddd;
  562. background-image: none;
  563. background-color: #f4f4f4;
  564. }
  565. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice > div {
  566. margin-left: 0;
  567. }
  568. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
  569. background: none;
  570. }
  571. /* end multiselect */
  572. .select2-result-selectable .select2-match,
  573. .select2-result-unselectable .select2-match {
  574. text-decoration: underline;
  575. }
  576. .select2-offscreen, .select2-offscreen:focus {
  577. clip: rect(0 0 0 0) !important;
  578. width: 1px !important;
  579. height: 1px !important;
  580. border: 0 !important;
  581. margin: 0 !important;
  582. padding: 0 !important;
  583. overflow: hidden !important;
  584. position: absolute !important;
  585. outline: 0 !important;
  586. left: 0px !important;
  587. top: 0px !important;
  588. }
  589. .select2-display-none {
  590. display: none;
  591. }
  592. .select2-measure-scrollbar {
  593. position: absolute;
  594. top: -10000px;
  595. left: -10000px;
  596. width: 100px;
  597. height: 100px;
  598. overflow: scroll;
  599. }
  600. /* Retina-ize icons */
  601. @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx) {
  602. .select2-search input,
  603. .select2-search-choice-close,
  604. .select2-container .select2-choice abbr,
  605. .select2-container .select2-choice .select2-arrow b {
  606. background-image: url('../images/select2x2.png') !important;
  607. background-repeat: no-repeat !important;
  608. background-size: 60px 40px !important;
  609. }
  610. .select2-search input {
  611. background-position: 100% -21px !important;
  612. }
  613. }