main.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. view {
  2. line-height: 1.8;
  3. // font-family: '-apple-system', 'BlinkMacSystemFont', 'Helvetica Neue', 'Helvetica', 'Segoe UI', 'Arial', 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei',
  4. // 'sans-serif';
  5. font-family: 'PingFang SC', 'Roboto Medium';
  6. font-size: $font-size-base;
  7. color: $color-title;
  8. }
  9. page {
  10. background-color: $color-bg;
  11. }
  12. // 热情红·默认
  13. $base-color: #FF6A00;
  14. @include base($base-color);
  15. /* 隐藏滚动条 */
  16. ::-webkit-scrollbar {
  17. width: 0;
  18. height: 0;
  19. color: transparent;
  20. }
  21. scroll-view ::-webkit-scrollbar {
  22. width: 0;
  23. height: 0;
  24. background-color: transparent;
  25. }
  26. /* 兼容苹果X以上的手机样式 */
  27. .iphone-x {
  28. /* padding-bottom: 68rpx !important; */
  29. padding-bottom: constant(safe-area-inset-bottom);
  30. padding-bottom: env(safe-area-inset-bottom);
  31. }
  32. .iphone-safe-area {
  33. /* padding-bottom: 68rpx !important; */
  34. padding-bottom: calc(constant(safe-area-inset-bottom) + 40rpx) !important;
  35. padding-bottom: calc(env(safe-area-inset-bottom) + 40rpx) !important;
  36. }
  37. .iphone-x-fixed {
  38. bottom: 68rpx !important;
  39. }
  40. .uni-input {
  41. font-size: $font-size-base;
  42. width: 100%;
  43. }
  44. // 全局input框长度
  45. .search-input-inner {
  46. width: 520rpx !important;
  47. }
  48. .search-input-inner input {
  49. width: 100% !important;
  50. }
  51. // ***************文字颜色***************
  52. // 主标题
  53. .color-title {
  54. color: $color-title !important;
  55. }
  56. // 副标题
  57. .color-sub {
  58. color: $color-sub !important;
  59. }
  60. // 辅助提示色
  61. .color-tip {
  62. color: $color-tip !important;
  63. }
  64. // 灰背景色
  65. .color-bg {
  66. background-color: $color-bg !important;
  67. }
  68. // 分割线
  69. .color-line {
  70. color: $color-line !important;
  71. }
  72. // 分割线边框
  73. .color-line-border {
  74. border-color: $color-line !important;
  75. }
  76. // 禁用色
  77. .color-disabled {
  78. color: $color-disabled !important;
  79. }
  80. // 禁用色
  81. .color-disabled-bg {
  82. background-color: $color-disabled !important;
  83. }
  84. // ***************文字大小***************
  85. // 14px,正文文字
  86. .font-size-base {
  87. font-size: $font-size-base !important;
  88. }
  89. // 16px,用于标题、导航栏
  90. .font-size-toolbar {
  91. font-size: $font-size-toolbar !important;
  92. }
  93. // 13px,副标题
  94. .font-size-sub {
  95. font-size: $font-size-sub !important;
  96. }
  97. // 12px,辅助性文字/大标签
  98. .font-size-tag {
  99. font-size: $font-size-tag !important;
  100. }
  101. // 11px,商品列表角标
  102. .font-size-goods-tag {
  103. font-size: $font-size-goods-tag !important;
  104. }
  105. // 10px,活动角标(拼团等角标)/小标签文字
  106. .font-size-activity-tag {
  107. font-size: $font-size-activity-tag !important;
  108. }
  109. // 圆角
  110. .border-radius {
  111. border-radius: $border-radius !important;
  112. }
  113. //内边距
  114. .padding {
  115. padding: $padding !important;
  116. &-top {
  117. padding-top: $padding !important;
  118. }
  119. &-right {
  120. padding-right: $padding !important;
  121. }
  122. &-bottom {
  123. padding-bottom: $padding !important;
  124. }
  125. &-left {
  126. padding-left: $padding !important;
  127. }
  128. }
  129. //外边距
  130. .margin {
  131. margin: $margin-updown $margin-both !important;
  132. &-top {
  133. margin-top: $margin-updown !important;
  134. }
  135. &-right {
  136. margin-right: $margin-both !important;
  137. }
  138. &-bottom {
  139. margin-bottom: $margin-updown !important;
  140. }
  141. &-left {
  142. margin-left: $margin-both !important;
  143. }
  144. }
  145. uni-button:after {
  146. border: none !important;
  147. }
  148. button::after {
  149. border: none !important;
  150. }
  151. .uni-tag--inverted {
  152. border-color: $color-line !important;
  153. color: $color-title !important;
  154. }
  155. /deep/::-webkit-scrollbar {
  156. width: 0;
  157. height: 0;
  158. background-color: transparent;
  159. display: none;
  160. }