base.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. // @font-face {
  2. // font-family: 'iconfont'; /* Project id 1702958 */
  3. // src: url('https://at.alicdn.com/t/c/font_1702958_8sqv1klrrkm.woff2?t=1701676243273') format('woff2'),
  4. // url('https://at.alicdn.com/t/c/font_1702958_8sqv1klrrkm.woff?t=1701676243273') format('woff'),
  5. // url('https://at.alicdn.com/t/c/font_1702958_8sqv1klrrkm.ttf?t=1701676243273') format('truetype');
  6. // }
  7. /* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
  8. @font-face {
  9. font-family: 'iconfont'; /* Project id 4578928 */
  10. src: url('https://at.alicdn.com/t/c/font_4578928_be33xvc312o.woff2?t=1732155615339') format('woff2'),
  11. url('https://at.alicdn.com/t/c/font_4578928_be33xvc312o.woff?t=1732155615339') format('woff'),
  12. url('https://at.alicdn.com/t/c/font_4578928_be33xvc312o.ttf?t=1732155615339') format('truetype'),
  13. url('https://at.alicdn.com/t/c/font_4578928_be33xvc312o.svg?t=1732155615339#iconfont') format('svg');
  14. }
  15. .iconfont{
  16. font-family: iconfont;
  17. font-size: 28rpx;
  18. }
  19. page {
  20. background-color: $uni-bg-color-grey;
  21. height: 100%;
  22. font-size: $uni-font-size-base;
  23. line-height: $uni-line-height-base;
  24. font-family: PingFangSC-Medium, PingFang SC,SF UI Text,Roboto;
  25. color: $uni-text-color;
  26. }
  27. //分割线
  28. .b-b{
  29. position: relative;
  30. &::after {
  31. content: '';
  32. position: absolute;
  33. bottom: 0;
  34. left: 0;
  35. background: $uni-border-color;
  36. width: 100%;
  37. height: 1px;
  38. -webkit-transform: scaleY(0.5);
  39. transform: scaleY(0.5);
  40. -webkit-transform-origin: 0 0;
  41. transform-origin: 0 0;
  42. }
  43. }
  44. .b-t{
  45. position: relative;
  46. &::before {
  47. content: '';
  48. position: absolute;
  49. top: 0;
  50. left: 0;
  51. background: $uni-border-color;
  52. width: 100%;
  53. height: 1px;
  54. -webkit-transform: scaleY(0.5);
  55. transform: scaleY(0.5);
  56. -webkit-transform-origin: 0 0;
  57. transform-origin: 0 0;
  58. }
  59. }
  60. //按钮
  61. .pub-button {
  62. min-width: 120rpx;
  63. height: 72rpx;
  64. font-size: $uni-font-size-lg;
  65. line-height: $uni-line-height-lg;
  66. border-radius: 36rpx;
  67. padding: 0 32rpx;
  68. @include flex-center;
  69. color: $uni-color-primary;
  70. border: 1px solid $uni-color-primary;
  71. .iconfont{
  72. font-size: 24rpx;
  73. margin-right: 8rpx;
  74. }
  75. &:hover{
  76. border: 1px solid $uni-color-primary-deep;
  77. color: $uni-color-primary-deep;
  78. }
  79. &.disabled{
  80. color: #fff;
  81. background-color: $uni-text-color-disable;
  82. border-color: $uni-text-color-disable;
  83. }
  84. //带背景
  85. &.is-bg{
  86. background-color: $uni-color-primary;
  87. color: #FFFFFF;
  88. border: none;
  89. &:hover{
  90. background-color: $uni-color-primary-deep;
  91. }
  92. &.disabled{
  93. background-color: $uni-color-primary-light;
  94. }
  95. }
  96. &.is-grey{
  97. color: $uni-text-color-grey;
  98. border: 1px solid $uni-text-color-grey;
  99. &:hover{
  100. border: 1px solid $uni-text-color;
  101. color: $uni-text-color;
  102. }
  103. &.disabled{
  104. color: #fff;
  105. background-color: $uni-text-color-disable;
  106. border-color: $uni-text-color-disable;
  107. }
  108. }
  109. &.is-square{
  110. border-radius: 0;
  111. }
  112. &.large{
  113. /*大按钮*/
  114. min-width: 160rpx;
  115. height: 96rpx;
  116. font-size: $uni-font-size-xl;
  117. line-height: $uni-line-height-xl;
  118. color: #fff;
  119. border-radius: 48rpx;
  120. /* padding: 0 32rpx;*/
  121. margin: 16rpx 0;
  122. .iconfont{
  123. font-size: 36rpx;
  124. margin-right: 16rpx;
  125. }
  126. }
  127. &.small{
  128. /* 小按钮*/
  129. min-width: 88rpx;
  130. height: 56rpx;
  131. font-size: $uni-font-size-base;
  132. line-height: $uni-line-height-base;
  133. color: #fff;
  134. border-radius: 28rpx;
  135. padding: 0 16rpx;
  136. }
  137. &+.pub-button{
  138. margin-left: 16rpx;
  139. }
  140. }
  141. /*tab页*/
  142. .pub-tabs{
  143. height: 88rpx;
  144. padding: 0 24rpx;
  145. @include flex;
  146. .pub-tab{
  147. flex : 1;
  148. }
  149. }
  150. .flex-1{
  151. flex:1;
  152. }
  153. .uni-mask{
  154. background: rgba(0, 0, 0, 0.4);
  155. }
  156. .uni-picker-toggle{
  157. border-radius: 16rpx 16rpx 0 0;
  158. }
  159. .uni-picker-container{
  160. .uni-picker-header{
  161. height: 96rpx;
  162. border-bottom: 1px solid $uni-border-color;
  163. .uni-picker-action{
  164. font-size: $uni-font-size-xl;
  165. line-height: $uni-line-height-xl;
  166. @include flex;
  167. padding: 0 32rpx;
  168. &.uni-picker-action-cancel{
  169. color: $uni-text-color!important;
  170. }
  171. &.uni-picker-action-confirm{
  172. color: $uni-color-primary;
  173. }
  174. }
  175. }
  176. .uni-picker-view-wrapper{
  177. padding: 0 32rpx;
  178. .uni-picker-view-indicator{
  179. height: 96rpx;
  180. }
  181. .uni-picker-view-indicator:after, .uni-picker-view-indicator:before{
  182. color: $uni-border-color;
  183. }
  184. .uni-picker-item{
  185. color: $uni-text-color;
  186. font-size: $uni-font-size-xxl;
  187. line-height: $uni-line-height-xxl;
  188. height: 96rpx;
  189. @include flex-center;
  190. }
  191. }
  192. }
  193. .uni-forms-item{
  194. margin-bottom: 32rpx!important;
  195. }
  196. // toast提示框
  197. uni-toast{
  198. display: flex;
  199. justify-content: center;
  200. }
  201. .uni-toast{
  202. font-size: $uni-font-size-base;
  203. line-height: $uni-line-height-base;
  204. width: auto;
  205. margin: 0 72rpx;
  206. border-radius: 16rpx;
  207. left: auto;
  208. transform: translate(0, -50%);
  209. background: $uni-text-color;
  210. .uni-toast__icon{
  211. width: 64rpx!important;
  212. height: 64rpx!important;
  213. margin-top: 32rpx;
  214. margin-bottom: 8rpx;
  215. }
  216. .uni-toast__content{
  217. margin:0 48rpx 32rpx;
  218. @include text-ellipsis-2;
  219. }
  220. }
  221. .uni-sample-toast{
  222. border-radius: 16rpx;
  223. left: auto;
  224. transform: translate(0, -50%);
  225. background: $uni-text-color;
  226. .uni-simple-toast__text{
  227. font-size: $uni-font-size-base;
  228. line-height: $uni-line-height-base;
  229. margin:32rpx 48rpx ;
  230. padding: 0;
  231. @include text-ellipsis-2;
  232. background-color: transparent;
  233. }
  234. }
  235. .no-data {
  236. margin-top: 160rpx;
  237. @include flex-center;
  238. flex-direction: column;
  239. image {
  240. width: 320rpx;
  241. height: 320rpx;
  242. margin-bottom: 48rpx;
  243. color: $uni-text-color-light;
  244. }
  245. }
  246. //加载更多
  247. .uni-load-more{
  248. height: auto!important;
  249. .uni-load-more__text{
  250. font-size: $uni-font-size-base;
  251. line-height: $uni-line-height-base;
  252. padding: 32rpx 0;
  253. margin-left: 0;
  254. color: $uni-text-color-light;
  255. }
  256. }