select2.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. /*
  2. Version: 3.5.1 Timestamp: Tue Jul 22 18:58:56 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. html[dir="rtl"] .select2-container .select2-choice {
  52. padding: 0 8px 0 0;
  53. }
  54. .select2-container.select2-drop-above .select2-choice {
  55. border-bottom-color: #aaa;
  56. border-radius: 0 0 4px 4px;
  57. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff));
  58. background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%);
  59. background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%);
  60. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
  61. background-image: linear-gradient(to bottom, #eee 0%, #fff 90%);
  62. }
  63. .select2-container.select2-allowclear .select2-choice .select2-chosen {
  64. margin-right: 42px;
  65. }
  66. .select2-container .select2-choice > .select2-chosen {
  67. margin-right: 26px;
  68. display: block;
  69. overflow: hidden;
  70. white-space: nowrap;
  71. text-overflow: ellipsis;
  72. float: none;
  73. width: auto;
  74. }
  75. html[dir="rtl"] .select2-container .select2-choice > .select2-chosen {
  76. margin-left: 26px;
  77. margin-right: 0;
  78. margin-top: 3px;
  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('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 #5897fb;
  142. border-top: none;
  143. }
  144. .select2-drop.select2-drop-above.select2-drop-active {
  145. border-top: 1px solid #5897fb;
  146. }
  147. .select2-drop-auto-width {
  148. border-top: 1px solid #aaa;
  149. width: auto;
  150. }
  151. .select2-drop-auto-width .select2-search {
  152. padding-top: 4px;
  153. }
  154. .select2-container .select2-choice .select2-arrow {
  155. display: inline-block;
  156. width: 18px;
  157. height: 100%;
  158. position: absolute;
  159. right: 0;
  160. top: 0;
  161. border-left: 1px solid #aaa;
  162. border-radius: 0 4px 4px 0;
  163. background-clip: padding-box;
  164. background: #ccc;
  165. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
  166. background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
  167. background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
  168. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
  169. background-image: linear-gradient(to top, #ccc 0%, #eee 60%);
  170. }
  171. html[dir="rtl"] .select2-container .select2-choice .select2-arrow {
  172. left: 0;
  173. right: auto;
  174. border-left: none;
  175. border-right: 1px solid #e5e5e5;
  176. border-radius: 4px 0 0 4px;
  177. padding-right: 2px;
  178. }
  179. .select2-container .select2-choice .select2-arrow b {
  180. display: block;
  181. width: 100%;
  182. height: 100%;
  183. background: url('select2.png') no-repeat 0 1px;
  184. }
  185. html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {
  186. background-position: 0px 1px;
  187. }
  188. .select2-search {
  189. display: inline-block;
  190. width: 100%;
  191. min-height: 26px;
  192. margin: 0;
  193. padding-left: 4px;
  194. padding-right: 4px;
  195. position: relative;
  196. z-index: 10000;
  197. white-space: nowrap;
  198. }
  199. .select2-search input {
  200. width: 100%;
  201. height: auto !important;
  202. min-height: 26px;
  203. padding: 4px 20px 4px 5px;
  204. margin: 0;
  205. outline: 0;
  206. font-family: sans-serif;
  207. font-size: 1em;
  208. border: 1px solid #aaa;
  209. border-radius: 0;
  210. -webkit-box-shadow: none;
  211. box-shadow: none;
  212. background: #fff url('select2.png') no-repeat 100% -22px;
  213. background: url('select2.png') no-repeat 100% -22px;
  214. background: url('select2.png') no-repeat 100% -22px;
  215. background: url('select2.png') no-repeat 100% -22px;
  216. background: url('select2.png') no-repeat 100% -22px;
  217. }
  218. html[dir="rtl"] .select2-search input {
  219. padding: 4px 5px 4px 20px;
  220. background: #fff url('select2.png') no-repeat -37px -22px;
  221. background: url('select2.png') no-repeat -37px -22px;
  222. background: url('select2.png') no-repeat -37px -22px;
  223. background: url('select2.png') no-repeat -37px -22px;
  224. background: url('select2.png') no-repeat -37px -22px;
  225. }
  226. .select2-drop.select2-drop-above .select2-search input {
  227. margin-top: 4px;
  228. }
  229. .select2-search input.select2-active {
  230. background: #fff url('select2-spinner.gif') no-repeat 100%;
  231. background: url('select2-spinner.gif') no-repeat 100%;
  232. background: url('select2-spinner.gif') no-repeat 100%;
  233. background: url('select2-spinner.gif') no-repeat 100%;
  234. background: url('select2-spinner.gif') no-repeat 100%;
  235. }
  236. .select2-container-active .select2-choice,
  237. .select2-container-active .select2-choices {
  238. border: 1px solid #5897fb;
  239. outline: none;
  240. -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  241. box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  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. background-color: #eee;
  250. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee));
  251. background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%);
  252. background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%);
  253. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
  254. background-image: linear-gradient(to top, #fff 0%, #eee 50%);
  255. }
  256. .select2-dropdown-open.select2-drop-above .select2-choice,
  257. .select2-dropdown-open.select2-drop-above .select2-choices {
  258. border: 1px solid #5897fb;
  259. border-top-color: transparent;
  260. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee));
  261. background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);
  262. background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);
  263. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
  264. background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
  265. }
  266. .select2-dropdown-open .select2-choice .select2-arrow {
  267. background: transparent;
  268. border-left: none;
  269. filter: none;
  270. }
  271. html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow {
  272. border-right: none;
  273. }
  274. .select2-dropdown-open .select2-choice .select2-arrow b {
  275. background-position: -18px 1px;
  276. }
  277. html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow b {
  278. background-position: -16px 1px;
  279. }
  280. .select2-hidden-accessible {
  281. border: 0;
  282. clip: rect(0 0 0 0);
  283. height: 1px;
  284. margin: -1px;
  285. overflow: hidden;
  286. padding: 0;
  287. position: absolute;
  288. width: 1px;
  289. }
  290. /* results */
  291. .select2-results {
  292. max-height: 200px;
  293. padding: 0 0 0 4px;
  294. margin: 4px 4px 4px 0;
  295. position: relative;
  296. overflow-x: hidden;
  297. overflow-y: auto;
  298. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  299. }
  300. html[dir="rtl"] .select2-results {
  301. padding: 0 4px 0 0;
  302. margin: 4px 0 4px 4px;
  303. }
  304. .select2-results ul.select2-result-sub {
  305. margin: 0;
  306. padding-left: 0;
  307. }
  308. .select2-results li {
  309. list-style: none;
  310. display: list-item;
  311. background-image: none;
  312. }
  313. .select2-results li.select2-result-with-children > .select2-result-label {
  314. font-weight: bold;
  315. }
  316. .select2-results .select2-result-label {
  317. padding: 3px 7px 4px;
  318. margin: 0;
  319. cursor: pointer;
  320. min-height: 1em;
  321. -webkit-touch-callout: none;
  322. -webkit-user-select: none;
  323. -moz-user-select: none;
  324. -ms-user-select: none;
  325. user-select: none;
  326. }
  327. .select2-results-dept-1 .select2-result-label { padding-left: 20px }
  328. .select2-results-dept-2 .select2-result-label { padding-left: 40px }
  329. .select2-results-dept-3 .select2-result-label { padding-left: 60px }
  330. .select2-results-dept-4 .select2-result-label { padding-left: 80px }
  331. .select2-results-dept-5 .select2-result-label { padding-left: 100px }
  332. .select2-results-dept-6 .select2-result-label { padding-left: 110px }
  333. .select2-results-dept-7 .select2-result-label { padding-left: 120px }
  334. .select2-results .select2-highlighted {
  335. background: #3875d7;
  336. color: #fff;
  337. }
  338. .select2-results li em {
  339. background: #feffde;
  340. font-style: normal;
  341. }
  342. .select2-results .select2-highlighted em {
  343. background: transparent;
  344. }
  345. .select2-results .select2-highlighted ul {
  346. background: #fff;
  347. color: #000;
  348. }
  349. .select2-results .select2-no-results,
  350. .select2-results .select2-searching,
  351. .select2-results .select2-ajax-error,
  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('select2-spinner.gif') no-repeat 100%;
  376. }
  377. .select2-results .select2-ajax-error {
  378. background: rgba(255, 50, 50, .2);
  379. }
  380. .select2-more-results {
  381. background: #f4f4f4;
  382. display: list-item;
  383. }
  384. /* disabled styles */
  385. .select2-container.select2-container-disabled .select2-choice {
  386. background-color: #f4f4f4;
  387. background-image: none;
  388. border: 1px solid #ddd;
  389. cursor: default;
  390. }
  391. .select2-container.select2-container-disabled .select2-choice .select2-arrow {
  392. background-color: #f4f4f4;
  393. background-image: none;
  394. border-left: 0;
  395. }
  396. .select2-container.select2-container-disabled .select2-choice abbr {
  397. display: none;
  398. }
  399. /* multiselect */
  400. .select2-container-multi .select2-choices {
  401. height: auto !important;
  402. height: 1%;
  403. margin: 0;
  404. padding: 0 5px 0 0;
  405. position: relative;
  406. border: 1px solid #aaa;
  407. cursor: text;
  408. overflow: hidden;
  409. background-color: #fff;
  410. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff));
  411. background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%);
  412. background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%);
  413. background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
  414. }
  415. html[dir="rtl"] .select2-container-multi .select2-choices {
  416. padding: 0 0 0 5px;
  417. }
  418. .select2-locked {
  419. padding: 3px 5px 3px 5px !important;
  420. }
  421. .select2-container-multi .select2-choices {
  422. min-height: 26px;
  423. }
  424. .select2-container-multi.select2-container-active .select2-choices {
  425. border: 1px solid #5897fb;
  426. outline: none;
  427. -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  428. box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  429. }
  430. .select2-container-multi .select2-choices li {
  431. float: left;
  432. list-style: none;
  433. }
  434. html[dir="rtl"] .select2-container-multi .select2-choices li
  435. {
  436. float: right;
  437. }
  438. .select2-container-multi .select2-choices .select2-search-field {
  439. margin: 0;
  440. padding: 0;
  441. white-space: nowrap;
  442. }
  443. .select2-container-multi .select2-choices .select2-search-field input {
  444. padding: 5px;
  445. margin: 1px 0;
  446. font-family: sans-serif;
  447. font-size: 100%;
  448. color: #666;
  449. outline: 0;
  450. border: 0;
  451. -webkit-box-shadow: none;
  452. box-shadow: none;
  453. background: transparent !important;
  454. }
  455. .select2-container-multi .select2-choices .select2-search-field input.select2-active {
  456. background: #fff url('select2-spinner.gif') no-repeat 100% !important;
  457. }
  458. .select2-default {
  459. color: #999 !important;
  460. }
  461. .select2-container-multi .select2-choices .select2-search-choice {
  462. padding: 3px 5px 3px 18px;
  463. margin: 3px 0 3px 5px;
  464. position: relative;
  465. line-height: 13px;
  466. color: #333;
  467. cursor: default;
  468. border: 1px solid #aaaaaa;
  469. border-radius: 3px;
  470. -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  471. box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  472. background-clip: padding-box;
  473. -webkit-touch-callout: none;
  474. -webkit-user-select: none;
  475. -moz-user-select: none;
  476. -ms-user-select: none;
  477. user-select: none;
  478. background-color: #e4e4e4;
  479. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);
  480. 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));
  481. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  482. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  483. background-image: linear-gradient(to top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
  484. }
  485. html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
  486. {
  487. margin: 6px 5px 0px 0;
  488. padding: 3px 18px 3px 5px;
  489. }
  490. .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
  491. cursor: default;
  492. }
  493. .select2-container-multi .select2-choices .select2-search-choice-focus {
  494. background: #d4d4d4;
  495. }
  496. .select2-search-choice-close {
  497. display: block;
  498. width: 12px;
  499. height: 13px;
  500. position: absolute;
  501. right: 3px;
  502. top: 4px;
  503. font-size: 1px;
  504. outline: none;
  505. background: url('select2.png') right top no-repeat;
  506. }
  507. html[dir="rtl"] .select2-search-choice-close {
  508. right: auto;
  509. left: 3px;
  510. }
  511. .select2-container-multi .select2-search-choice-close {
  512. left: 3px;
  513. }
  514. html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
  515. left: auto;
  516. right: 2px;
  517. }
  518. .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  519. background-position: right -11px;
  520. }
  521. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  522. background-position: right -11px;
  523. }
  524. /* disabled styles */
  525. .select2-container-multi.select2-container-disabled .select2-choices {
  526. background-color: #f4f4f4;
  527. background-image: none;
  528. border: 1px solid #ddd;
  529. cursor: default;
  530. }
  531. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
  532. padding: 3px 5px 3px 5px;
  533. border: 1px solid #ddd;
  534. background-image: none;
  535. background-color: #f4f4f4;
  536. }
  537. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
  538. background: none;
  539. }
  540. /* end multiselect */
  541. .select2-result-selectable .select2-match,
  542. .select2-result-unselectable .select2-match {
  543. text-decoration: underline;
  544. }
  545. .select2-offscreen, .select2-offscreen:focus {
  546. clip: rect(0 0 0 0) !important;
  547. width: 1px !important;
  548. height: 1px !important;
  549. border: 0 !important;
  550. margin: 0 !important;
  551. padding: 0 !important;
  552. overflow: hidden !important;
  553. position: absolute !important;
  554. outline: 0 !important;
  555. left: 0px !important;
  556. top: 0px !important;
  557. }
  558. .select2-display-none {
  559. display: none;
  560. }
  561. .select2-measure-scrollbar {
  562. position: absolute;
  563. top: -10000px;
  564. left: -10000px;
  565. width: 100px;
  566. height: 100px;
  567. overflow: scroll;
  568. }
  569. /* Retina-ize icons */
  570. @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx) {
  571. .select2-search input,
  572. .select2-search-choice-close,
  573. .select2-container .select2-choice abbr,
  574. .select2-container .select2-choice .select2-arrow b {
  575. background-image: url('select2x2.png') !important;
  576. background-repeat: no-repeat !important;
  577. background-size: 60px 40px !important;
  578. }
  579. .select2-search input {
  580. background-position: 100% -21px !important;
  581. }
  582. }