city-picker.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /*input{
  2. min-width: 360px;
  3. }*/
  4. .city-picker-input {
  5. opacity: 0 !important;
  6. top: -9999px;
  7. left: -9999px;
  8. position: absolute;
  9. }
  10. .city-picker-span {
  11. position: relative;
  12. display: inline-block;
  13. outline: 0;
  14. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  15. /* border: 1px solid #ccc;*/
  16. border: 1px solid #e6e6e6;
  17. background-color: #fff;
  18. color: #ccc;
  19. width: 100%;
  20. cursor: pointer;
  21. border-radius: 0 2px 2px 0;
  22. }
  23. .city-picker-span > .placeholder {
  24. color: #aaa;
  25. padding-left: 10px;
  26. }
  27. .city-picker-span > .arrow {
  28. position: absolute;
  29. top: 50%;
  30. right: 8px;
  31. width: 10px;
  32. margin-top: -3px;
  33. height: 5px;
  34. background: url(drop-arrow.png) -10px -25px no-repeat;
  35. }
  36. /*.city-picker-span.focus,
  37. .city-picker-span.open {
  38. border-bottom-color: #46A4FF;
  39. }*/
  40. .city-picker-span.open > .arrow {
  41. background-position: -10px -10px;
  42. }
  43. .city-picker-span > .title > span {
  44. color: #333;
  45. padding: 5px;
  46. font-size: 14px;
  47. border-radius: 3px;
  48. }
  49. .city-picker-span > .title > span:hover {
  50. background-color: #f1f8ff;
  51. }
  52. .city-picker-dropdown {
  53. position: absolute;
  54. width: 315px;
  55. left: -9999px;
  56. top: -9999px;
  57. outline: 0;
  58. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  59. z-index: 999999;
  60. display: none;
  61. min-width: 330px;
  62. margin-bottom: 20px;
  63. }
  64. .city-select-wrap {
  65. box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
  66. border: 1px solid #ddd;
  67. }
  68. .city-select-tab {
  69. border-bottom: 1px solid #ccc;
  70. background: #f0f0f0;
  71. font-size: 13px;
  72. line-height: 22px;
  73. }
  74. .city-select-tab > a {
  75. display: inline-block;
  76. padding: 8px 22px;
  77. border-left: 1px solid #ccc;
  78. border-bottom: 1px solid transparent;
  79. color: #4D4D4D;
  80. text-align: center;
  81. outline: 0;
  82. text-decoration: none;
  83. cursor: pointer;
  84. font-size: 14px;
  85. margin-bottom: -1px;
  86. }
  87. .city-select-tab > a.active {
  88. background: #fff;
  89. border-bottom: 1px solid #fff;
  90. /*color: #46A4FF;*/
  91. color: #f58664;
  92. }
  93. .city-select-tab > a:first-child {
  94. border-left: none;
  95. }
  96. .city-select-tab > a:last-child.active {
  97. border-right: 1px solid #ccc;
  98. }
  99. .city-select-content {
  100. width: 100%;
  101. min-height: 10px;
  102. background-color: #fff;
  103. padding: 10px 0px;
  104. }
  105. .city-select {
  106. font-size: 13px;
  107. }
  108. .city-select dl {
  109. line-height: 2;
  110. clear: both;
  111. padding: 3px 0;
  112. margin: 0;
  113. }
  114. .city-select dt {
  115. position: absolute;
  116. width: 2.5em;
  117. font-weight: 500;
  118. text-align: right;
  119. line-height: 2;
  120. }
  121. .city-select dd {
  122. margin-left: 0;
  123. line-height: 2;
  124. }
  125. .city-select.province dd {
  126. margin-left: 3em;
  127. }
  128. .city-select a {
  129. display: inline-block;
  130. padding: 0 10px;
  131. outline: 0;
  132. text-decoration: none;
  133. white-space: nowrap;
  134. margin-right: 2px;
  135. text-decoration: none;
  136. color: #333;
  137. cursor: pointer;
  138. }
  139. .city-select a:hover,
  140. .city-select a:focus {
  141. background-color: #f1f8ff;
  142. border-radius: 2px;
  143. color: #f58664;
  144. }
  145. .city-select a.active {
  146. background-color: #f58664;
  147. color: #fff;
  148. border-radius: 2px;
  149. }
  150. .icon_ca {
  151. /*background: url(/content/images/icon_ca.png) no-repeat center;*/
  152. width: 15px;
  153. height: 15px;
  154. position: absolute;
  155. right: 10px;
  156. top: 50%;
  157. margin-top: -7px;
  158. z-index: 99;
  159. cursor: pointer;
  160. }