Skip to content

Commit 7a260c0

Browse files
committed
fix: apply s2 font styles
1 parent 4be1344 commit 7a260c0

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

blocks/footer/footer.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
footer {
22
padding: 2rem;
33
background-color: var(--light-color);
4-
font-size: var(--body-font-size-s);
4+
font-size: var(--body-font-size-xs);
55
}
66

77
footer .footer {

blocks/header/header.css

+2-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ header nav {
1818
max-width: 1264px;
1919
height: var(--nav-height);
2020
padding: 0 1rem;
21-
font-family: var(--body-font-family);
2221
}
2322

2423
header nav[aria-expanded='true'] {
@@ -171,19 +170,18 @@ header nav .nav-sections ul {
171170
list-style: none;
172171
padding-left: 0;
173172
font-size: var(--body-font-size-s);
174-
font-weight: 500;
175173
}
176174

177175
header nav .nav-sections ul > li {
178-
font-weight: 700;
176+
font-weight: 500;
179177
}
180178

181179
header nav .nav-sections ul > li > ul {
182180
margin-top: 0;
183181
}
184182

185183
header nav .nav-sections ul > li > ul > li {
186-
font-weight: 500;
184+
font-weight: 400;
187185
}
188186

189187
@media (width >= 900px) {
@@ -227,13 +225,11 @@ header nav .nav-sections ul > li > ul > li {
227225
display: flex;
228226
gap: 2em;
229227
margin: 0;
230-
font-size: var(--body-font-size-xs);
231228
}
232229

233230
header nav .nav-sections .default-content-wrapper > ul > li {
234231
flex: 0 1 auto;
235232
position: relative;
236-
font-weight: 500;
237233
}
238234

239235
header nav .nav-sections .default-content-wrapper > ul > li > ul {

styles/styles.css

+12-11
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@
7171
}
7272

7373
body {
74-
font-size: var(--body-font-size-m);
7574
margin: 0;
7675
font-family: var(--body-font-family);
77-
line-height: 1.6;
76+
font-size: var(--body-font-size-m);
77+
line-height: 1.5;
7878
color: var(--text-color);
7979
background-color: var(--background-color);
8080
display: none;
@@ -95,8 +95,8 @@ h4,
9595
h5,
9696
h6 {
9797
font-family: var(--heading-font-family);
98-
font-weight: 600;
99-
line-height: 1.25;
98+
font-weight: 700;
99+
line-height: 1.3;
100100
margin-top: 1em;
101101
margin-bottom: 0.5em;
102102
scroll-margin: calc(var(--nav-height) + 1em);
@@ -119,11 +119,6 @@ blockquote {
119119
margin-bottom: 1em;
120120
}
121121

122-
code,
123-
pre {
124-
font-size: var(--body-font-size-s);
125-
}
126-
127122
code {
128123
padding: 0.125em;
129124
}
@@ -140,6 +135,13 @@ main pre {
140135
white-space: pre;
141136
}
142137

138+
input,
139+
textarea,
140+
select,
141+
button {
142+
font: inherit;
143+
}
144+
143145
/* links */
144146
a:any-link {
145147
color: var(--link-color);
@@ -154,15 +156,14 @@ a:hover {
154156
/* buttons */
155157
a.button:any-link,
156158
button {
157-
font-family: var(--body-font-family);
158159
display: inline-block;
159160
box-sizing: border-box;
160161
text-decoration: none;
161162
border: 2px solid transparent;
162163
padding: 5px 30px;
163164
text-align: center;
165+
font-weight: 500;
164166
font-style: normal;
165-
font-weight: 600;
166167
cursor: pointer;
167168
color: var(--background-color);
168169
background-color: var(--link-color);

0 commit comments

Comments
 (0)