select2_metro.css 15 KB

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