areapicker.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. .area-picker {
  2. background-color: white;
  3. border-radius: 20rpx 20rpx 0 0;
  4. overflow: hidden;
  5. height: 80vh;
  6. display: flex;
  7. flex-direction: column;
  8. position: relative;
  9. }
  10. .area-picker__close {
  11. position: absolute;
  12. top: 0;
  13. right: 0;
  14. height: 100rpx;
  15. line-height: 100rpx;
  16. padding: 0 24rpx;
  17. font-size: 36rpx;
  18. color: #999;
  19. color: var(--color-text-caption, #999);
  20. }
  21. .area-picker__header {
  22. height: 100rpx;
  23. line-height: 100rpx;
  24. text-align: center;
  25. font-size: 32rpx;
  26. color: #333;
  27. color: var(--color-text, #333);
  28. font-weight: bold;
  29. flex: none;
  30. }
  31. .area-picker__selected-result {
  32. padding: 20rpx 24rpx 32rpx;
  33. flex: none;
  34. }
  35. .area-picker__selected-result__item {
  36. padding-left: 40rpx;
  37. position: relative;
  38. }
  39. .area-picker__selected-result__item.active
  40. .area-picker__selected-result__item__name {
  41. color: #fa550f;
  42. color: var(--color-primary, #fa550f);
  43. }
  44. .area-picker__selected-result__item.active
  45. .area-picker__selected-result__item__circle {
  46. background-color: transparent;
  47. }
  48. .area-picker__selected-result__item.active
  49. .area-picker__selected-result__item__circle::after {
  50. content: ' ';
  51. position: absolute;
  52. left: -50%;
  53. right: -50%;
  54. top: -50%;
  55. bottom: -50%;
  56. border-radius: 50%;
  57. box-sizing: border-box;
  58. border: 1px solid #fa550f;
  59. border: 1px solid var(--color-primary, #fa550f);
  60. transform: scale(0.5);
  61. }
  62. .area-picker__selected-result__item:not(:last-child) {
  63. padding-bottom: 48rpx;
  64. }
  65. .area-picker__selected-result__item__name {
  66. color: #616161;
  67. color: var(--area-picker-name-color, #616161);
  68. font-size: 28rpx;
  69. line-height: 40rpx;
  70. }
  71. .area-picker__selected-result__item__circle,
  72. .area-picker__selected-result__item__line {
  73. position: absolute;
  74. top: 20rpx;
  75. left: 8rpx;
  76. background: #fa550f;
  77. background: var(--color-primary, #fa550f);
  78. }
  79. .area-picker__selected-result__item__line {
  80. height: calc(100% - 8rpx);
  81. width: 1rpx;
  82. }
  83. .area-picker__selected-result__item__circle {
  84. width: 16rpx;
  85. height: 16rpx;
  86. border-radius: 50%;
  87. transform: translate(-50%, -50%);
  88. }
  89. .area-picker__split-line {
  90. width: 200%;
  91. height: 1px;
  92. background-color: #e5e5e5;
  93. background-color: var(--color-bg-line, #e5e5e5);
  94. transform-origin: left top;
  95. transform: scale(0.5);
  96. flex: none;
  97. }
  98. .area-picker__area-list {
  99. padding: 20rpx 24rpx calc(20rpx + env(safe-area-inset-bottom)) 24rpx;
  100. flex: auto;
  101. display: flex;
  102. flex-direction: column;
  103. }
  104. .area-picker__area-list__loading {
  105. height: 100%;
  106. width: 100%;
  107. }
  108. .area-picker__area-list__title {
  109. font-size: 24rpx;
  110. color: #999;
  111. color: var(--color-text-caption, #999);
  112. flex: none;
  113. }
  114. .area-picker__area-list__content {
  115. padding: 24rpx 0;
  116. flex: auto;
  117. height: 0;
  118. position: relative;
  119. }
  120. .area-picker__area-list__content__inner {
  121. position: absolute;
  122. height: 100%;
  123. overflow: hidden;
  124. }
  125. .area-picker__area-list__content__group {
  126. display: flex;
  127. }
  128. .area-picker__area-list__content__group__title {
  129. flex: none;
  130. width: 40rpx;
  131. font-size: 24rpx;
  132. line-height: 40rpx;
  133. color: #999;
  134. color: var(--color-text-caption, #999);
  135. }
  136. .area-picker__area-list__content__group__content {
  137. flex: auto;
  138. }
  139. .area-picker__area-list__content__group__content__item {
  140. font-size: 28rpx;
  141. line-height: 40rpx;
  142. color: #333;
  143. color: var(--color-text, #333);
  144. padding-bottom: 48rpx;
  145. }
  146. .area-picker__area-list__content__group__content__item__active {
  147. color: #fa550f;
  148. color: var(--color-primary, #fa550f);
  149. }
  150. .area-picker__area-list__content__group__content__item.active {
  151. color: #fa550f;
  152. color: var(--color-primary, #fa550f);
  153. }