_theme.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /***********************************************皮肤颜色: 默认未支付宝方案,完全不要老的皮肤方案了***************************************************************/
  2. // 默认色调方案:由于theme-name 需要dom加载完才能生效,但css优先JS,所以需要一个默认的无需命名空间的皮肤
  3. @each $key, $value in $alipay-color-colorMap {
  4. .c-#{$key} {
  5. color: $value !important;
  6. }
  7. .btn-#{$key} {
  8. background: $value !important;
  9. color: #fff !important;
  10. }
  11. .bg-#{$key} {
  12. background-color: $value !important;
  13. }
  14. .border-#{$key} {
  15. border: 1px solid $value !important;
  16. }
  17. }
  18. //带皮肤的色调方案
  19. @each $theme-opt in $theme-colors {
  20. $theme-name: nth($theme-opt, 1);
  21. $theme-color: nth($theme-opt, 2);
  22. $colorMap: nth($theme-opt, 3);
  23. #{$theme-namespace}-#{$theme-name} {
  24. // 不同皮肤下的主色调
  25. @each $key, $value in $colorMap {
  26. .c-#{$key} {
  27. color: $value !important;
  28. }
  29. .btn-#{$key} {
  30. background: $value !important;
  31. color: #fff !important;
  32. }
  33. .bg-#{$key} {
  34. background-color: $value !important;
  35. }
  36. .border-#{$key} {
  37. border: 1px solid $value !important;
  38. }
  39. }
  40. //页面翻页插件样式
  41. .sl-ld-ball:first-of-type {
  42. background: rgba($theme-color, .8) !important;
  43. }
  44. .sl-ld-ball:nth-of-type(2) {
  45. background: rgba($theme-color, .3) !important;
  46. }
  47. // 公共弹窗 msgPopup 的按钮颜色
  48. .popup-button {
  49. color: $theme-color;
  50. }
  51. .custom-subt input[type='button'] {
  52. background-color: $theme-color;
  53. }
  54. /**登录、等界面按钮*/
  55. .subt input[type='button'] {
  56. background-color: $theme-color;
  57. }
  58. .subt a {
  59. color: $theme-color;
  60. border: 1px solid $theme-color;
  61. }
  62. .custom-btn-primary, .custom-btn-primary:active {
  63. background-color: $theme-color;
  64. }
  65. // 验证码
  66. .input-row.code button[type="button"] {
  67. background-color: $theme-color;
  68. }
  69. /**mui 日期选择*/
  70. .mui-poppicker-btn-ok,
  71. .mui-dtpicker-header button[data-id='btn-ok'] {
  72. color: $theme-color;
  73. }
  74. /**mui按钮*/
  75. .mui-btn-primary:enabled:active {
  76. border: 1px solid $theme-color;
  77. background-color: $theme-color;
  78. }
  79. .mui-btn-outlined.mui-btn-primary {
  80. color: $theme-color;
  81. border: 1px solid $theme-color;
  82. }
  83. .mui-checkbox input[type=checkbox]:checked:before,
  84. .mui-radio input[type=radio]:checked:before {
  85. color: $theme-color;
  86. }
  87. .mui-popup-button {
  88. color: $theme-color;
  89. }
  90. .mui-popup-button.mui-popup-button-bold {
  91. color: $theme-color;
  92. }
  93. .mui-bar-tab .mui-tab-item.mui-active {
  94. color: $theme-color;
  95. }
  96. .mui-switch.mui-active {
  97. border-color: rgba($theme-color, .7);
  98. background-color: rgba($theme-color, .7);
  99. }
  100. }
  101. }