variables.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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-size-base: 14px !default;
  22. $font-size-small: 12px !default;
  23. $font-size-large: 16px !default;
  24. $line-height-base: 1.5 !default;
  25. // Font
  26. $font-size-1: 12px;
  27. $font-size-2: 14px;
  28. $font-size-3: 16px;
  29. $font-size-4: 18px;
  30. $font-weight-bold: 400;
  31. // button
  32. $button-border-radius: 25px;
  33. $button-border-width: 1px;
  34. $button-default-bg-color: $white;
  35. $button-default-border-color: rgba(204, 204, 204, 1);
  36. $button-default-color: rgba(102, 102, 102, 1);
  37. $button-small-height: 28px;
  38. $button-default-height: 38px;
  39. $button-large-height: 48px;
  40. $button-large-line-height: 46px;
  41. $button-small-line-height: 26px;
  42. $button-block-height: 48px;
  43. $button-default-line-height: 36px;
  44. $button-block-line-height: 46px;
  45. $button-default-font-size: $font-size-2;
  46. $button-disabled-opacity: 0.68;
  47. $button-primary-color: $white;
  48. $button-primary-border-color: rgba(250, 44, 25, 1);
  49. $button-primary-background-color: linear-gradient(
  50. 135deg,
  51. rgba(250, 44, 25, 1) 0%,
  52. rgba(250, 63, 25, 1) 45%,
  53. rgba(250, 89, 25, 1) 83%,
  54. rgba(250, 100, 25, 1) 100%
  55. );
  56. $button-info-color: $white;
  57. $button-info-border-color: rgba(73, 106, 242, 1);
  58. $button-info-background-color: linear-gradient(
  59. 315deg,
  60. rgba(73, 143, 242, 1) 0%,
  61. rgba(73, 101, 242, 1) 100%
  62. );
  63. $button-success-color: $white;
  64. $button-success-border-color: rgba(38, 191, 38, 1);
  65. $button-success-background-color: linear-gradient(
  66. 135deg,
  67. rgba(38, 191, 38, 1) 0%,
  68. rgba(39, 197, 48, 1) 45%,
  69. rgba(40, 207, 63, 1) 83%,
  70. rgba(41, 212, 70, 1) 100%
  71. );
  72. $button-danger-color: $white;
  73. $button-danger-border-color: rgba(250, 44, 25, 1);
  74. $button-danger-background-color: rgba(250, 44, 25, 1);
  75. $button-warning-color: $white;
  76. $button-warning-border-color: rgba(255, 158, 13, 1);
  77. $button-warning-background-color: linear-gradient(
  78. 135deg,
  79. rgba(255, 158, 13, 1) 0%,
  80. rgba(255, 167, 13, 1) 45%,
  81. rgba(255, 182, 13, 1) 83%,
  82. rgba(255, 190, 13, 1) 100%
  83. );
  84. $button-plain-background-color: #fff;
  85. $button-plain-background-color: $white;
  86. // cell
  87. $cell-color: $title-color2;
  88. $cell-title-font: $font-size-2;
  89. $cell-title-desc-font: $font-size-1;
  90. $cell-desc-font: $font-size-2;
  91. $cell-desc-color: $disable-color;
  92. // icon
  93. $icon-height: 20px;
  94. $icon-width: 20px;
  95. $icon-line-height: 20px;
  96. // uploader
  97. $uploader-width: 100px;
  98. $uploader-height: 100px;
  99. $uploader-background: #f7f8fa;
  100. // inputnumber
  101. $inputnumber-input-background-color: $help-color;
  102. $inputnumber-input-border-radius: 8px;
  103. $inputnumber-input-width: 40px;
  104. $inputnumber-input-height: 20px;
  105. // actionsheet
  106. $zindex-actionsheet: 10001 !default;
  107. $body-background: #f6f6f6 !default;
  108. $light-color: #f6f6f6 !default;
  109. $font-size-base: 14px !default;
  110. $font-size-small: 12px !default;
  111. //shortpassword
  112. $shortpsd-background-color: rgba(245, 245, 245, 1);
  113. $shortpsd-border-color: #ddd;
  114. $shortpsd-error: rgba(242, 39, 12, 1);
  115. $shortpsd-forget: rgba(128, 128, 128, 1);
  116. //price
  117. $price-big-size: 24px;
  118. //avatar
  119. $avatar-square: 5px;
  120. $avatar-large-width: 60px;
  121. $avatar-large-height: 60px;
  122. $avatar-small-width: 32px;
  123. $avatar-small-height: 32px;
  124. $avatar-normal-width: 40px;
  125. $avatar-normal-height: 40px;
  126. //switch
  127. $switch-close-bg-color: #ebebeb;
  128. $switch-close--cline-bg-color: #f0f0f0;
  129. // calendar
  130. $calendar-primary-color: $primary-color;
  131. $calendar-choose-color: #fef6f6;
  132. $calendar-base-color: #333333;
  133. $calendar-disable-color: #d1d0d0;
  134. $calendar-title-font: $font-size-4;
  135. $calendar-base-font: $font-size-3;
  136. $calendar-text-font: $font-size-1;
  137. $calendar-day-font: 18px;
  138. //overlay
  139. $overlay-bg-color: rgba(0, 0, 0, 0.7);
  140. //popup
  141. $popup-close-icon-margin: 16px;
  142. $popup-border-radius: 20px;
  143. // ---- Animation ----
  144. $animation-duration: 0.25s !default;
  145. $transition-duration: 0.2s !default;
  146. $transition-duration-fast: 0.2s !default;
  147. $transition-duration-slow: 0.4s !default;
  148. $animation-timing-fun: cubic-bezier(0.55, 0.085, 0.68, 0.53) !default;
  149. $ease-in-out: cubic-bezier(0.445, 0.05, 0.55, 0.95);
  150. $ease-out: cubic-bezier(0.895, 0.03, 0.685, 0.22);
  151. // ---- z-index ----
  152. $zindex-mask: 9998 !default;
  153. $zindex-actionsheet: 10001 !default;
  154. $zindex-dialog: 10000 !default;
  155. $zindex-picker: 10050 !default;
  156. // Notify
  157. $notify-text-color: #fff;
  158. $notify-padding: 12px 0;
  159. $notify-font-size: 14px;
  160. $notify-height: 44px;
  161. $notify-base-background-color: linear-gradient(
  162. 135deg,
  163. rgba(250, 44, 25, 1) 0%,
  164. rgba(250, 63, 25, 1) 45%,
  165. rgba(250, 89, 25, 1) 83%,
  166. rgba(250, 100, 25, 1) 100%
  167. );
  168. $notify-primary-background-color: linear-gradient(
  169. 315deg,
  170. rgba(73, 143, 242, 1) 0%,
  171. rgba(73, 101, 242, 1) 100%
  172. );
  173. $notify-success-background-color: linear-gradient(
  174. 135deg,
  175. rgba(38, 191, 38, 1) 0%,
  176. rgba(39, 197, 48, 1) 45%,
  177. rgba(40, 207, 63, 1) 83%,
  178. rgba(41, 212, 70, 1) 100%
  179. );
  180. $notify-danger-background-color: rgba(250, 50, 25, 1);
  181. $notify-warning-background-color: linear-gradient(
  182. 135deg,
  183. rgba(255, 93, 13, 1) 0%,
  184. rgba(255, 154, 13, 1) 100%
  185. );
  186. view-block {
  187. display: block;
  188. }