location-picker.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. .uni-system-choose-location {
  2. display: block;
  3. position: fixed;
  4. left: 0;
  5. top: 0;
  6. width: 100%;
  7. height: 100%;
  8. background: #f8f8f8;
  9. z-index: 999;
  10. }
  11. .uni-system-choose-location .map {
  12. position: absolute;
  13. top: 0;
  14. left: 0;
  15. width: 100%;
  16. height: 300px;
  17. }
  18. .uni-system-choose-location .map-location {
  19. position: absolute;
  20. left: 50%;
  21. bottom: 50%;
  22. width: 32px;
  23. height: 52px;
  24. margin-left: -16px;
  25. cursor: pointer;
  26. background-size: 100%;
  27. }
  28. .uni-system-choose-location .map-move {
  29. position: absolute;
  30. bottom: 50px;
  31. right: 10px;
  32. width: 40px;
  33. height: 40px;
  34. box-sizing: border-box;
  35. line-height: 40px;
  36. background-color: white;
  37. border-radius: 50%;
  38. pointer-events: auto;
  39. cursor: pointer;
  40. box-shadow: 0px 0 5px 1px rgba(0, 0, 0, 0.3);
  41. }
  42. .uni-system-choose-location .map-move>svg {
  43. display: block;
  44. width: 100%;
  45. height: 100%;
  46. box-sizing: border-box;
  47. padding: 8px;
  48. }
  49. .uni-system-choose-location .nav {
  50. position: absolute;
  51. top: 0;
  52. left: 0;
  53. width: 100%;
  54. height: 44px;
  55. background-color: transparent;
  56. background-image: linear-gradient( to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  57. }
  58. .uni-system-choose-location .nav-btn {
  59. position: absolute;
  60. box-sizing: border-box;
  61. top: 0;
  62. left: 0;
  63. width: 60px;
  64. height: 44px;
  65. padding: 6px;
  66. line-height: 32px;
  67. font-size: 26px;
  68. color: white;
  69. text-align: center;
  70. cursor: pointer;
  71. }
  72. .uni-system-choose-location .nav-btn.confirm {
  73. left: auto;
  74. right: 0;
  75. }
  76. .uni-system-choose-location .nav-btn.disable {
  77. opacity: 0.4;
  78. }
  79. .uni-system-choose-location .nav-btn>svg {
  80. display: block;
  81. width: 100%;
  82. height: 100%;
  83. /* line-height: inherit; */
  84. border-radius: 2px;
  85. box-sizing: border-box;
  86. padding: 3px;
  87. }
  88. .uni-system-choose-location .nav-btn.confirm>svg {
  89. background-color: #007aff;
  90. padding: 5px;
  91. }
  92. .uni-system-choose-location .menu {
  93. position: absolute;
  94. top: 300px;
  95. left: 0;
  96. width: 100%;
  97. bottom: 0;
  98. background-color: white;
  99. }
  100. .uni-system-choose-location .search {
  101. display: flex;
  102. flex-direction: row;
  103. height: 50px;
  104. padding: 8px;
  105. line-height: 34px;
  106. box-sizing: border-box;
  107. background-color: white;
  108. }
  109. .uni-system-choose-location .search-input {
  110. flex: 1;
  111. height: 100%;
  112. border-radius: 5px;
  113. padding: 0 5px;
  114. background: #ebebeb;
  115. }
  116. .uni-system-choose-location .search-btn {
  117. margin-left: 5px;
  118. color: #007aff;
  119. font-size: 17px;
  120. text-align: center;
  121. }
  122. .uni-system-choose-location .list {
  123. position: absolute;
  124. top: 50px;
  125. left: 0;
  126. width: 100%;
  127. bottom: 0;
  128. padding-bottom: 10px;
  129. /* background-color: #f6f6f6; */
  130. }
  131. .uni-system-choose-location .list-loading {
  132. display: flex;
  133. height: 50px;
  134. justify-content: center;
  135. align-items: center;
  136. }
  137. .uni-system-choose-location .list-item {
  138. position: relative;
  139. padding: 10px;
  140. padding-right: 40px;
  141. cursor: pointer;
  142. }
  143. .uni-system-choose-location .list-item>svg {
  144. display: none;
  145. position: absolute;
  146. top: 50%;
  147. right: 10px;
  148. width: 30px;
  149. height: 30px;
  150. margin-top: -15px;
  151. box-sizing: border-box;
  152. padding: 5px;
  153. }
  154. .uni-system-choose-location .list-item.selected>svg {
  155. display: block;
  156. }
  157. .uni-system-choose-location .list-item:not(:last-child)::after {
  158. position: absolute;
  159. content: "";
  160. height: 1px;
  161. left: 10px;
  162. bottom: 0;
  163. width: 100%;
  164. background-color: #d3d3d3;
  165. }
  166. .uni-system-choose-location .list-item-title {
  167. font-size: 14px;
  168. overflow: hidden;
  169. white-space: nowrap;
  170. text-overflow: ellipsis;
  171. }
  172. .uni-system-choose-location .list-item-detail {
  173. font-size: 12px;
  174. color: #808080;
  175. overflow: hidden;
  176. white-space: nowrap;
  177. text-overflow: ellipsis;
  178. }
  179. @media screen and (min-width: 800px) {
  180. .uni-system-choose-location .map {
  181. top: 0;
  182. height: 100%;
  183. }
  184. .uni-system-choose-location .map-move {
  185. bottom: 10px;
  186. right: 320px;
  187. }
  188. .uni-system-choose-location .menu {
  189. top: 54px;
  190. left: auto;
  191. right: 10px;
  192. width: 300px;
  193. bottom: 10px;
  194. max-height: 600px;
  195. box-shadow: 0px 0 20px 5px rgba(0, 0, 0, 0.3);
  196. }
  197. }