variables.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. // color
  2. // 主色调
  3. $primary-color: #fa2c19 !default;
  4. $primary-color-end: #fa6419 !default;
  5. // 辅助色
  6. $help-color: #f5f5f5 !default;
  7. // 标题常规文字
  8. $title-color: #1a1a1a !default;
  9. // 副标题
  10. $title-color2: #666666 !default;
  11. // 次内容
  12. $text-color: #808080 !default;
  13. // 特殊禁用色
  14. $disable-color: #cccccc !default;
  15. $white: #fff;
  16. $black: #000;
  17. // padding
  18. $padding-xs: 8px 12px;
  19. $font-family: PingHei, 'Lucida Grande', 'Lucida Sans Unicode', STHeiti,
  20. Helvetica, Arial, Verdana, 'sans-serif', 'PingHei-light', SimHei, 'Droid Sans' !default;
  21. // Font
  22. $font-size-0: 10px;
  23. $font-size-1: 12px;
  24. $font-size-2: 14px;
  25. $font-size-3: 16px;
  26. $font-size-4: 18px;
  27. $font-weight-bold: 400;
  28. $font-size-small: $font-size-1;
  29. $font-size-base: $font-size-2;
  30. $font-size-large: $font-size-3;
  31. $line-height-base: 1.5 !default;
  32. // button
  33. $button-border-radius: 25px;
  34. $button-border-width: 1px;
  35. $button-default-bg-color: $white;
  36. $button-default-border-color: rgba(204, 204, 204, 1);
  37. $button-default-color: rgba(102, 102, 102, 1);
  38. $button-small-height: 28px;
  39. $button-default-height: 38px;
  40. $button-large-height: 48px;
  41. $button-large-line-height: 46px;
  42. $button-small-line-height: 26px;
  43. $button-block-height: 48px;
  44. $button-default-line-height: 36px;
  45. $button-block-line-height: 46px;
  46. $button-default-font-size: $font-size-2;
  47. $button-disabled-opacity: 0.68;
  48. $button-primary-color: $white;
  49. $button-primary-border-color: $primary-color;
  50. $button-primary-background-color: linear-gradient(
  51. 135deg,
  52. $primary-color 0%,
  53. $primary-color-end 100%
  54. );
  55. $button-info-color: $white;
  56. $button-info-border-color: rgba(73, 106, 242, 1);
  57. $button-info-background-color: linear-gradient(
  58. 315deg,
  59. rgba(73, 143, 242, 1) 0%,
  60. rgba(73, 101, 242, 1) 100%
  61. );
  62. $button-success-color: $white;
  63. $button-success-border-color: rgba(38, 191, 38, 1);
  64. $button-success-background-color: linear-gradient(
  65. 135deg,
  66. rgba(38, 191, 38, 1) 0%,
  67. rgba(39, 197, 48, 1) 45%,
  68. rgba(40, 207, 63, 1) 83%,
  69. rgba(41, 212, 70, 1) 100%
  70. );
  71. $button-danger-color: $white;
  72. $button-danger-border-color: rgba(250, 44, 25, 1);
  73. $button-danger-background-color: rgba(250, 44, 25, 1);
  74. $button-warning-color: $white;
  75. $button-warning-border-color: rgba(255, 158, 13, 1);
  76. $button-warning-background-color: linear-gradient(
  77. 135deg,
  78. rgba(255, 158, 13, 1) 0%,
  79. rgba(255, 167, 13, 1) 45%,
  80. rgba(255, 182, 13, 1) 83%,
  81. rgba(255, 190, 13, 1) 100%
  82. );
  83. $button-plain-background-color: #fff;
  84. $button-plain-background-color: $white;
  85. // cell
  86. $cell-color: $title-color2;
  87. $cell-title-font: $font-size-2;
  88. $cell-title-desc-font: $font-size-1;
  89. $cell-desc-font: $font-size-2;
  90. $cell-desc-color: $disable-color;
  91. // icon
  92. $icon-height: 20px;
  93. $icon-width: 20px;
  94. $icon-line-height: 20px;
  95. // uploader
  96. $uploader-width: 100px;
  97. $uploader-height: 100px;
  98. $uploader-background: #f7f8fa;
  99. //input
  100. $input-border-bottom: #eaf0fb;
  101. $input-disabled-color: #c8c9cc;
  102. // inputnumber
  103. $inputnumber-input-background-color: $help-color;
  104. $inputnumber-input-border-radius: 8px;
  105. $inputnumber-input-width: 40px;
  106. $inputnumber-input-height: 20px;
  107. // actionsheet
  108. $zindex-actionsheet: 10001 !default;
  109. $body-background: #f6f6f6 !default;
  110. $light-color: #f6f6f6 !default;
  111. $font-size-base: $font-size-2;
  112. $font-size-small: $font-size-1;
  113. //shortpassword
  114. $shortpsd-background-color: rgba(245, 245, 245, 1);
  115. $shortpsd-border-color: #ddd;
  116. $shortpsd-error: rgba(242, 39, 12, 1);
  117. $shortpsd-forget: rgba(128, 128, 128, 1);
  118. //price
  119. $price-big-size: 24px;
  120. //avatar
  121. $avatar-square: 5px;
  122. $avatar-large-width: 60px;
  123. $avatar-large-height: 60px;
  124. $avatar-small-width: 32px;
  125. $avatar-small-height: 32px;
  126. $avatar-normal-width: 40px;
  127. $avatar-normal-height: 40px;
  128. //switch
  129. $switch-close-bg-color: #ebebeb;
  130. $switch-close--cline-bg-color: #f0f0f0;
  131. //backtop
  132. $backtop-border-color: #e0e0e0;
  133. // calendar
  134. $calendar-primary-color: $primary-color;
  135. $calendar-choose-color: #fef6f6;
  136. $calendar-base-color: #333333;
  137. $calendar-disable-color: #d1d0d0;
  138. $calendar-title-font: $font-size-4;
  139. $calendar-base-font: $font-size-3;
  140. $calendar-text-font: $font-size-1;
  141. $calendar-day-font: 18px;
  142. //overlay
  143. $overlay-bg-color: rgba(0, 0, 0, 0.7);
  144. //popup
  145. $popup-close-icon-margin: 16px;
  146. $popup-border-radius: 20px;
  147. // ---- Animation ----
  148. $animation-duration: 0.25s !default;
  149. $transition-duration: 0.2s !default;
  150. $transition-duration-fast: 0.2s !default;
  151. $transition-duration-slow: 0.4s !default;
  152. $animation-timing-fun: cubic-bezier(0.55, 0.085, 0.68, 0.53) !default;
  153. $ease-in-out: cubic-bezier(0.445, 0.05, 0.55, 0.95);
  154. $ease-out: cubic-bezier(0.895, 0.03, 0.685, 0.22);
  155. // ---- z-index ----
  156. $zindex-mask: 9998 !default;
  157. $zindex-actionsheet: 10001 !default;
  158. $zindex-dialog: 10000 !default;
  159. $zindex-picker: 10050 !default;
  160. // Notify
  161. $notify-text-color: $white;
  162. $notify-padding: 12px 0;
  163. $notify-font-size: 14px;
  164. $notify-height: 44px;
  165. $notify-base-background-color: linear-gradient(
  166. 135deg,
  167. rgba(250, 44, 25, 1) 0%,
  168. rgba(250, 63, 25, 1) 45%,
  169. rgba(250, 89, 25, 1) 83%,
  170. rgba(250, 100, 25, 1) 100%
  171. );
  172. $notify-primary-background-color: linear-gradient(
  173. 315deg,
  174. rgba(73, 143, 242, 1) 0%,
  175. rgba(73, 101, 242, 1) 100%
  176. );
  177. $notify-success-background-color: linear-gradient(
  178. 135deg,
  179. rgba(38, 191, 38, 1) 0%,
  180. rgba(39, 197, 48, 1) 45%,
  181. rgba(40, 207, 63, 1) 83%,
  182. rgba(41, 212, 70, 1) 100%
  183. );
  184. $notify-danger-background-color: rgba(250, 50, 25, 1);
  185. $notify-warning-background-color: linear-gradient(
  186. 135deg,
  187. rgba(255, 93, 13, 1) 0%,
  188. rgba(255, 154, 13, 1) 100%
  189. );
  190. // rate
  191. $rate-icon-color: $primary-color;
  192. $rate-icon-void-color: $disable-color;
  193. // tabbar
  194. $tabbar-active-color: $primary-color;
  195. $tabbar-border-color: #eee;
  196. //infiniteloading
  197. $infinite-bottom-color: #c8c8c8;
  198. //range
  199. $range-max: #333333;
  200. $rang-bg-color: rgba($primary-color, 0.5);
  201. $rang-bar-bg-color: linear-gradient(
  202. 135deg,
  203. $primary-color 0%,
  204. $primary-color-end 100%
  205. );
  206. view-block {
  207. display: block;
  208. }
  209. @import './mixins/index';
  210. @import './animation/index';