Skip to content

Commit 47e9266

Browse files
committed
fix: Match line-height across homepage and work sections, add justify
Changes: - Work section: line-height 2.0 → 1.625 (match homepage leading-relaxed) - Homepage: Added text-align: justify to all paragraphs - Homepage: Added text-align-last: left to prevent last line stretching - Both sections now have consistent typography and justified text
1 parent 55f3c73 commit 47e9266

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/assets/stylesheets/works.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
.story-content p {
3131
margin-bottom: 3rem !important;
3232
margin-top: 0 !important;
33-
line-height: 2 !important;
33+
line-height: 1.625 !important;
3434
font-size: 1.125rem !important;
3535
text-align: justify !important;
3636
text-align-last: left !important;

app/assets/tailwind/application.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
@apply max-w-2xl mx-auto px-6 py-12;
4848
}
4949

50+
.container-homepage p {
51+
text-align: justify;
52+
text-align-last: left;
53+
}
54+
5055
.profile-picture {
5156
@apply w-[150px] h-[150px] rounded-full mx-auto mb-8;
5257
box-shadow: 0 4px 12px rgba(199, 90, 68, 0.2);

0 commit comments

Comments
 (0)