city-select.wxss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. view {
  28. box-sizing: border-box;
  29. }
  30. .city-serach {
  31. width: 100%;
  32. color: #4a4a4a;
  33. padding: 0 20rpx;
  34. }
  35. .city-serach-input {
  36. margin: 20rpx 0;
  37. height: 80rpx;
  38. line-height: 80rpx;
  39. font-size: 28rpx;
  40. padding: 0 10rpx;
  41. border: 1px solid #4d8cfd;
  42. border-radius: 3px;
  43. }
  44. .city-select-main {
  45. position: relative;
  46. width: 100%;
  47. height: 100%;
  48. background: #f6f5fa;
  49. }
  50. .city-select {
  51. position: relative;
  52. width: 100vw;
  53. height: 100vh;
  54. background: #f6f5fa;
  55. }
  56. .city-select .hot-title {
  57. padding-left: 46rpx;
  58. width: 100vw;
  59. font-size: 14px;
  60. line-height: 80rpx;
  61. color: #9b9b9b;
  62. }
  63. .city-select .hot-city {
  64. padding-left: 46rpx;
  65. padding-right: 40rpx;
  66. overflow: hidden;
  67. width: 100vw;
  68. }
  69. .city-select .hot-city .hot-item {
  70. float: left;
  71. padding: 0 10rpx;
  72. margin-right: 32rpx;
  73. margin-bottom: 12rpx;
  74. overflow: hidden;
  75. width: 200rpx;
  76. height: 62rpx;
  77. font-size: 14px;
  78. text-align: center;
  79. display: -webkit-box;
  80. -webkit-box-orient: vertical;
  81. -webkit-line-clamp: 1;
  82. line-height: 62rpx;
  83. color: #4a4a4a;
  84. background: #fff;
  85. border: 1px solid #ebebf0;
  86. }
  87. .city-select .hot-city .hot-item:nth-child(3n) {
  88. margin-right: 0;
  89. }
  90. .city-select .hot-city .hot-hidden {
  91. display: none;
  92. margin-right: 0;
  93. }
  94. .city-select .citys .citys-row {
  95. padding-left: 36rpx;
  96. width: 100%;
  97. font-size: 14px;
  98. background: #fff;
  99. }
  100. .city-select .citys .citys-row .citys-item-letter {
  101. margin-left: -36rpx;
  102. padding-left: 36rpx;
  103. margin-top: -1px;
  104. width: 100vw;
  105. line-height: 60rpx;
  106. color: #9b9b9b;
  107. background: #f6f5fa;
  108. border-top: none;
  109. }
  110. .city-select .citys .citys-row .citys-item {
  111. width: 100%;
  112. line-height: 100rpx;
  113. color: #4a4a4a;
  114. border-bottom: 1px solid #ebebf0;
  115. }
  116. .city-select .citys .citys-row .citys-item:last-child {
  117. border: none;
  118. }
  119. .city-select .city-indexs-view {
  120. position: absolute;
  121. right: 0;
  122. top: 0;
  123. z-index: 999;
  124. display: flex;
  125. width: 40rpx;
  126. height: 100%;
  127. text-align: center;
  128. }
  129. .city-select .city-indexs-view .city-indexs {
  130. width: 40rpx;
  131. text-align: center;
  132. vertical-align: middle;
  133. align-self: center;
  134. }
  135. .city-select .city-indexs-view .city-indexs .city-indexs-text {
  136. margin-bottom: 20rpx;
  137. width: 40rpx;
  138. font-size: 12px;
  139. color: #4d8cfd;
  140. }
  141. .city-select .city-indexs-view .city-indexs .city-indexs-text:last-child {
  142. margin-bottom: 0;
  143. }