variables.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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 !default;
  16. $black: #000 !default;
  17. // padding
  18. $padding-xs: 12px !default;
  19. $font-family: PingFang SC, Microsoft YaHei, Helvetica, Hiragino Sans GB, SimSun, sans-serif !default;
  20. // ---- Animation ----
  21. $animation-duration: 0.25s !default;
  22. $animation-timing-fun: cubic-bezier(0.55, 0.085, 0.68, 0.53) !default;
  23. // Font
  24. $font-size-0: 10px !default;
  25. $font-size-1: 12px !default;
  26. $font-size-2: 14px !default;
  27. $font-size-3: 16px !default;
  28. $font-size-4: 18px !default;
  29. $font-weight-bold: 400 !default;
  30. $font-size-small: $font-size-1 !default;
  31. $font-size-base: $font-size-2 !default;
  32. $font-size-large: $font-size-3 !default;
  33. $line-height-base: 1.5 !default;
  34. // button
  35. $button-border-radius: 25px !default;
  36. $button-border-width: 1px !default;
  37. $button-default-bg-color: $white !default;
  38. $button-default-border-color: rgba(204, 204, 204, 1) !default;
  39. $button-default-color: rgba(102, 102, 102, 1) !default;
  40. $button-small-height: 28px !default;
  41. $button-default-height: 38px !default;
  42. $button-large-height: 48px !default;
  43. $button-large-line-height: 46px !default;
  44. $button-small-line-height: 26px !default;
  45. $button-block-height: 48px !default;
  46. $button-default-line-height: 36px !default;
  47. $button-block-line-height: 46px !default;
  48. $button-default-font-size: $font-size-2 !default;
  49. $button-disabled-opacity: 0.68 !default;
  50. $button-primary-color: $white !default;
  51. $button-primary-border-color: $primary-color !default;
  52. $button-primary-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  53. $button-info-color: $white !default;
  54. $button-info-border-color: rgba(73, 106, 242, 1) !default;
  55. $button-info-background-color: linear-gradient(315deg, rgba(73, 143, 242, 1) 0%, rgba(73, 101, 242, 1) 100%) !default;
  56. $button-success-color: $white !default;
  57. $button-success-border-color: rgba(38, 191, 38, 1) !default;
  58. $button-success-background-color: linear-gradient(
  59. 135deg,
  60. rgba(38, 191, 38, 1) 0%,
  61. rgba(39, 197, 48, 1) 45%,
  62. rgba(40, 207, 63, 1) 83%,
  63. rgba(41, 212, 70, 1) 100%
  64. ) !default;
  65. $button-danger-color: $white !default;
  66. $button-danger-border-color: rgba(250, 44, 25, 1) !default;
  67. $button-danger-background-color: rgba(250, 44, 25, 1) !default;
  68. $button-warning-color: $white !default;
  69. $button-warning-border-color: rgba(255, 158, 13, 1) !default;
  70. $button-warning-background-color: linear-gradient(
  71. 135deg,
  72. rgba(255, 158, 13, 1) 0%,
  73. rgba(255, 167, 13, 1) 45%,
  74. rgba(255, 182, 13, 1) 83%,
  75. rgba(255, 190, 13, 1) 100%
  76. ) !default;
  77. $button-plain-background-color: #fff !default;
  78. $button-plain-background-color: $white !default;
  79. // cell
  80. $cell-color: $title-color2 !default;
  81. $cell-title-font: $font-size-2 !default;
  82. $cell-title-desc-font: $font-size-1 !default;
  83. $cell-desc-font: $font-size-2 !default;
  84. $cell-desc-color: $disable-color !default;
  85. $cell-border-radius: 6px !default;
  86. // cell-group
  87. $cell-group-title-padding: 0 10px !default;
  88. $cell-group-title-color: #909ca4 !default;
  89. $cell-group-title-font-size: $font-size-2 !default;
  90. $cell-group-title-line-height: 20px !default;
  91. $cell-group-background-color: $white !default;
  92. // icon
  93. $icon-height: 20px !default;
  94. $icon-width: 20px !default;
  95. $icon-line-height: 20px !default;
  96. // uploader
  97. $uploader-width: 100px !default;
  98. $uploader-height: 100px !default;
  99. $uploader-background: #f7f8fa !default;
  100. //input
  101. $input-border-bottom: #eaf0fb !default;
  102. $input-disabled-color: #c8c9cc !default;
  103. $input-require-color: $primary-color !default;
  104. $input-font-size: $font-size-2 !default;
  105. // textarea
  106. $textarea-font: $font-size-2 !default;
  107. $textarea-height: 100px !default;
  108. $textarea-limit-color: $text-color !default;
  109. $textarea-text-color: $title-color !default;
  110. $textarea-disabled-color: $disable-color !default;
  111. // inputnumber
  112. $inputnumber-icon-color: $title-color !default;
  113. $inputnumber-icon-void-color: $disable-color !default;
  114. $inputnumber-input-background-color: $help-color !default;
  115. $inputnumber-input-border-radius: 4px !default;
  116. $inputnumber-input-width: 40px !default;
  117. $inputnumber-icon-size: 20px !default;
  118. // actionsheet
  119. $zindex-actionsheet: 10001 !default;
  120. $body-background: #f6f6f6 !default;
  121. $light-color: #f6f6f6 !default;
  122. $font-size-base: $font-size-2 !default;
  123. $font-size-small: $font-size-1 !default;
  124. //shortpassword
  125. $shortpsd-background-color: rgba(245, 245, 245, 1) !default;
  126. $shortpsd-border-color: #ddd !default;
  127. $shortpsd-error: rgba(242, 39, 12, 1) !default;
  128. $shortpsd-forget: rgba(128, 128, 128, 1) !default;
  129. //large price
  130. $price-symbol-big-size: 18px !default;
  131. $price-big-size: 24px !default;
  132. $price-decimal-big-size: 18px !default;
  133. //normal price
  134. $price-symbol-medium-size: 14px !default;
  135. $price-medium-size: 16px !default;
  136. $price-decimal-medium-size: 14px !default;
  137. // small price
  138. $price-symbol-small-size: 10px !default;
  139. $price-small-size: 12px !default;
  140. $price-decimal-small-size: 10px !default;
  141. //avatar
  142. $avatar-square: 5px !default;
  143. $avatar-large-width: 60px !default;
  144. $avatar-large-height: 60px !default;
  145. $avatar-small-width: 32px !default;
  146. $avatar-small-height: 32px !default;
  147. $avatar-normal-width: 40px !default;
  148. $avatar-normal-height: 40px !default;
  149. //switch
  150. $switch-close-bg-color: #ebebeb !default;
  151. $switch-close--cline-bg-color: #f0f0f0 !default;
  152. //backtop
  153. $backtop-border-color: #e0e0e0 !default;
  154. // calendar
  155. $calendar-primary-color: $primary-color !default;
  156. $calendar-choose-color: #fef6f6 !default;
  157. $calendar-base-color: #333333 !default;
  158. $calendar-disable-color: #d1d0d0 !default;
  159. $calendar-title-font: $font-size-4 !default;
  160. $calendar-base-font: $font-size-3 !default;
  161. $calendar-text-font: $font-size-1 !default;
  162. $calendar-day-font: 18px !default;
  163. //overlay
  164. $overlay-bg-color: rgba(0, 0, 0, 0.7) !default;
  165. //popup
  166. $popup-close-icon-margin: 16px !default;
  167. $popup-border-radius: 20px !default;
  168. // Notify
  169. $notify-text-color: $white !default;
  170. $notify-padding: 12px 0 !default;
  171. $notify-font-size: 14px !default;
  172. $notify-height: 44px !default;
  173. $notify-base-background-color: linear-gradient(
  174. 135deg,
  175. rgba(250, 44, 25, 1) 0%,
  176. rgba(250, 63, 25, 1) 45%,
  177. rgba(250, 89, 25, 1) 83%,
  178. rgba(250, 100, 25, 1) 100%
  179. ) !default;
  180. $notify-primary-background-color: linear-gradient(
  181. 315deg,
  182. rgba(73, 143, 242, 1) 0%,
  183. rgba(73, 101, 242, 1) 100%
  184. ) !default;
  185. $notify-success-background-color: linear-gradient(
  186. 135deg,
  187. rgba(38, 191, 38, 1) 0%,
  188. rgba(39, 197, 48, 1) 45%,
  189. rgba(40, 207, 63, 1) 83%,
  190. rgba(41, 212, 70, 1) 100%
  191. ) !default;
  192. $notify-danger-background-color: rgba(250, 50, 25, 1) !default;
  193. $notify-warning-background-color: linear-gradient(135deg, rgba(255, 93, 13, 1) 0%, rgba(255, 154, 13, 1) 100%) !default;
  194. // rate
  195. $rate-icon-color: $primary-color !default;
  196. $rate-icon-void-color: $disable-color !default;
  197. // tabbar
  198. $tabbar-active-color: $primary-color !default;
  199. $tabbar-border-color: #eee !default;
  200. //infiniteloading
  201. $infinite-bottom-color: #c8c8c8 !default;
  202. //range
  203. $range-max: #333333 !default;
  204. $rang-bg-color: rgba($primary-color, 0.5) !default;
  205. $rang-bar-bg-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  206. //address
  207. $address-region-tab-line: linear-gradient(90deg, #f5503a 0%, #fad1cb 100%) !default;
  208. //steps
  209. $step-wait-bg-color: #959fb1 !default;
  210. // dialog
  211. $dialog-width: 296px !default;
  212. // checkbox
  213. $checkbox-label-color: #1d1e1e !default;
  214. $checkbox-label-disable-color: #999 !default;
  215. $checkbox-icon-disable-color: #d6d6d6 !default;
  216. //radio
  217. $radio-label-color: #1d1e1e !default;
  218. $radio-label-disable-color: #999 !default;
  219. $radio-icon-disable-color: #d6d6d6 !default;
  220. //fixednav
  221. $fixednav-bg-color: $white !default;
  222. $fixednav-font-color: $black !default;
  223. $fixednav-index: 201 !default;
  224. $fixednav-btn-bg: linear-gradient(135deg, rgba(250, 25, 44, 1) 0%, rgba(250, 63, 25, 1) 100%) !default;
  225. // NoticeBar
  226. $noticeBar-font-size: 14px !default;
  227. $noticeBar-height: 40px !default;
  228. $noticeBar-line-height: 24px !default;
  229. $noticeBar-left-icon-width: 16px !default;
  230. $noticeBar-right-icon-width: 16px !default;
  231. // TimeSelect
  232. $timeselect-title-font-size: $font-size-1 !default;
  233. $timeselect-title-color: $title-color !default;
  234. $timeselect-pannel-bg-color: #f6f7f9 !default;
  235. // TimePannel
  236. $timepannel-text-color: $title-color2 !default;
  237. $timepannel-font-size: $font-size-2 !default;
  238. $timepannel-cur-bg-color: $white !default;
  239. $timepannel-cur-text-color: #333333 !default;
  240. // TimeDetail
  241. $timedetail-item-bg-color: #f6f7f9 !default;
  242. $timedetail-item-border-radius: 5px !default;
  243. $timedetail-item-text-color: #333333 !default;
  244. $timedetail-item-text-font-size: $font-size-2 !default;
  245. $timedetail-item-cur-bg-color: #fef4f3 !default;
  246. $timedetail-item-cur-border: #f0250f !default;
  247. $timedetail-item-cur-text-color: #f0250f !default;
  248. $timedetail-time-text-color: #999 !default;
  249. $timedetail-time-font-size: $font-size-1 !default;
  250. //tag
  251. $tag-font-size: 12px !default;
  252. $tag-default-border-radius: 4px !default;
  253. $tag-round-border-radius: 8px !default;
  254. $tag-default-background-color: #000000 !default;
  255. $tag-primary-background-color: #3460fa !default;
  256. $tag-success-background-color: #4fc08d !default;
  257. $tag-danger-background-color: linear-gradient(
  258. 135deg,
  259. rgba(242, 20, 12, 1) 0%,
  260. rgba(232, 34, 14, 1) 69.83950099728881%,
  261. rgba(242, 77, 12, 1) 100%
  262. ) !default;
  263. $tag-warning-background-color: #f3812e !default;
  264. $tag-default-color: #ffffff !default;
  265. $tag-border-width: 1px !default;
  266. $tag-plain-background-color: #fff !default;
  267. //badge
  268. $badge-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  269. $badge-font-size: $font-size-1 !default;
  270. $badge-default-background-color: rgba(255, 255, 255, 1) !default;
  271. //popover
  272. $popover-white-background-color: rgba(255, 255, 255, 1) !default;
  273. $popover-dark-background-color: rgba(75, 76, 77, 1) !default;
  274. $popover-border-bottom-color: rgba(229, 229, 229, 1) !default;
  275. $popover-primary-text-color: rgba(51, 51, 51, 1) !default;
  276. $popover-disable-color: rgba(154, 155, 157, 1) !default;
  277. //分页
  278. $pagination-color: $primary-color !default;
  279. $pagination-font-size: $font-size-2 !default;
  280. $pagination-item-border-color: #e4e7eb !default;
  281. $pagination-active-background-color: linear-gradient(
  282. 135deg,
  283. rgba(250, 44, 25, 1) 0%,
  284. rgba(250, 63, 25, 1) 44.59259259%,
  285. rgba(250, 89, 25, 1) 83.40740741%,
  286. rgba(250, 100, 25, 1) 100%
  287. ) !default;
  288. $pagination-disable-color: rgba(116, 116, 116, 0.31) !default;
  289. $pagination-disable-background-color: #f7f8fa !default;
  290. $pagination-item-border-width: 1px !default;
  291. $pagination-item-border-radius: 2px !default;
  292. $pagination-prev-next-padding: 0 11px !default;
  293. // tabs
  294. $tabs-tab-smile-color: $primary-color !default;
  295. $tabs-titles-border-radius: 0 !default;
  296. $tabs-titles-item-font-size: $font-size-2 !default;
  297. $tabs-titles-item-color: $title-color !default;
  298. $tabs-titles-background-color: $help-color !default;
  299. $tabs-horizontal-tab-line-color: linear-gradient(90deg, #f5503a 0%, #fad1cb 100%) !default;
  300. $tabs-horizontal-titles-height: 46px !default;
  301. $tabs-horizontal-titles-item-min-width: 50px !default;
  302. $tabs-horizontal-titles-item-active-line-width: 40px !default;
  303. $tabs-vertical-tab-line-color: linear-gradient(180deg, #f5503a 0%, #fad1cb 100%) !default;
  304. $tabs-vertical-titles-item-height: 40px !default;
  305. $tabs-vertical-titles-item-active-line-height: 14px !default;
  306. $tabs-vertical-titles-width: 100px !default;
  307. // searchbar
  308. $searchbar-background: $white !default;
  309. $searchbar-input-background: #f7f7f7 !default;
  310. $searchbar-right-out-color: $black !default;
  311. @import './mixins/index';
  312. @import './animation/index';