common.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. * {
  2. box-sizing: border-box;
  3. }
  4. // 响应式容器:1440-1920 之间动态缩小 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. // 滚动条风格
  19. .base-html {
  20. ::-webkit-scrollbar {
  21. width: 8px;
  22. height: 8px;
  23. background-color: transparent;
  24. &:hover,
  25. &:active {
  26. width: 10px;
  27. }
  28. }
  29. ::-webkit-scrollbar-track {
  30. background-color: transparent;
  31. }
  32. ::-webkit-scrollbar-thumb {
  33. background-color: rgba(125, 128, 134, 90%);
  34. border-radius: 8px;
  35. &:hover,
  36. &:active {
  37. background-color: rgba(125, 128, 134, 100%);
  38. }
  39. }
  40. }
  41. .pf-sc-semibold {
  42. font-family: 'PingFang SC Semibold';
  43. font-weight: 600;
  44. }
  45. .pf-sc-regular {
  46. font-family: 'PingFang SC-Regular';
  47. font-weight: 400;
  48. }
  49. .pf-sc-medium {
  50. font-family: 'PingFang SC Medium';
  51. font-weight: 500;
  52. }
  53. .pf-sc-light {
  54. font-family: 'PingFang SC Light';
  55. font-weight: 300;
  56. }
  57. @font-face {
  58. font-family: 'D-DIN-PRO-400-Regular';
  59. src: url('/fonts/D-DIN-PRO-400-Regular.woff2') format('woff2');
  60. font-weight: 400;
  61. font-style: normal;
  62. }
  63. @font-face {
  64. font-family: 'D-DIN-PRO-500-Medium';
  65. src: url('/fonts/D-DIN-PRO-500-Medium.woff2') format('woff2');
  66. font-weight: 500;
  67. font-style: normal;
  68. }
  69. @font-face {
  70. font-family: 'D-DIN-PRO-600-SemiBold';
  71. src: url('/fonts/D-DIN-PRO-600-SemiBold.woff2') format('woff2');
  72. font-weight: 600;
  73. font-style: normal;
  74. }
  75. @font-face {
  76. font-family: 'D-DIN-PRO-700-Bold';
  77. src: url('/fonts/D-DIN-PRO-700-Bold.woff2') format('woff2');
  78. font-weight: 700;
  79. font-style: normal;
  80. }
  81. .d-din-pro-400-regular {
  82. font-family: 'D-DIN-PRO-400-Regular';
  83. }
  84. .d-din-pro-500-medium {
  85. font-family: 'D-DIN-PRO-500-Medium';
  86. }
  87. .d-din-pro-600-semibold {
  88. font-family: 'D-DIN-PRO-600-SemiBold';
  89. }
  90. .d-din-pro-700-bold {
  91. font-family: 'D-DIN-PRO-700-Bold';
  92. }