graceDark.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* 深色模式适配样式 */
  2. @import "@/custom/theme.scss";
  3. /* #ifndef APP-NVUE */
  4. @media (prefers-color-scheme: dark){
  5. .gui-color-gray{color:rgba(188,188,188,1) !important;}
  6. /* 黑色 */
  7. .gui-dark-bg{background:#000000 !important;}
  8. .gui-dark-bg-level-1{background:$dark-l1 !important;}
  9. .gui-dark-bg-level-2{background:$dark-l2 !important;}
  10. .gui-dark-bg-level-3{background:$dark-l3 !important;}
  11. .gui-dark-bg-level-4{background:$dark-l4 !important;}
  12. .gui-dark-bg-level-5{background:$dark-l5 !important;}
  13. .gui-dark-bg-level-6{background:$dark-l6 !important;}
  14. .gui-dark-bg-level-7{background:$dark-l7 !important;}
  15. .gui-dark-bg-level-8{background:$dark-l8 !important;}
  16. .gui-dark-bg-level-9{background:$dark-l9 !important;}
  17. .gui-dark-bg-level-10{background:$dark-l10 !important;}
  18. /* 白色 */
  19. .gui-dark-text-level-1{color:$white-l1 !important;}
  20. .gui-dark-text-level-2{color:$white-l2 !important;}
  21. .gui-dark-text-level-3{color:$white-l3 !important;}
  22. .gui-dark-text-level-4{color:$white-l4 !important;}
  23. .gui-dark-text-level-5{color:$white-l5 !important;}
  24. .gui-dark-text-level-6{color:$white-l6 !important;}
  25. .gui-dark-text-level-7{color:$white-l7 !important;}
  26. .gui-dark-text-level-8{color:$white-l8 !important;}
  27. .gui-dark-text-level-9{color:$white-l9 !important;}
  28. .gui-dark-text-level-10{color:$white-l10 !important;}
  29. /* 核心文本颜色 */
  30. .gui-primary-text{color:$white-l2;}
  31. .gui-secondary-text{color:$white-l3;}
  32. .gui-third-text{color:$white-l5;}
  33. .gui-primary-color{color:rgba(238,238,238,1) !important;}
  34. .gui-bg-primary{background-color:$dark-l4 !important;}
  35. .gui-color-gray{color:$white-l5 !important;}
  36. /* 页面内置全屏 Loading 背景颜色 */
  37. .gui-page-loading-bg{background-color:$dark-l1 !important;}
  38. /* 页面内置全屏 Loading 颜色 */
  39. .gui-page-loading-color{background-color:$white-l2 !important;}
  40. /* 底部导航 */
  41. .gui-footer{background-color:$dark-l2 !important;}
  42. /* 边框 */
  43. .gui-border,.gui-border-l,.gui-border-t,.gui-border-r,.gui-border-b{
  44. border-color:$dark-l4 !important;
  45. }
  46. .gui-footer{border-top:0px !important;}
  47. /* 默认修正 */
  48. .uni-page-head{background:$dark-l1 !important;}
  49. .uni-page-head-hd, .uni-page-head-bd, .uni-page-head-ft{color:#FFFFFF !important;}
  50. page{background:$dark-l1 !important;}
  51. .gui-button{border-color:$dark-l2;}
  52. /* 提交按钮 */
  53. .gui-sbutton-default{background-color:$dark-l3;}
  54. .gui-sbutton-loading{background-color:$dark-l3; opacity:0.8;}
  55. .gui-sbutton-success{background-color:$dark-l3 !important;}
  56. .gui-sbutton-fail{background-color:$dark-l3 !important;}
  57. .gui-gtbg-black{background-image:linear-gradient(to right, #C8C9CC,#333333) !important;}
  58. .gui-primary-border-color{border-color:#FFFFFF !important;}
  59. /* 步骤 */
  60. .gui-step-text{color:$dark-l8;}
  61. .gui-step-text-active{color:$white-l1 !important;}
  62. .gui-step-icon{background-color:$dark-l3; color:$dark-l8;}
  63. .gui-step-icon-active{color:#000000 !important; background-color:#FFFFFF !important;}
  64. .gui-step-line-active{background-color:$dark-l8 !important;}
  65. }
  66. /* #endif */