Skip to content

Commit c74edef

Browse files
committed
Tighten course site typography
1 parent d813cf7 commit c74edef

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

course-site/_sass/custom.scss

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@
7171
}
7272

7373
.course-topbar__brand-title {
74-
font-size: 1rem;
74+
font-size: 0.94rem;
7575
font-weight: 700;
7676
}
7777

7878
.course-topbar__brand-subtitle {
79-
font-size: 0.72rem;
79+
font-size: 0.68rem;
8080
color: #6b7280;
8181
white-space: nowrap;
8282
overflow: hidden;
@@ -94,7 +94,7 @@
9494
padding: 0.55rem 0.8rem;
9595
border-radius: 6px;
9696
color: #4b5563;
97-
font-size: 0.95rem;
97+
font-size: 0.88rem;
9898
font-weight: 500;
9999
text-decoration: none;
100100
transition: color 0.18s ease, background-color 0.18s ease;
@@ -125,7 +125,7 @@
125125
border-radius: 8px;
126126
background: #ffffff;
127127
color: #374151;
128-
font-size: 0.92rem;
128+
font-size: 0.86rem;
129129
transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
130130
}
131131

@@ -180,7 +180,7 @@
180180
.course-article__title {
181181
margin: 0;
182182
color: #111827;
183-
font-size: 2.2rem;
183+
font-size: 1.95rem;
184184
line-height: 1.2;
185185
font-weight: 750;
186186
}
@@ -201,7 +201,7 @@
201201
border-radius: 8px;
202202
background: #f8fafc;
203203
color: #374151;
204-
font-size: 0.88rem;
204+
font-size: 0.82rem;
205205
}
206206

207207
.course-article__meta-item strong {
@@ -214,8 +214,8 @@
214214
}
215215

216216
.course-article__content {
217-
font-size: 1.02rem;
218-
line-height: 1.9;
217+
font-size: 0.94rem;
218+
line-height: 1.78;
219219
}
220220

221221
.course-article__content > :first-child {
@@ -237,19 +237,19 @@
237237
margin-bottom: 1rem;
238238
padding-bottom: 0.55rem;
239239
border-bottom: 1px solid #e5e7eb;
240-
font-size: 1.65rem;
240+
font-size: 1.46rem;
241241
}
242242

243243
.course-article__content h3 {
244244
margin-top: 2rem;
245245
margin-bottom: 0.75rem;
246-
font-size: 1.26rem;
246+
font-size: 1.16rem;
247247
}
248248

249249
.course-article__content h4 {
250250
margin-top: 1.4rem;
251251
margin-bottom: 0.5rem;
252-
font-size: 1.08rem;
252+
font-size: 1rem;
253253
}
254254

255255
.course-article__content p,
@@ -368,7 +368,7 @@
368368
margin-top: 2rem;
369369
padding-top: 1rem;
370370
border-top: 1px solid #e5e7eb;
371-
font-size: 0.92rem;
371+
font-size: 0.84rem;
372372
}
373373

374374
.course-article__footer a {
@@ -414,12 +414,12 @@
414414
.pagination-nav__label {
415415
margin-bottom: 0.25rem;
416416
color: #6b7280;
417-
font-size: 0.86rem;
417+
font-size: 0.8rem;
418418
}
419419

420420
.pagination-nav__title {
421421
color: #111827;
422-
font-size: 0.96rem;
422+
font-size: 0.9rem;
423423
font-weight: 650;
424424
}
425425

@@ -437,7 +437,7 @@
437437
margin: 0 auto;
438438
padding: 1rem 1.5rem 1.2rem;
439439
color: #6b7280;
440-
font-size: 0.9rem;
440+
font-size: 0.84rem;
441441
}
442442

443443
.course-footer__inner a {
@@ -505,7 +505,7 @@
505505
.nav__sub-title {
506506
display: block;
507507
color: #111827;
508-
font-size: 0.95rem;
508+
font-size: 0.86rem;
509509
font-weight: 700;
510510
}
511511

@@ -524,8 +524,8 @@
524524
padding: 0.38rem 0.7rem;
525525
border-radius: 6px;
526526
color: #4b5563;
527-
font-size: 0.92rem;
528-
line-height: 1.45;
527+
font-size: 0.84rem;
528+
line-height: 1.38;
529529
text-decoration: none;
530530
}
531531

@@ -602,7 +602,7 @@
602602
}
603603

604604
.course-article__title {
605-
font-size: 1.85rem;
605+
font-size: 1.7rem;
606606
}
607607
}
608608

@@ -614,7 +614,7 @@
614614
}
615615

616616
.course-article__title {
617-
font-size: 1.6rem;
617+
font-size: 1.48rem;
618618
}
619619

620620
.course-article__meta {

0 commit comments

Comments
 (0)