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