wujingjing
2025-02-12 9b3c556251698578e0f43e4d4d82f72d22a757bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@use 'common/var' as *;
@use 'mixins/function.scss' as *;
 
body {
  font-family: Inter, 'Helvetica Neue', Helvetica, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  font-weight: 400;
  font-size: getCssVar('font-size', 'base');
  color: getCssVar('text-color', 'primary');
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
 
input,
textarea,
button {
  font-family: inherit;
}
 
a {
  color: getCssVar('color', 'primary');
  text-decoration: none;
 
  &:hover,
  &:focus {
    color: getCssVar('color-primary', 'light-3');
  }
 
  &:active {
    color: getCssVar('color-primary', 'dark-2');
  }
}
 
h1,
h2,
h3,
h4,
h5,
h6 {
  color: getCssVar('text-color', 'regular');
  font-weight: inherit;
 
  &:first-child {
    margin-top: 0;
  }
 
  &:last-child {
    margin-bottom: 0;
  }
}
 
h1 {
  font-size: calc(getCssVar('font-size', 'base') + 6px);
}
 
h2 {
  font-size: calc(getCssVar('font-size', 'base') + 4px);
}
 
h3 {
  font-size: calc(getCssVar('font-size', 'base') + 2px);
}
 
h4,
h5,
h6,
p {
  font-size: inherit;
}
 
p {
  line-height: 1.8;
 
  &:first-child {
    margin-top: 0;
  }
 
  &:last-child {
    margin-bottom: 0;
  }
}
 
sup,
sub {
  font-size: calc(getCssVar('font-size', 'base') - 1px);
}
 
small {
  font-size: calc(getCssVar('font-size', 'base') - 2px);
}
 
hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid getCssVar('border-color', 'lighter');
}