main.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. @font-face {
  2. font-family: 'Source Han Sans CN';
  3. src: url('~/assets/fonts/SourceHanSansCN-VF.ttf.woff2') format('woff2');
  4. font-weight: 200 900;
  5. font-style: normal;
  6. font-display: swap;
  7. }
  8. body,
  9. html {
  10. background-color: #030014;
  11. font-family: 'Source Han Sans CN', sans-serif;
  12. }
  13. html,
  14. body,
  15. ul,
  16. li,
  17. ol,
  18. dl,
  19. dd,
  20. dt,
  21. p,
  22. h1,
  23. h2,
  24. h3,
  25. h4,
  26. h5,
  27. h6,
  28. form,
  29. fieldset,
  30. legend,
  31. img {
  32. margin: 0;
  33. padding: 0;
  34. }
  35. fieldset,
  36. img,
  37. input,
  38. button {
  39. /*fieldset组合表单中的相关元素*/
  40. border: none;
  41. padding: 0;
  42. margin: 0;
  43. outline-style: none;
  44. }
  45. ul,
  46. ol {
  47. list-style: none; /*清除列表风格*/
  48. }
  49. input {
  50. padding-top: 0;
  51. padding-bottom: 0;
  52. }
  53. select,
  54. input {
  55. vertical-align: middle;
  56. }
  57. select,
  58. input,
  59. textarea {
  60. font-size: 12px;
  61. margin: 0;
  62. }
  63. textarea {
  64. resize: none;
  65. }
  66. /*防止多行文本框拖动*/
  67. img {
  68. border: 0;
  69. vertical-align: middle;
  70. }
  71. /* 去掉图片低测默认的3像素空白缝隙*/
  72. table {
  73. border-collapse: collapse; /*合并外边线*/
  74. }
  75. .clearfix:before,
  76. .clearfix:after {
  77. content: '';
  78. display: table;
  79. }
  80. .clearfix:after {
  81. clear: both;
  82. }
  83. .clearfix {
  84. *zoom: 1; /*IE/7/6*/
  85. }
  86. h1,
  87. h2,
  88. h3,
  89. h4,
  90. h5,
  91. h6 {
  92. text-decoration: none;
  93. font-weight: normal;
  94. font-size: 100%;
  95. }
  96. s,
  97. i,
  98. em {
  99. font-style: normal;
  100. text-decoration: none;
  101. }