common.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. * {
  2. box-sizing: border-box;
  3. }
  4. #app {
  5. overflow-x: hidden;
  6. text-align: center;
  7. }
  8. body {
  9. overflow-x: hidden;
  10. padding: 0;
  11. margin: 0;
  12. font-family: 'PingFang SC', '微软雅黑', Helvetica, Arial, sans-serif !important;
  13. }
  14. html:not(.zoom-ready) body {
  15. visibility: hidden;
  16. }
  17. // 滚动条风格
  18. .base-html {
  19. ::-webkit-scrollbar {
  20. width: 8px;
  21. height: 8px;
  22. background-color: transparent;
  23. &:hover,
  24. &:active {
  25. width: 10px;
  26. }
  27. }
  28. ::-webkit-scrollbar-track {
  29. background-color: transparent;
  30. }
  31. ::-webkit-scrollbar-thumb {
  32. background-color: rgba(125, 128, 134, 90%);
  33. border-radius: 8px;
  34. &:hover,
  35. &:active {
  36. background-color: rgba(125, 128, 134, 100%);
  37. }
  38. }
  39. }
  40. .pf-sc-semibold {
  41. font-family: 'PingFang SC Semibold';
  42. font-weight: 600;
  43. }
  44. .pf-sc-regular {
  45. font-family: 'PingFang SC-Regular';
  46. font-weight: 400;
  47. }
  48. .pf-sc-medium {
  49. font-family: 'PingFang SC Medium';
  50. font-weight: 500;
  51. }
  52. .pf-sc-light {
  53. font-family: 'PingFang SC Light';
  54. font-weight: 300;
  55. }
  56. @font-face {
  57. font-family: 'D-DIN-PRO-400-Regular';
  58. src: url('/fonts/D-DIN-PRO-400-Regular.woff2') format('woff2');
  59. font-weight: 400;
  60. font-style: normal;
  61. }
  62. @font-face {
  63. font-family: 'D-DIN-PRO-500-Medium';
  64. src: url('/fonts/D-DIN-PRO-500-Medium.woff2') format('woff2');
  65. font-weight: 500;
  66. font-style: normal;
  67. }
  68. @font-face {
  69. font-family: 'D-DIN-PRO-600-SemiBold';
  70. src: url('/fonts/D-DIN-PRO-600-SemiBold.woff2') format('woff2');
  71. font-weight: 600;
  72. font-style: normal;
  73. }
  74. @font-face {
  75. font-family: 'D-DIN-PRO-700-Bold';
  76. src: url('/fonts/D-DIN-PRO-700-Bold.woff2') format('woff2');
  77. font-weight: 700;
  78. font-style: normal;
  79. }
  80. .d-din-pro-400-regular {
  81. font-family: 'D-DIN-PRO-400-Regular';
  82. }
  83. .d-din-pro-500-medium {
  84. font-family: 'D-DIN-PRO-500-Medium';
  85. }
  86. .d-din-pro-600-semibold {
  87. font-family: 'D-DIN-PRO-600-SemiBold';
  88. }
  89. .d-din-pro-700-bold {
  90. font-family: 'D-DIN-PRO-700-Bold';
  91. }
  92. .btn-primary {
  93. @apply bg-gradient-to-r from-[#779EFF] to-[#0A50FF];
  94. border: none;
  95. outline: none;
  96. &:hover {
  97. opacity: 0.8;
  98. }
  99. }