Skip to content

Commit f0fba57

Browse files
author
Michał Gryczka
committed
fixed blog text styling
1 parent 86874d2 commit f0fba57

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

src/pages/blog/[slug].astro

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ const hasCaseStudy =
325325
min-height: 100vh;
326326
overflow: unset;
327327
--blog-body-size: calc(1.125rem * var(--font-scale-factor));
328+
--blog-body-color: #374151;
328329

329330
.blog-post {
330331
padding: 2rem 0 4rem;
@@ -377,7 +378,7 @@ const hasCaseStudy =
377378

378379
p {
379380
font-size: var(--blog-body-size);
380-
line-height: 1.75;
381+
line-height: 1.6;
381382
color: var(--text-body-primary);
382383
margin: 0 0 1rem;
383384
text-align: left;
@@ -480,11 +481,11 @@ const hasCaseStudy =
480481

481482
:global(th) {
482483
font-weight: 600;
483-
color: var(--text-body-primary);
484+
color: var(--blog-body-color);
484485
}
485486

486487
:global(td) {
487-
color: var(--text-body-primary);
488+
color: var(--blog-body-color);
488489
}
489490

490491
/* Zebra striping for better readability */
@@ -529,7 +530,7 @@ const hasCaseStudy =
529530
}
530531

531532
:global(h2) {
532-
font-size: calc(2rem * var(--font-scale-factor));
533+
font-size: calc(2.5rem * var(--font-scale-factor));
533534
margin: 1.75rem 0 1rem;
534535
font-weight: 400;
535536
color: var(--text-body-primary);
@@ -538,7 +539,7 @@ const hasCaseStudy =
538539
:global(h3) {
539540
font-size: calc(1.5rem * var(--font-scale-factor));
540541
margin: 1.5rem 0 1rem;
541-
font-weight: 400;
542+
font-weight: 600;
542543
color: var(--text-body-primary);
543544
}
544545

@@ -598,10 +599,10 @@ const hasCaseStudy =
598599
}
599600

600601
:global(p) {
601-
margin: 1rem 0;
602-
line-height: 1.8;
603-
font-weight: 400;
604-
color: var(--text-body-primary);
602+
margin: 1.5rem 0;
603+
line-height: 1.6;
604+
font-weight: 300;
605+
color: var(--blog-body-color);
605606
font-size: var(--blog-body-size);
606607
}
607608

@@ -612,9 +613,9 @@ const hasCaseStudy =
612613

613614
:global(li) {
614615
margin-bottom: 0.5rem;
615-
line-height: 1.8;
616-
font-weight: 400;
617-
color: var(--text-body-primary);
616+
line-height: 1.6;
617+
font-weight: 300;
618+
color: var(--blog-body-color);
618619
font-size: var(--blog-body-size);
619620
}
620621
}
@@ -623,9 +624,9 @@ const hasCaseStudy =
623624
border-left: 4px solid var(--primary-color, #0c8ce0);
624625
padding-left: 1rem;
625626
margin: 1.5rem 0;
626-
font-weight: 400;
627-
line-height: 1.8;
628-
color: var(--text-body-secondary, var(--text-body-primary));
627+
font-weight: 300;
628+
line-height: 1.6;
629+
color: var(--blog-body-color);
629630
font-size: var(--blog-body-size);
630631
}
631632

0 commit comments

Comments
 (0)