select2.css 13 KB

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