variables.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  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-mini-height: 24px !default;
  42. $button-default-height: 38px !default;
  43. $button-large-height: 48px !default;
  44. $button-large-line-height: 46px !default;
  45. $button-small-line-height: 26px !default;
  46. $button-block-height: 48px !default;
  47. $button-default-line-height: 36px !default;
  48. $button-block-line-height: 46px !default;
  49. $button-default-font-size: $font-size-2 !default;
  50. $button-disabled-opacity: 0.68 !default;
  51. $button-primary-color: $white !default;
  52. $button-primary-border-color: $primary-color !default;
  53. $button-primary-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  54. $button-info-color: $white !default;
  55. $button-info-border-color: rgba(73, 106, 242, 1) !default;
  56. $button-info-background-color: linear-gradient(315deg, rgba(73, 143, 242, 1) 0%, rgba(73, 101, 242, 1) 100%) !default;
  57. $button-success-color: $white !default;
  58. $button-success-border-color: rgba(38, 191, 38, 1) !default;
  59. $button-success-background-color: linear-gradient(
  60. 135deg,
  61. rgba(38, 191, 38, 1) 0%,
  62. rgba(39, 197, 48, 1) 45%,
  63. rgba(40, 207, 63, 1) 83%,
  64. rgba(41, 212, 70, 1) 100%
  65. ) !default;
  66. $button-danger-color: $white !default;
  67. $button-danger-border-color: rgba(250, 44, 25, 1) !default;
  68. $button-danger-background-color: rgba(250, 44, 25, 1) !default;
  69. $button-warning-color: $white !default;
  70. $button-warning-border-color: rgba(255, 158, 13, 1) !default;
  71. $button-warning-background-color: linear-gradient(
  72. 135deg,
  73. rgba(255, 158, 13, 1) 0%,
  74. rgba(255, 167, 13, 1) 45%,
  75. rgba(255, 182, 13, 1) 83%,
  76. rgba(255, 190, 13, 1) 100%
  77. ) !default;
  78. $button-plain-background-color: #fff !default;
  79. $button-plain-background-color: $white !default;
  80. // cell
  81. $cell-color: $title-color2 !default;
  82. $cell-title-font: $font-size-2 !default;
  83. $cell-title-desc-font: $font-size-1 !default;
  84. $cell-desc-font: $font-size-2 !default;
  85. $cell-desc-color: $disable-color !default;
  86. $cell-border-radius: 6px !default;
  87. // cell-group
  88. $cell-group-title-padding: 0 10px !default;
  89. $cell-group-title-color: #909ca4 !default;
  90. $cell-group-title-font-size: $font-size-2 !default;
  91. $cell-group-title-line-height: 20px !default;
  92. $cell-group-desc-padding: 0 10px !default;
  93. $cell-group-desc-color: #909ca4 !default;
  94. $cell-group-desc-font-size: $font-size-1 !default;
  95. $cell-group-desc-line-height: 16px !default;
  96. $cell-group-background-color: $white !default;
  97. // icon
  98. $icon-height: 20px !default;
  99. $icon-width: 20px !default;
  100. $icon-line-height: 20px !default;
  101. // uploader
  102. $uploader-picture-width: 100px !default;
  103. $uploader-picture-height: 100px !default;
  104. $uploader-background: #f7f8fa !default;
  105. //input
  106. $input-border-bottom: #eaf0fb !default;
  107. $input-disabled-color: #c8c9cc !default;
  108. $input-require-color: $primary-color !default;
  109. $input-font-size: $font-size-2 !default;
  110. // textarea
  111. $textarea-font: $font-size-2 !default;
  112. $textarea-height: 100px !default;
  113. $textarea-limit-color: $text-color !default;
  114. $textarea-text-color: $title-color !default;
  115. $textarea-disabled-color: $disable-color !default;
  116. // inputnumber
  117. $inputnumber-icon-color: $title-color !default;
  118. $inputnumber-icon-void-color: $disable-color !default;
  119. $inputnumber-input-background-color: $help-color !default;
  120. $inputnumber-input-border-radius: 4px !default;
  121. $inputnumber-input-width: 40px !default;
  122. $inputnumber-icon-size: 20px !default;
  123. // actionsheet
  124. $zindex-actionsheet: 10001 !default;
  125. $body-background: #f6f6f6 !default;
  126. $light-color: #f6f6f6 !default;
  127. $font-size-base: $font-size-2 !default;
  128. $font-size-small: $font-size-1 !default;
  129. //shortpassword
  130. $shortpsd-background-color: rgba(245, 245, 245, 1) !default;
  131. $shortpsd-border-color: #ddd !default;
  132. $shortpsd-error: rgba(242, 39, 12, 1) !default;
  133. $shortpsd-forget: rgba(128, 128, 128, 1) !default;
  134. //large price
  135. $price-symbol-big-size: 18px !default;
  136. $price-big-size: 24px !default;
  137. $price-decimal-big-size: 18px !default;
  138. //normal price
  139. $price-symbol-medium-size: 14px !default;
  140. $price-medium-size: 16px !default;
  141. $price-decimal-medium-size: 14px !default;
  142. // small price
  143. $price-symbol-small-size: 10px !default;
  144. $price-small-size: 12px !default;
  145. $price-decimal-small-size: 10px !default;
  146. //avatar
  147. $avatar-square: 5px !default;
  148. $avatar-large-width: 60px !default;
  149. $avatar-large-height: 60px !default;
  150. $avatar-small-width: 32px !default;
  151. $avatar-small-height: 32px !default;
  152. $avatar-normal-width: 40px !default;
  153. $avatar-normal-height: 40px !default;
  154. //switch
  155. $switch-close-bg-color: #ebebeb !default;
  156. $switch-close--cline-bg-color: #f0f0f0 !default;
  157. //backtop
  158. $backtop-border-color: #e0e0e0 !default;
  159. // calendar
  160. $calendar-primary-color: $primary-color !default;
  161. $calendar-choose-color: #fef6f6 !default;
  162. $calendar-base-color: #333333 !default;
  163. $calendar-disable-color: #d1d0d0 !default;
  164. $calendar-title-font: $font-size-4 !default;
  165. $calendar-base-font: $font-size-3 !default;
  166. $calendar-text-font: $font-size-1 !default;
  167. $calendar-day-font: 18px !default;
  168. //overlay
  169. $overlay-bg-color: rgba(0, 0, 0, 0.7) !default;
  170. //popup
  171. $popup-close-icon-margin: 16px !default;
  172. $popup-border-radius: 20px !default;
  173. // Notify
  174. $notify-text-color: $white !default;
  175. $notify-padding: 12px 0 !default;
  176. $notify-font-size: 14px !default;
  177. $notify-height: 44px !default;
  178. $notify-base-background-color: linear-gradient(
  179. 135deg,
  180. rgba(250, 44, 25, 1) 0%,
  181. rgba(250, 63, 25, 1) 45%,
  182. rgba(250, 89, 25, 1) 83%,
  183. rgba(250, 100, 25, 1) 100%
  184. ) !default;
  185. $notify-primary-background-color: linear-gradient(
  186. 315deg,
  187. rgba(73, 143, 242, 1) 0%,
  188. rgba(73, 101, 242, 1) 100%
  189. ) !default;
  190. $notify-success-background-color: linear-gradient(
  191. 135deg,
  192. rgba(38, 191, 38, 1) 0%,
  193. rgba(39, 197, 48, 1) 45%,
  194. rgba(40, 207, 63, 1) 83%,
  195. rgba(41, 212, 70, 1) 100%
  196. ) !default;
  197. $notify-danger-background-color: rgba(250, 50, 25, 1) !default;
  198. $notify-warning-background-color: linear-gradient(135deg, rgba(255, 93, 13, 1) 0%, rgba(255, 154, 13, 1) 100%) !default;
  199. // rate
  200. $rate-icon-color: $primary-color !default;
  201. $rate-icon-void-color: $disable-color !default;
  202. // tabbar
  203. $tabbar-active-color: $primary-color !default;
  204. $tabbar-border-color: #eee !default;
  205. //infiniteloading
  206. $infinite-bottom-color: #c8c8c8 !default;
  207. //range
  208. $range-max: #333333 !default;
  209. $rang-bg-color: rgba($primary-color, 0.5) !default;
  210. $rang-bar-bg-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  211. //address
  212. $address-region-tab-line: linear-gradient(90deg, #f5503a 0%, #fad1cb 100%) !default;
  213. //steps
  214. $step-wait-bg-color: #959fb1 !default;
  215. // dialog
  216. $dialog-width: 296px !default;
  217. // checkbox
  218. $checkbox-label-color: #1d1e1e !default;
  219. $checkbox-label-disable-color: #999 !default;
  220. $checkbox-icon-disable-color: #d6d6d6 !default;
  221. //radio
  222. $radio-label-font-color: #1d1e1e !default;
  223. $radio-label-font-active-color: #f0250f !default;
  224. $radio-label-disable-color: #999 !default;
  225. $radio-icon-disable-color: #d6d6d6 !default;
  226. $radio-label-button-border-color: #f0250f !default;
  227. $radio-label-button-background: rgba(240, 37, 15, 0.05) !default;
  228. //fixednav
  229. $fixednav-bg-color: $white !default;
  230. $fixednav-font-color: $black !default;
  231. $fixednav-index: 201 !default;
  232. $fixednav-btn-bg: linear-gradient(135deg, rgba(250, 25, 44, 1) 0%, rgba(250, 63, 25, 1) 100%) !default;
  233. // NoticeBar
  234. $noticeBar-font-size: 14px !default;
  235. $noticeBar-height: 40px !default;
  236. $noticeBar-line-height: 24px !default;
  237. $noticeBar-left-icon-width: 16px !default;
  238. $noticeBar-right-icon-width: 16px !default;
  239. // TimeSelect
  240. $timeselect-title-font-size: $font-size-2 !default;
  241. $timeselect-title-color: $title-color !default;
  242. $timeselect-pannel-bg-color: #f6f7f9 !default;
  243. // TimePannel
  244. $timepannel-text-color: $title-color2 !default;
  245. $timepannel-font-size: $font-size-2 !default;
  246. $timepannel-cur-bg-color: $white !default;
  247. $timepannel-cur-text-color: #333333 !default;
  248. // TimeDetail
  249. $timedetail-item-bg-color: #f6f7f9 !default;
  250. $timedetail-item-border-radius: 5px !default;
  251. $timedetail-item-text-color: #333333 !default;
  252. $timedetail-item-text-font-size: $font-size-2 !default;
  253. $timedetail-item-cur-bg-color: #fef4f3 !default;
  254. $timedetail-item-cur-border: #f0250f !default;
  255. $timedetail-item-cur-text-color: #f0250f !default;
  256. $timedetail-time-text-color: #999 !default;
  257. $timedetail-time-font-size: $font-size-1 !default;
  258. //tag
  259. $tag-font-size: 12px !default;
  260. $tag-default-border-radius: 4px !default;
  261. $tag-round-border-radius: 8px !default;
  262. $tag-default-background-color: #000000 !default;
  263. $tag-primary-background-color: #3460fa !default;
  264. $tag-success-background-color: #4fc08d !default;
  265. $tag-danger-background-color: linear-gradient(
  266. 135deg,
  267. rgba(242, 20, 12, 1) 0%,
  268. rgba(232, 34, 14, 1) 69.83950099728881%,
  269. rgba(242, 77, 12, 1) 100%
  270. ) !default;
  271. $tag-warning-background-color: #f3812e !default;
  272. $tag-default-color: #ffffff !default;
  273. $tag-border-width: 1px !default;
  274. $tag-plain-background-color: #fff !default;
  275. //badge
  276. $badge-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  277. $badge-font-size: $font-size-1 !default;
  278. $badge-default-background-color: rgba(255, 255, 255, 1) !default;
  279. //popover
  280. $popover-white-background-color: rgba(255, 255, 255, 1) !default;
  281. $popover-dark-background-color: rgba(75, 76, 77, 1) !default;
  282. $popover-border-bottom-color: rgba(229, 229, 229, 1) !default;
  283. $popover-primary-text-color: rgba(51, 51, 51, 1) !default;
  284. $popover-disable-color: rgba(154, 155, 157, 1) !default;
  285. //分页
  286. $pagination-color: $primary-color !default;
  287. $pagination-font-size: $font-size-2 !default;
  288. $pagination-item-border-color: #e4e7eb !default;
  289. $pagination-active-background-color: linear-gradient(
  290. 135deg,
  291. rgba(250, 44, 25, 1) 0%,
  292. rgba(250, 63, 25, 1) 44.59259259%,
  293. rgba(250, 89, 25, 1) 83.40740741%,
  294. rgba(250, 100, 25, 1) 100%
  295. ) !default;
  296. $pagination-disable-color: rgba(116, 116, 116, 0.31) !default;
  297. $pagination-disable-background-color: #f7f8fa !default;
  298. $pagination-item-border-width: 1px !default;
  299. $pagination-item-border-radius: 2px !default;
  300. $pagination-prev-next-padding: 0 11px !default;
  301. // tabs
  302. $tabs-tab-smile-color: $primary-color !default;
  303. $tabs-titles-border-radius: 0 !default;
  304. $tabs-titles-item-large-font-size: $font-size-3 !default;
  305. $tabs-titles-item-font-size: $font-size-2 !default;
  306. $tabs-titles-item-small-font-size: $font-size-1 !default;
  307. $tabs-titles-item-color: $title-color !default;
  308. $tabs-titles-background-color: $help-color !default;
  309. $tabs-horizontal-tab-line-color: linear-gradient(90deg, #f5503a 0%, #fad1cb 100%) !default;
  310. $tabs-horizontal-titles-height: 46px !default;
  311. $tabs-horizontal-titles-item-min-width: 50px !default;
  312. $tabs-horizontal-titles-item-active-line-width: 40px !default;
  313. $tabs-vertical-tab-line-color: linear-gradient(180deg, #f5503a 0%, #fad1cb 100%) !default;
  314. $tabs-vertical-titles-item-height: 40px !default;
  315. $tabs-vertical-titles-item-active-line-height: 14px !default;
  316. $tabs-vertical-titles-width: 100px !default;
  317. // menu
  318. $nut-menu-bar-line-height: 46px !default;
  319. $nut-menu-bar-border-bottom-color: #eaf0fb !default;
  320. $nut-menu-bar-opened-z-index: 2001 !default;
  321. $nut-menu-item-disabled-color: #969799 !default;
  322. $nut-menu-title-text-padding-left: 8px !default;
  323. $nut-menu-title-text-padding-right: 8px !default;
  324. $nut-menu-item-content-padding: 12px 24px !default;
  325. $nut-menu-item-content-max-height: 214px !default;
  326. $nut-menu-item-option-padding-top: 12px !default;
  327. $nut-menu-item-option-padding-bottom: 12px !default;
  328. $nut-menu-item-option-i-margin-right: 6px !default;
  329. // searchbar
  330. $searchbar-background: $white !default;
  331. $searchbar-input-background: #f7f7f7 !default;
  332. $searchbar-right-out-color: $black !default;
  333. // cascader
  334. $nut-cascader-font-size: $font-size-2;
  335. $nut-cascader-line-height: 22px;
  336. $nut-cascader-tabs-item-padding: 0 10px;
  337. $nut-cascader-bar-padding: 24px 20px 17px;
  338. $nut-cascader-bar-font-size: $font-size-4;
  339. $nut-cascader-bar-line-height: 20px;
  340. $nut-cascader-bar-color: $title-color;
  341. $nut-cascader-item-padding: 10px 20px;
  342. $nut-cascader-item-color: $title-color;
  343. $nut-cascader-item-font-size: $font-size-2;
  344. $nut-cascader-item-active-color: $primary-color;
  345. // form
  346. $form-item-error-line-color: $primary-color !default;
  347. $form-item-required-color: $primary-color !default;
  348. $form-item-error-message-color: $primary-color !default;
  349. // sku
  350. $sku-item-border: 1px solid $primary-color;
  351. $sku-item-disable-line: line-through;
  352. $sku-opetate-bg-default: linear-gradient(
  353. 135deg,
  354. rgba(242, 20, 12, 1) 0%,
  355. rgba(242, 39, 12, 1) 70%,
  356. rgba(242, 77, 12, 1) 100%
  357. );
  358. $sku-opetate-bg-buy: linear-gradient(
  359. 135deg,
  360. rgba(255, 186, 13, 1) 0%,
  361. rgba(255, 195, 13, 1) 69%,
  362. rgba(255, 207, 13, 1) 100%
  363. );
  364. // card
  365. $card-font-size-0: $font-size-0;
  366. $card-font-size-1: $font-size-1;
  367. $card-font-size-2: $font-size-2;
  368. $card-font-size-3: $font-size-3;
  369. // grid
  370. $grid-border-color: #f5f6f7 !default;
  371. $grid-item-content-padding: 16px 8px !default;
  372. $grid-item-content-bg-color: $white !default;
  373. $grid-item-text-margin: 8px !default;
  374. $grid-item-text-color: $title-color2 !default;
  375. $grid-item-text-font-size: $font-size-1 !default;
  376. @import './mixins/index';
  377. @import './animation/index';