theme.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /**
  2. * 微信小程序不支持这种写法
  3. * :root {
  4. * --tabbar-height: 100rpx
  5. * }
  6. */
  7. /**
  8. * 外层容器
  9. */
  10. .uni-app {
  11. position: relative;
  12. width: 100%;
  13. height: 100%;
  14. background-color: white;
  15. box-sizing: border-box;
  16. display: flex;
  17. flex-direction: column;
  18. overflow: hidden;
  19. /* padding-top: 0;
  20. padding-top: constant(safe-area-inset-top);
  21. padding-top: env(safe-area-inset-top); */
  22. padding-bottom: 0;
  23. padding-bottom: constant(safe-area-inset-bottom);
  24. padding-bottom: env(safe-area-inset-bottom);
  25. .main-container {
  26. width: 100%;
  27. flex: 1;
  28. background-color: #F3F5FA;
  29. // height: calc(100% - var(--status-bar-height));
  30. display: flex;
  31. flex-direction: column;
  32. overflow: hidden;
  33. }
  34. }
  35. /**
  36. * app 状态栏
  37. */
  38. .status-bar {
  39. width: 100%;
  40. height: var(--status-bar-height);
  41. // background: linear-gradient(90deg, #1CB4FF 0%, #1C5AFF 100%);
  42. background-color: $theme-color;
  43. }
  44. /**
  45. * 渐变背景色
  46. */
  47. .linear-gradient {
  48. // background: linear-gradient(90deg, #1CB4FF 0%, #1C5AFF 100%);
  49. background-color: $theme-color;
  50. }
  51. /**
  52. * 白色按钮
  53. */
  54. .white-btn {
  55. &.button-hover {
  56. background-color: unset !important;
  57. }
  58. color: white;
  59. font-size: 28rpx;
  60. padding: 16rpx 25rpx;
  61. }
  62. .footer-btn-group {
  63. position: relative;
  64. z-index: 1;
  65. width: 100%;
  66. height: 120rpx;
  67. display: flex;
  68. align-items: center;
  69. background-color: white;
  70. box-shadow: 0px -2px 16px rgba(138, 138, 138, 0.2);
  71. padding: 20rpx 24rpx;
  72. overflow: auto;
  73. .button {
  74. width: 100%;
  75. height: 100%;
  76. color: white;
  77. letter-spacing: 3rpx;
  78. text-indent: 3rpx;
  79. font-size: $wk-font-base;
  80. background-color: $theme-color;
  81. border-radius: 16rpx;
  82. @include center;
  83. }
  84. }
  85. /**
  86. * filter-group
  87. */
  88. .filter-group {
  89. width: 100%;
  90. height: 80rpx;
  91. background-color: white;
  92. margin-bottom: 15rpx;
  93. }
  94. /**
  95. * wk move button
  96. */
  97. .wk-drag-btn {
  98. width: 100rpx;
  99. height: 100rpx;
  100. color: white;
  101. border-radius: 50%;
  102. background-color: $theme-color;
  103. box-shadow: 0 0 15rpx rgba(0,69,196,.5);
  104. flex-direction: column;
  105. @include center;
  106. .icon {
  107. font-size: 42rpx;
  108. line-height: 1.2;
  109. }
  110. }
  111. .wk-list-item {
  112. position: relative;
  113. width: 100%;
  114. background-color: white;
  115. padding: 28rpx 32rpx;
  116. &:after {
  117. position: absolute;
  118. bottom: 0;
  119. left: 32rpx;
  120. content: '';
  121. width: calc(100% - 64rpx);
  122. height: 1rpx;
  123. border-bottom: 1rpx solid $border-color;
  124. display: block;
  125. }
  126. }
  127. /**
  128. * popup 选项弹框
  129. */
  130. .pop-wrapper {
  131. width: 500rpx;
  132. background-color: white;
  133. border-radius: 6rpx;
  134. overflow: hidden;
  135. .pop-item {
  136. width: 100%;
  137. height: 80rpx;
  138. font-size: 28rpx;
  139. line-height: 80rpx;
  140. color: $dark;
  141. padding-left: 50rpx;
  142. &:active {
  143. background-color: $main-bg;
  144. }
  145. }
  146. }
  147. /**
  148. * 输入框 placeholder
  149. */
  150. .wk-placeholder {
  151. color: #BBBBBB;
  152. font-size: 24rpx;
  153. }
  154. .wk-tabs {
  155. width: 100%;
  156. @include center;
  157. .wk-tab-item {
  158. position: relative;
  159. font-size: 30rpx;
  160. text-align: center;
  161. padding: 20rpx 0 20rpx;
  162. margin: 0 46rpx;
  163. overflow: hidden;
  164. &:after {
  165. position: absolute;
  166. left: 100%;
  167. bottom: 0;
  168. content: '';
  169. width: 100%;
  170. height: 6rpx;
  171. border-radius: 6rpx;
  172. background-color: $theme-color;
  173. display: block;
  174. }
  175. &.active {
  176. font-weight: 500;
  177. color: $theme-color;
  178. &:after {
  179. left: 0;
  180. }
  181. }
  182. }
  183. }