common.scss 1.9 KB

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