global.less 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. .g-tabs {
  2. --van-tabs-nav-background: transparent;
  3. --van-border-width: 0;
  4. --van-tabs-default-color: var(--color-info);
  5. .van-tab {
  6. &--active {
  7. --van-tab-font-size: 16px;
  8. --van-tabs-default-color: transparent;
  9. color: var(--color-primary);
  10. }
  11. &--shrink {
  12. padding: 0;
  13. padding-right: 24px;
  14. }
  15. }
  16. }
  17. .g-layout {
  18. &.flex {
  19. display: flex;
  20. }
  21. &-block {
  22. padding-top: 12px;
  23. padding-bottom: 12px;
  24. &+& {
  25. padding-top: 0;
  26. }
  27. &--inset {
  28. padding-left: var(--van-padding-md);
  29. padding-right: var(--van-padding-md);
  30. }
  31. }
  32. }
  33. .g-price {
  34. &-normal {
  35. color: var(--color-default);
  36. }
  37. &-up {
  38. color: var(--color-up);
  39. }
  40. &-down {
  41. color: var(--color-down);
  42. }
  43. }
  44. .g-form {
  45. &__container {
  46. display: flex;
  47. flex-direction: column;
  48. /* 相邻兄弟元素 */
  49. .van-cell-group--inset+.van-cell-group--inset {
  50. margin-top: 12px;
  51. }
  52. .van-field {
  53. &__right-icon {
  54. align-self: normal;
  55. }
  56. &__control {
  57. &--custom {
  58. gap: 8px;
  59. }
  60. }
  61. .van-stepper {
  62. display: flex;
  63. align-items: center;
  64. width: 100%;
  65. &__input {
  66. flex: 1;
  67. }
  68. }
  69. }
  70. }
  71. &__footer {
  72. display: flex;
  73. align-items: center;
  74. gap: 10px;
  75. padding: var(--van-padding-md);
  76. }
  77. }
  78. .g-flex {
  79. display: flex;
  80. align-items: center;
  81. gap: 10px;
  82. }
  83. .g-detail-table {
  84. table {
  85. width: 100%;
  86. background-color: var(--block-background);
  87. border-radius: 6px;
  88. padding: 12px;
  89. &:not(:first-child) {
  90. margin-top: 12px;
  91. }
  92. td,
  93. th {
  94. line-height: 1.5;
  95. text-align: left;
  96. padding: 4px;
  97. &:last-child:not(:first-child) {
  98. text-align: right;
  99. }
  100. >span {
  101. display: block;
  102. }
  103. }
  104. tfoot {
  105. td {
  106. text-align: right;
  107. button {
  108. min-width: 60px;
  109. &+button {
  110. margin-left: 10px;
  111. }
  112. }
  113. }
  114. }
  115. .text-small {
  116. font-size: 12px;
  117. font-weight: normal;
  118. color: var(--color-info);
  119. }
  120. .van-checkbox {
  121. display: inline-flex;
  122. }
  123. }
  124. &--inset {
  125. padding: var(--van-padding-md);
  126. table {
  127. background-color: #1c1c1e;
  128. border-bottom-width: 0;
  129. border-radius: 8px;
  130. }
  131. }
  132. }
  133. .g-detail-list {
  134. table {
  135. width: 100%;
  136. line-height: 1.7;
  137. background-color: var(--block-background);
  138. border-radius: 6px;
  139. padding: 12px;
  140. &:not(:first-child) {
  141. margin-top: 12px;
  142. }
  143. tbody {
  144. font-size: 13px;
  145. td {
  146. &:last-child {
  147. text-align: right;
  148. }
  149. }
  150. }
  151. tfoot {
  152. text-align: right;
  153. td {
  154. padding-top: 10px;
  155. button {
  156. min-width: 60px;
  157. &+button {
  158. margin-left: 10px;
  159. }
  160. }
  161. }
  162. }
  163. }
  164. .text-small {
  165. font-size: 12px;
  166. color: var(--color-info);
  167. }
  168. }
  169. .g-dialog-message {
  170. line-height: 1.6;
  171. &__header {
  172. text-align: left;
  173. padding: 0 15px;
  174. margin-bottom: 10px;
  175. h4 {
  176. font-weight: bold;
  177. }
  178. span {
  179. display: block;
  180. font-size: 12px;
  181. font-weight: normal;
  182. color: #999;
  183. }
  184. }
  185. &__content {
  186. max-height: 50vh;
  187. word-break: break-all;
  188. overflow-y: auto;
  189. padding: 0 15px;
  190. }
  191. &__footer {
  192. display: flex;
  193. justify-content: center;
  194. padding: 10px;
  195. span {
  196. &:not(:first-child) {
  197. margin-left: 10px;
  198. }
  199. &.disabled {
  200. color: #999;
  201. }
  202. }
  203. }
  204. }
  205. .g-account-total {
  206. display: flex;
  207. flex-direction: column;
  208. &__inner {
  209. color: #0d121b;
  210. background: linear-gradient(to top, #F7941D 0%, #F7941D 24%, #F8BB49 76%, #F8BB49 100%);
  211. border-radius: 10px;
  212. padding: 12px;
  213. }
  214. &__header {
  215. display: flex;
  216. align-items: center;
  217. justify-content: space-between;
  218. }
  219. &__title {
  220. display: flex;
  221. align-items: center;
  222. img {
  223. margin-left: 8px;
  224. }
  225. }
  226. &__info {
  227. span {
  228. margin-left: 10px;
  229. }
  230. }
  231. &__balance {
  232. flex: 1;
  233. font-size: 36px;
  234. font-weight: bold;
  235. text-align: center;
  236. padding: 32px 0;
  237. }
  238. &__footer {
  239. ul {
  240. display: flex;
  241. li {
  242. flex: 1;
  243. text-align: center;
  244. &:first-child {
  245. border-right: 1px solid #DF8D1E;
  246. }
  247. &:first-child:nth-last-child(n+3),
  248. &:first-child:nth-last-child(n+3)~li:first-child {
  249. text-align: left;
  250. }
  251. &:last-child:nth-child(n+3),
  252. &:last-child:nth-last-child(n+3)~li:last-child {
  253. text-align: right;
  254. border-left: 1px solid #DF8D1E;
  255. }
  256. span {
  257. display: block;
  258. &:first-child {
  259. color: rgba(13, 18, 27, 0.7);
  260. margin-bottom: 6px;
  261. }
  262. }
  263. }
  264. }
  265. }
  266. }