_theme_dealer.scss 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. @each $theme-opt in $theme-colors {
  2. $theme-name: nth($theme-opt, 1);
  3. $theme-color: nth($theme-opt, 2);
  4. $colorMap: nth($theme-opt, 3);
  5. $orangeColor: map-get($colorMap, 'orange');
  6. $redColor: map-get($colorMap, 'red');
  7. $greenColor: map-get($colorMap, 'green');
  8. #{$theme-namespace}-#{$theme-name} {
  9. .c-primary-border {
  10. border-color: $theme-color !important;
  11. }
  12. .switch.active {
  13. border-color: rgba($theme-color, 1);
  14. background-color: rgba($theme-color, 1);
  15. }
  16. /**主页**/
  17. .index-hd {
  18. // #1B82D2 为支付宝基金纯色背景,#108EE9为主题色
  19. // 方案1,支付宝色当前:#108EE9-#1481D0,比较接近
  20. //background-image: linear-gradient(540deg, darken(desaturate($theme-color, 0%), 0%) 0%, darken(desaturate($theme-color, 5%), 4%) 99%);
  21. // 方案2
  22. background-image: linear-gradient(540deg, lighten(saturate($theme-color, 2%), 2%) 0%, darken(desaturate($theme-color, 5%), 4%) 99%);
  23. }
  24. // 说明:支付宝蓝色风格颜色微调都没啥问题,能看;绿色微信风格感觉不太好看;金色的问题比较大,颜色太浅白色的字就看不到;是否要做if判断处理
  25. .index-hd .hd-cell {
  26. background-color: lighten(saturate($theme-color, 0%), 2%);
  27. }
  28. .tip-info, .help {
  29. color: darken($theme-color, 10%);
  30. background-color: lighten($theme-color, 20%);
  31. box-shadow: 0 0 4px darken($theme-color, 10%);
  32. }
  33. .index-hd .mui-table-cell ~ .mui-table-cell:before {
  34. //支付宝基金的分割线颜色#8CCCF5,当前27%亮度颜色##8ccaf7,基本相等
  35. background-color: lighten($theme-color, 27%);
  36. }
  37. .help-card .help-close {
  38. color: $theme-color;
  39. }
  40. .index-tip .service-link {
  41. color: $theme-color;
  42. }
  43. // 其他颜色index-hd
  44. .index-hd-red {
  45. background-image: linear-gradient(540deg, lighten(saturate($redColor, 2%), 2%) 0%, darken(desaturate($redColor, 5%), 4%) 99%);
  46. }
  47. .index-hd-red .hd-cell {
  48. background-color: lighten(saturate($redColor, 0%), 2%);
  49. }
  50. .index-hd-red .mui-table-cell ~ .mui-table-cell:before {
  51. background-color: lighten($redColor, 27%);
  52. }
  53. .index-hd-green {
  54. background-image: linear-gradient(540deg, lighten(saturate($greenColor, 2%), 2%) 0%, darken(desaturate($greenColor, 5%), 4%) 99%);
  55. }
  56. .index-hd-green .hd-cell {
  57. background-color: lighten(saturate($greenColor, 0%), 2%);
  58. }
  59. .index-hd-green .mui-table-cell ~ .mui-table-cell:before {
  60. background-color: lighten($greenColor, 8%);
  61. }
  62. //经营统计
  63. .incomeTypeList.mui-button-row .mui-btn.active {
  64. color: $redColor;
  65. border-color: $redColor;
  66. }
  67. .consumeTypeList.mui-button-row .mui-btn.active {
  68. color: $greenColor;
  69. border-color: $greenColor;
  70. }
  71. /**上分套餐选择**/
  72. .device-para-row {
  73. color: $theme-color;
  74. }
  75. .device-para-grid .para-item.active2 {
  76. background: $theme-color;
  77. border-color: $theme-color;
  78. }
  79. /*设备注册*/
  80. .reg-bd .mui-row .mui-inline.active {
  81. background-color: $theme-color;
  82. }
  83. .reg-bd .option-list .option-list-item a.active {
  84. background-color: $theme-color;
  85. }
  86. .reg-bd .option-list .option-list-item a.option {
  87. color: $theme-color;
  88. }
  89. .reg-bd .option-list .option-list-item input {
  90. color: $theme-color;
  91. }
  92. /*设备流量卡管理按钮*/
  93. .charge-list .handle-panel .charge-btn {
  94. background-color: $theme-color;
  95. }
  96. /*类型快速选择,简易的tab标签*/
  97. .btn-outlined-check.active {
  98. border: 1px solid $theme-color;
  99. color: $theme-color;
  100. }
  101. /**用户管理*/
  102. .consuming-record .handle-panel .send-btn {
  103. background-color: $theme-color;
  104. }
  105. .consuming-record .handle-panel .record-btn {
  106. color: $theme-color;
  107. }
  108. /*mui切换页*/
  109. //这个样式在远程上分,套餐上分 远程充卡 可以切换!
  110. .mui-segmented-control {
  111. border: 1px solid $theme-color;
  112. }
  113. .mui-segmented-control .mui-control-item {
  114. color: $theme-color;
  115. border-color: $theme-color;
  116. }
  117. .mui-segmented-control .mui-control-item.mui-active {
  118. background-color: $theme-color;
  119. color: #fff;
  120. }
  121. .mui-segmented-control.mui-segmented-control-inverted {
  122. border: 0;
  123. }
  124. .mui-segmented-control.mui-segmented-control-inverted .mui-control-item {
  125. border: 0
  126. }
  127. .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
  128. color: $theme-color;
  129. border-bottom: 2px solid $theme-color;
  130. background: 0 0
  131. }
  132. .mui-segmented-control.mui-segmented-control-inverted ~ .mui-slider-progress-bar {
  133. background-color: $theme-color
  134. }
  135. #leftContents .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
  136. border-left: 3px solid $theme-color;
  137. }
  138. /**日期快速选择*/
  139. .datepicker .mui-button-row .mui-btn.active {
  140. color: $theme-color;
  141. border-color: $theme-color;
  142. }
  143. /**weui***/
  144. #weui-picker-confirm {
  145. color: $theme-color !important;
  146. }
  147. .theme-gold .mui-btn-block.disabled, .theme-gold .mui-btn-block.disabled:active {
  148. background-color: rgba($theme-color, .6) !important;
  149. }
  150. .total-mark {
  151. background-color: $theme-color;
  152. border: 1px $theme-color solid;
  153. }
  154. /**过滤器**/
  155. .active.filter-btn, .active.in-row-btn {
  156. color: $theme-color;
  157. }
  158. .active.filter-btn .icon-triangle-up, .active.in-row-btn .icon-triangle-up {
  159. color: $theme-color;
  160. }
  161. .filter-panel-btn .ok-btn {
  162. background: $theme-color;
  163. }
  164. .filter-panel-btn .cancel-btn {
  165. color: $theme-color;
  166. background-color: rgba($theme-color, .1)
  167. }
  168. .or-order-status input[type=radio]:checked:before {
  169. color: $theme-color;
  170. }
  171. .common-model-tit a {
  172. color: $theme-color;
  173. }
  174. .common-model-close {
  175. background: $theme-color;
  176. }
  177. .date-popover-modal .btn-list .handle-btn.active {
  178. border-bottom: 1px solid $theme-color;
  179. }
  180. /**日期范围选择器*/
  181. .date-popover-modal .btn-list .handle-btn.active .label-text {
  182. color: $theme-color;
  183. }
  184. .calendar-date .item-selected {
  185. background: $theme-color;
  186. }
  187. .calendar-date .item-curDay {
  188. color: $theme-color;
  189. }
  190. .date-popover-modal .ok-btn {
  191. background: $theme-color;
  192. }
  193. .income-panel.chart-active .icon-chart-pie {
  194. color: $theme-color;
  195. }
  196. .income-time .icon-chart-line.active {
  197. color: $theme-color;
  198. }
  199. .income-panel .head-status .mui-btn {
  200. background: $theme-color;
  201. }
  202. .edit-content input[type=submit] {
  203. color: $theme-color !important;
  204. }
  205. /**测试页面**/
  206. .test-fixed-btn {
  207. border: 1px solid $theme-color;
  208. }
  209. }
  210. }