common.scss 2.2 KB

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