variables.scss 5.8 KB

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