select2.css 13 KB

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