index.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. .nut-theme-dark {
  2. .nut-address {
  3. &__header {
  4. color: $dark-color;
  5. &__title {
  6. color: $dark-color;
  7. }
  8. }
  9. .nut-address__custom {
  10. .nut-address__region {
  11. color: $dark-color;
  12. }
  13. .nut-address__detail {
  14. .nut-address__detail-list {
  15. .nut-address__detail-item {
  16. color: $dark-color;
  17. }
  18. }
  19. }
  20. }
  21. .nut-address__exist {
  22. .nut-address__exist-group {
  23. .nut-address__exist-group-list {
  24. .nut-address__exist-group-item {
  25. color: $dark-color;
  26. }
  27. }
  28. }
  29. .nut-address__exist-choose {
  30. border-top: 1px solid $dark-background;
  31. }
  32. }
  33. &-custom-buttom {
  34. border-top: 1px solid $dark-background;
  35. }
  36. }
  37. }
  38. .nut-address {
  39. display: block;
  40. &__header {
  41. display: flex;
  42. justify-content: space-between;
  43. align-items: center;
  44. height: 68px;
  45. padding: 0 20px;
  46. text-align: center;
  47. font-weight: bold;
  48. color: #333;
  49. &__title {
  50. display: block;
  51. color: $address-header-title-color;
  52. font-size: $address-header-title-font-size;
  53. }
  54. }
  55. // 请选择
  56. .nut-address__custom {
  57. display: block;
  58. .nut-address__region {
  59. position: relative;
  60. margin-top: 32px;
  61. padding: 0 20px;
  62. display: flex;
  63. font-size: $address-region-tab-font-size;
  64. color: $address-region-tab-color;
  65. .nut-address__region-item {
  66. position: relative;
  67. min-width: 2px;
  68. margin-right: 30px;
  69. display: block;
  70. &.active {
  71. font-weight: $address-region-tab-active-item-font-weight;
  72. }
  73. view {
  74. display: block;
  75. max-width: 100px;
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. white-space: nowrap;
  79. }
  80. span {
  81. display: inline-block;
  82. max-width: 100px;
  83. white-space: nowrap;
  84. overflow: hidden;
  85. text-overflow: ellipsis;
  86. }
  87. .nut-address__region-line--mini {
  88. position: absolute;
  89. bottom: -10px;
  90. left: 0px;
  91. display: inline-block;
  92. margin-top: 5px;
  93. width: 0;
  94. height: 3px;
  95. background: $address-region-tab-line;
  96. transition: 0.2s all linear;
  97. &.active {
  98. width: 26px;
  99. }
  100. }
  101. }
  102. .nut-address__region-line {
  103. position: absolute;
  104. bottom: -10px;
  105. left: 20px;
  106. display: inline-block;
  107. margin-top: 5px;
  108. width: 26px;
  109. height: 3px;
  110. background: $address-region-tab-line;
  111. transition: 0.2s all linear;
  112. border-radius: $address-region-tab-line-border-radius;
  113. opacity: $address-region-tab-line-opacity;
  114. }
  115. }
  116. .nut-address__detail {
  117. display: block;
  118. margin: 20px 20px 0;
  119. .nut-address__detail-list {
  120. padding-top: 15px;
  121. height: 270px;
  122. overflow-y: auto;
  123. box-sizing: border-box;
  124. padding: 0;
  125. .nut-address__detail-item {
  126. display: flex;
  127. align-items: center;
  128. font-size: $address-region-item-font-size;
  129. color: $address-region-item-color;
  130. &.active {
  131. font-weight: bold;
  132. }
  133. > div {
  134. display: flex;
  135. align-items: center;
  136. margin: 10px 0;
  137. }
  138. }
  139. }
  140. }
  141. .nut-address__elevator-group {
  142. display: flex;
  143. margin-top: 20px;
  144. }
  145. }
  146. // 配送至
  147. .nut-address__exist {
  148. display: block;
  149. margin-top: 15px;
  150. .nut-address__exist-group {
  151. padding: 15px 20px 0;
  152. height: 279px;
  153. overflow-y: scroll;
  154. .nut-address__exist-group-list {
  155. box-sizing: border-box;
  156. padding: 0;
  157. .nut-address__exist-group-item {
  158. display: flex;
  159. align-items: center;
  160. margin-bottom: 20px;
  161. font-size: $font-size-1;
  162. line-height: 14px;
  163. color: #333;
  164. &.active {
  165. font-weight: bold;
  166. }
  167. .exist-item-icon {
  168. margin-right: $address-item-margin-right;
  169. color: $address-icon-color !important;
  170. }
  171. span {
  172. display: inline-block;
  173. flex: 1;
  174. }
  175. }
  176. }
  177. }
  178. .nut-address__exist-choose {
  179. width: 100%;
  180. height: 54px;
  181. padding: 6px 0px 0;
  182. border-top: 1px solid #f2f2f2;
  183. .nut-address__exist-choose-btn {
  184. width: 90%;
  185. height: 42px;
  186. line-height: 42px;
  187. margin: auto;
  188. text-align: center;
  189. background: $button-primary-background-color;
  190. border-radius: 21px;
  191. font-size: 15px;
  192. color: $white;
  193. }
  194. }
  195. }
  196. &-select-icon {
  197. margin-right: $address-item-margin-right;
  198. color: $address-icon-color !important;
  199. }
  200. }