variables.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  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. $font-family: PingFang SC, Microsoft YaHei, Helvetica, Hiragino Sans GB, SimSun, sans-serif !default;
  18. // ---- Animation ----
  19. $animation-duration: 0.25s !default;
  20. $animation-timing-fun: cubic-bezier(0.55, 0.085, 0.68, 0.53) !default;
  21. // Font
  22. $font-size-0: 10px !default;
  23. $font-size-1: 12px !default;
  24. $font-size-2: 14px !default;
  25. $font-size-3: 16px !default;
  26. $font-size-4: 18px !default;
  27. $font-weight-bold: 400 !default;
  28. $font-size-small: $font-size-1 !default;
  29. $font-size-base: $font-size-2 !default;
  30. $font-size-large: $font-size-3 !default;
  31. $line-height-base: 1.5 !default;
  32. // button
  33. $button-border-radius: 25px !default;
  34. $button-border-width: 1px !default;
  35. $button-default-bg-color: $white !default;
  36. $button-default-border-color: rgba(204, 204, 204, 1) !default;
  37. $button-default-color: rgba(102, 102, 102, 1) !default;
  38. $button-default-padding: 0 18px !default;
  39. $button-mini-padding: 0 12px !default;
  40. $button-small-padding: 0 12px !default;
  41. $button-small-height: 28px !default;
  42. $button-mini-height: 24px !default;
  43. $button-default-height: 38px !default;
  44. $button-large-height: 48px !default;
  45. $button-large-line-height: 46px !default;
  46. $button-small-line-height: 26px !default;
  47. $button-block-height: 48px !default;
  48. $button-default-line-height: 36px !default;
  49. $button-block-line-height: 46px !default;
  50. $button-default-font-size: $font-size-2 !default;
  51. $button-small-font-size: $font-size-1 !default;
  52. $button-mini-font-size: $font-size-1 !default;
  53. $button-disabled-opacity: 0.68 !default;
  54. $button-primary-color: $white !default;
  55. $button-primary-border-color: $primary-color !default;
  56. $button-primary-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  57. $button-info-color: $white !default;
  58. $button-info-border-color: rgba(73, 106, 242, 1) !default;
  59. $button-info-background-color: linear-gradient(315deg, rgba(73, 143, 242, 1) 0%, rgba(73, 101, 242, 1) 100%) !default;
  60. $button-success-color: $white !default;
  61. $button-success-border-color: rgba(38, 191, 38, 1) !default;
  62. $button-success-background-color: linear-gradient(
  63. 135deg,
  64. rgba(38, 191, 38, 1) 0%,
  65. rgba(39, 197, 48, 1) 45%,
  66. rgba(40, 207, 63, 1) 83%,
  67. rgba(41, 212, 70, 1) 100%
  68. ) !default;
  69. $button-danger-color: $white !default;
  70. $button-danger-border-color: rgba(250, 44, 25, 1) !default;
  71. $button-danger-background-color: rgba(250, 44, 25, 1) !default;
  72. $button-warning-color: $white !default;
  73. $button-warning-border-color: rgba(255, 158, 13, 1) !default;
  74. $button-warning-background-color: linear-gradient(
  75. 135deg,
  76. rgba(255, 158, 13, 1) 0%,
  77. rgba(255, 167, 13, 1) 45%,
  78. rgba(255, 182, 13, 1) 83%,
  79. rgba(255, 190, 13, 1) 100%
  80. ) !default;
  81. $button-plain-background-color: #fff !default;
  82. $button-plain-background-color: $white !default;
  83. // cell
  84. $cell-color: $title-color2 !default;
  85. $cell-title-font: $font-size-2 !default;
  86. $cell-title-desc-font: $font-size-1 !default;
  87. $cell-desc-font: $font-size-2 !default;
  88. $cell-desc-color: $disable-color !default;
  89. $cell-border-radius: 6px !default;
  90. $cell-padding: 13px 16px !default;
  91. $cell-line-height: 20px !default;
  92. $cell-after-right: 16px !default;
  93. $cell-after-border-bottom: 2px solid #f5f6f7 !default;
  94. // cell-group
  95. $cell-group-title-padding: 0 10px !default;
  96. $cell-group-title-color: #909ca4 !default;
  97. $cell-group-title-font-size: $font-size-2 !default;
  98. $cell-group-title-line-height: 20px !default;
  99. $cell-group-desc-padding: 0 10px !default;
  100. $cell-group-desc-color: #909ca4 !default;
  101. $cell-group-desc-font-size: $font-size-1 !default;
  102. $cell-group-desc-line-height: 16px !default;
  103. $cell-group-background-color: $white !default;
  104. // icon
  105. $icon-height: 20px !default;
  106. $icon-width: 20px !default;
  107. $icon-line-height: 20px !default;
  108. // uploader
  109. $uploader-picture-width: 100px !default;
  110. $uploader-picture-height: 100px !default;
  111. $uploader-background: #f7f8fa !default;
  112. // picker
  113. $picker-cancel-color: $primary-color !default;
  114. //input
  115. $input-border-bottom: #eaf0fb !default;
  116. $input-disabled-color: #c8c9cc !default;
  117. $input-require-color: $primary-color !default;
  118. $input-font-size: $font-size-2 !default;
  119. // textarea
  120. $textarea-font: $font-size-2 !default;
  121. $textarea-height: 100px !default;
  122. $textarea-limit-color: $text-color !default;
  123. $textarea-text-color: $title-color !default;
  124. $textarea-disabled-color: $disable-color !default;
  125. // inputnumber
  126. $inputnumber-icon-color: $title-color !default;
  127. $inputnumber-icon-void-color: $disable-color !default;
  128. $inputnumber-input-background-color: $help-color !default;
  129. $inputnumber-input-border-radius: 4px !default;
  130. $inputnumber-input-width: 40px !default;
  131. $inputnumber-icon-size: 20px !default;
  132. // actionsheet
  133. $actionsheet-light-color: #f6f6f6 !default;
  134. $actionsheet-item-border-bottom: none !default;
  135. $actionsheet-item-font-size: $font-size-2 !default;
  136. $actionsheet-item-subdesc-font-size: $font-size-1 !default;
  137. $actionsheet-item-cancel-border-top: 1px solid $actionsheet-light-color !default;
  138. $actionsheet-item-line-height: 24px !default;
  139. $actionsheet-item-font-color: $title-color !default;
  140. //shortpassword
  141. $shortpassword-background-color: rgba(245, 245, 245, 1) !default;
  142. $shortpassword-border-color: #ddd !default;
  143. $shortpassword-error: $primary-color !default;
  144. $shortpassword-forget: rgba(128, 128, 128, 1) !default;
  145. //large price
  146. $price-symbol-big-size: 18px !default;
  147. $price-big-size: 24px !default;
  148. $price-decimal-big-size: 18px !default;
  149. //normal price
  150. $price-symbol-medium-size: 14px !default;
  151. $price-medium-size: 16px !default;
  152. $price-decimal-medium-size: 14px !default;
  153. // small price
  154. $price-symbol-small-size: 10px !default;
  155. $price-small-size: 12px !default;
  156. $price-decimal-small-size: 10px !default;
  157. //avatar
  158. $avatar-square: 5px !default;
  159. $avatar-large-width: 60px !default;
  160. $avatar-large-height: 60px !default;
  161. $avatar-small-width: 32px !default;
  162. $avatar-small-height: 32px !default;
  163. $avatar-normal-width: 40px !default;
  164. $avatar-normal-height: 40px !default;
  165. //switch
  166. $switch-close-bg-color: #ebebeb !default;
  167. $switch-close--cline-bg-color: #f0f0f0 !default;
  168. $switch-width: 36px !default;
  169. $switch-height: 21px !default;
  170. $switch-line-height: 21px !default;
  171. $switch-border-radius: 21px !default;
  172. $switch-inside-width: 13px !default;
  173. $switch-inside-height: 13px !default;
  174. $switch-inside-open-transform: translateX(146%) !default;
  175. $switch-inside-close-transform: translateX(30%) !default;
  176. // toast
  177. $toast-title-font-size: 16px !default;
  178. $toast-text-font-size: 14px !default;
  179. $toast-font-color: $white !default;
  180. $toast-inner-padding: 24px 30px !default;
  181. $toast-inner-bg-color: rgba(0, 0, 0, 0.8) !default;
  182. $toast-inner-border-radius: 12px !default;
  183. $toast-cover-bg-color: rgba(0, 0, 0, 0) !default;
  184. //backtop
  185. $backtop-border-color: #e0e0e0 !default;
  186. // calendar
  187. $calendar-primary-color: $primary-color !default;
  188. $calendar-choose-color: #fef6f6 !default;
  189. $calendar-base-color: #333333 !default;
  190. $calendar-disable-color: #d1d0d0 !default;
  191. $calendar-title-font: $font-size-4 !default;
  192. $calendar-base-font: $font-size-3 !default;
  193. $calendar-text-font: $font-size-1 !default;
  194. $calendar-day-font: 16px !default;
  195. //overlay
  196. $overlay-bg-color: rgba(0, 0, 0, 0.7) !default;
  197. //popup
  198. $popup-close-icon-margin: 16px !default;
  199. $popup-border-radius: 20px !default;
  200. // Notify
  201. $notify-text-color: $white !default;
  202. $notify-padding: 12px 0 !default;
  203. $notify-font-size: 14px !default;
  204. $notify-height: 44px !default;
  205. $notify-line-height: auto !default;
  206. $notify-base-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  207. $notify-primary-background-color: linear-gradient(
  208. 315deg,
  209. rgba(73, 143, 242, 1) 0%,
  210. rgba(73, 101, 242, 1) 100%
  211. ) !default;
  212. $notify-success-background-color: linear-gradient(
  213. 135deg,
  214. rgba(38, 191, 38, 1) 0%,
  215. rgba(39, 197, 48, 1) 45%,
  216. rgba(40, 207, 63, 1) 83%,
  217. rgba(41, 212, 70, 1) 100%
  218. ) !default;
  219. $notify-danger-background-color: rgba(250, 50, 25, 1) !default;
  220. $notify-warning-background-color: linear-gradient(135deg, rgba(255, 93, 13, 1) 0%, rgba(255, 154, 13, 1) 100%) !default;
  221. // rate
  222. $rate-icon-color: $primary-color !default;
  223. $rate-icon-void-color: $disable-color !default;
  224. // tabbar
  225. $tabbar-active-color: $primary-color !default;
  226. $tabbar-border-color: #eee !default;
  227. //infiniteloading
  228. $infiniteloading-bottom-color: #c8c8c8 !default;
  229. //range
  230. $range-tip-font-color: #333333 !default;
  231. $range-bg-color: rgba($primary-color, 0.5) !default;
  232. $range-bar-bg-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  233. $range-bar-btn-bg-color: $white !default;
  234. $range-bar-btn-width: 24px !default;
  235. $range-bar-btn-height: 24px !default;
  236. $range-bar-btn-border: 1px solid $primary-color !default;
  237. //swiper
  238. $swiper-pagination-item-width: 8px !default;
  239. $swiper-pagination-item-height: 3px !default;
  240. $swiper-pagination-item-margin-right: 7px !default;
  241. $swiper-pagination-item-border-radius: 2px !default;
  242. //address
  243. $address-region-tab-line: linear-gradient(90deg, $primary-color 0%, rgba($primary-color, 0.15) 100%) !default;
  244. $address-icon-color: $primary-color !default;
  245. //steps
  246. $step-wait-bg-color: #959fb1 !default;
  247. // dialog
  248. $dialog-width: 296px !default;
  249. // checkbox
  250. $checkbox-label-color: #1d1e1e !default;
  251. $checkbox-label-disable-color: #999 !default;
  252. $checkbox-icon-disable-color: #d6d6d6 !default;
  253. //radio
  254. $radio-label-font-color: #1d1e1e !default;
  255. $radio-label-font-active-color: $primary-color !default;
  256. $radio-label-disable-color: #999 !default;
  257. $radio-icon-disable-color: #d6d6d6 !default;
  258. $radio-label-button-border-color: $primary-color !default;
  259. $radio-label-button-background: rgba($primary-color, 0.05) !default;
  260. //fixednav
  261. $fixednav-bg-color: $white !default;
  262. $fixednav-font-color: $black !default;
  263. $fixednav-index: 201 !default;
  264. $fixednav-btn-bg: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  265. // NoticeBar
  266. $noticebar-font-size: 14px !default;
  267. $noticebar-height: 40px !default;
  268. $noticebar-line-height: 24px !default;
  269. $noticebar-left-icon-width: 16px !default;
  270. $noticebar-right-icon-width: 16px !default;
  271. // TimeSelect
  272. $timeselect-title-font-size: $font-size-2 !default;
  273. $timeselect-title-color: $title-color !default;
  274. $timeselect-pannel-bg-color: #f6f7f9 !default;
  275. // TimePannel
  276. $timepannel-text-color: $title-color2 !default;
  277. $timepannel-font-size: $font-size-2 !default;
  278. $timepannel-cur-bg-color: $white !default;
  279. $timepannel-cur-text-color: #333333 !default;
  280. // TimeDetail
  281. $timedetail-item-bg-color: #f6f7f9 !default;
  282. $timedetail-item-border-radius: 5px !default;
  283. $timedetail-item-text-color: #333333 !default;
  284. $timedetail-item-text-font-size: $font-size-2 !default;
  285. $timedetail-item-cur-bg-color: rgba($primary-color, 0.15) !default;
  286. $timedetail-item-cur-border: $primary-color !default;
  287. $timedetail-item-cur-text-color: $primary-color !default;
  288. $timedetail-time-text-color: #999 !default;
  289. $timedetail-time-font-size: $font-size-1 !default;
  290. //tag
  291. $tag-font-size: 12px !default;
  292. $tag-default-border-radius: 4px !default;
  293. $tag-round-border-radius: 8px !default;
  294. $tag-default-background-color: #000000 !default;
  295. $tag-primary-background-color: #3460fa !default;
  296. $tag-success-background-color: #4fc08d !default;
  297. $tag-danger-background-color: linear-gradient(
  298. 135deg,
  299. rgba(242, 20, 12, 1) 0%,
  300. rgba(232, 34, 14, 1) 69.83950099728881%,
  301. rgba(242, 77, 12, 1) 100%
  302. ) !default;
  303. $tag-warning-background-color: #f3812e !default;
  304. $tag-default-color: #ffffff !default;
  305. $tag-border-width: 1px !default;
  306. $tag-plain-background-color: #fff !default;
  307. //badge
  308. $badge-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  309. $badge-font-size: $font-size-1 !default;
  310. $badge-default-background-color: rgba(255, 255, 255, 1) !default;
  311. //popover
  312. $popover-white-background-color: rgba(255, 255, 255, 1) !default;
  313. $popover-dark-background-color: rgba(75, 76, 77, 1) !default;
  314. $popover-border-bottom-color: rgba(229, 229, 229, 1) !default;
  315. $popover-primary-text-color: rgba(51, 51, 51, 1) !default;
  316. $popover-disable-color: rgba(154, 155, 157, 1) !default;
  317. //progress
  318. $progress-inner-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  319. $progress-insidetext-background: $primary-color !default;
  320. //pagination
  321. $pagination-color: $primary-color !default;
  322. $pagination-font-size: $font-size-2 !default;
  323. $pagination-item-border-color: #e4e7eb !default;
  324. $pagination-active-background-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%) !default;
  325. $pagination-disable-color: rgba(116, 116, 116, 0.31) !default;
  326. $pagination-disable-background-color: #f7f8fa !default;
  327. $pagination-item-border-width: 1px !default;
  328. $pagination-item-border-radius: 2px !default;
  329. $pagination-prev-next-padding: 0 11px !default;
  330. // tabs
  331. $tabs-tab-smile-color: $primary-color !default;
  332. $tabs-titles-border-radius: 0 !default;
  333. $tabs-titles-item-large-font-size: $font-size-3 !default;
  334. $tabs-titles-item-font-size: $font-size-2 !default;
  335. $tabs-titles-item-small-font-size: $font-size-1 !default;
  336. $tabs-titles-item-color: $title-color !default;
  337. $tabs-titles-background-color: $help-color !default;
  338. $tabs-horizontal-tab-line-color: linear-gradient(90deg, $primary-color 0%, rgba($primary-color, 0.15) 100%) !default;
  339. $tabs-horizontal-titles-height: 46px !default;
  340. $tabs-horizontal-titles-item-min-width: 50px !default;
  341. $tabs-horizontal-titles-item-active-line-width: 40px !default;
  342. $tabs-vertical-tab-line-color: linear-gradient(180deg, $primary-color 0%, rgba($primary-color, 0.15) 100%) !default;
  343. $tabs-vertical-titles-item-height: 40px !default;
  344. $tabs-vertical-titles-item-active-line-height: 14px !default;
  345. $tabs-vertical-titles-width: 100px !default;
  346. // indicator
  347. $indicator-color: $primary-color !default;
  348. $indicator-dot-color: $disable-color !default;
  349. $indicator-white: $white !default;
  350. $indicator-size: 18px !default;
  351. $indicator-dot-size: $indicator-size / 3 !default;
  352. $indicator-border-size: $indicator-size + 2 !default;
  353. // menu
  354. $menu-bar-line-height: 46px !default;
  355. $menu-item-active-text-color: $primary-color !default;
  356. $menu-bar-border-bottom-color: #eaf0fb !default;
  357. $menu-bar-opened-z-index: 2001 !default;
  358. $menu-item-disabled-color: #969799 !default;
  359. $menu-title-text-padding-left: 8px !default;
  360. $menu-title-text-padding-right: 8px !default;
  361. $menu-item-content-padding: 12px 24px !default;
  362. $menu-item-content-max-height: 214px !default;
  363. $menu-item-option-padding-top: 12px !default;
  364. $menu-item-option-padding-bottom: 12px !default;
  365. $menu-item-option-i-margin-right: 6px !default;
  366. // searchbar
  367. $searchbar-background: $white !default;
  368. $searchbar-input-background: #f7f7f7 !default;
  369. $searchbar-right-out-color: $black !default;
  370. // empty
  371. $empty-padding: 32px 0 !default;
  372. $empty-image-size: 170px !default;
  373. $empty-description-margin-top: 4px !default;
  374. $empty-description-color: #666666 !default;
  375. $empty-description-font-size: 14px !default;
  376. $empty-description-line-height: 20px !default;
  377. $empty-description-padding: 0 40px !default;
  378. // cascader
  379. $cascader-font-size: $font-size-2 !default;
  380. $cascader-line-height: 22px !default;
  381. $cascader-tabs-item-padding: 0 10px !default;
  382. $cascader-bar-padding: 24px 20px 17px !default;
  383. $cascader-bar-font-size: $font-size-4 !default;
  384. $cascader-bar-line-height: 20px !default;
  385. $cascader-bar-color: $title-color !default;
  386. $cascader-item-padding: 10px 20px !default;
  387. $cascader-item-color: $title-color !default;
  388. $cascader-item-font-size: $font-size-2 !default;
  389. $cascader-item-active-color: $primary-color !default;
  390. // form
  391. $form-item-error-line-color: $primary-color !default;
  392. $form-item-required-color: $primary-color !default;
  393. $form-item-error-message-color: $primary-color !default;
  394. // sku
  395. $sku-item-border: 1px solid $primary-color !default;
  396. $sku-item-disable-line: line-through !default;
  397. $sku-opetate-bg-default: linear-gradient(90deg, $primary-color, $primary-color-end 100%) !default;
  398. $sku-item-active-bg: rgba($primary-color, 0.15) !default;
  399. $sku-opetate-bg-buy: linear-gradient(
  400. 135deg,
  401. rgba(255, 186, 13, 1) 0%,
  402. rgba(255, 195, 13, 1) 69%,
  403. rgba(255, 207, 13, 1) 100%
  404. ) !default;
  405. // card
  406. $card-font-size-0: $font-size-0 !default;
  407. $card-font-size-1: $font-size-1 !default;
  408. $card-font-size-2: $font-size-2 !default;
  409. $card-font-size-3: $font-size-3 !default;
  410. // grid
  411. $grid-border-color: #f5f6f7 !default;
  412. $grid-item-content-padding: 16px 8px !default;
  413. $grid-item-content-bg-color: $white !default;
  414. $grid-item-text-margin: 8px !default;
  415. $grid-item-text-color: $title-color2 !default;
  416. $grid-item-text-font-size: $font-size-1 !default;
  417. // table
  418. $table-border-color: #ececec !default;
  419. $table-cols-padding: 10px !default;
  420. $table-tr-even-bg-color: #f3f3f3 !default;
  421. $table-tr-odd-bg-color: $white !default;
  422. // sidenavbar
  423. $sidenavbar-content-bg-color: $white !default;
  424. // subsidenavbar
  425. $subsidenavbar-title-border-color: #f6f6f6 !default;
  426. $subsidenavbar-title-bg-color: #f6f6f6 !default;
  427. // sidenavbaritem
  428. $sidenavbaritem-title-color: $white !default;
  429. // elevator
  430. $elevator-list-item-highcolor: $primary-color !default;
  431. @import './mixins/index';
  432. @import './animation/index';