Skip to content

Commit f6b87e1

Browse files
author
TechStack Global
committed
style(mobile): scale down all font sizes and section spacing to fix vertical text stretching on mobile
1 parent 3f969a6 commit f6b87e1

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

style.css

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,4 +1664,73 @@ img {
16641664
width: max-content;
16651665
max-width: none;
16661666
}
1667+
}
1668+
1669+
/* Mobile Typography Scale-Down — prevents vertical stretching */
1670+
@media screen and (max-width: 768px) {
1671+
1672+
/* Hero section - biggest offender */
1673+
.hero h1 {
1674+
font-size: 2rem !important;
1675+
letter-spacing: -0.5px;
1676+
line-height: 1.2 !important;
1677+
}
1678+
1679+
.hero-sub {
1680+
font-size: 1rem !important;
1681+
margin-bottom: 1.5rem !important;
1682+
}
1683+
1684+
/* Section headings */
1685+
.section-header h1,
1686+
.section-header h2 {
1687+
font-size: 1.75rem !important;
1688+
line-height: 1.25 !important;
1689+
}
1690+
1691+
/* Newsletter heading */
1692+
.newsletter-content h2 {
1693+
font-size: 1.5rem !important;
1694+
}
1695+
1696+
/* Post title on review pages */
1697+
.post-title,
1698+
h1.post-title {
1699+
font-size: 1.6rem !important;
1700+
line-height: 1.25 !important;
1701+
margin-bottom: 0.5rem !important;
1702+
}
1703+
1704+
/* H2 inside articles */
1705+
.post-body h2 {
1706+
font-size: 1.3rem !important;
1707+
margin-top: 1.75rem !important;
1708+
padding-top: 1.25rem !important;
1709+
}
1710+
1711+
/* H3 inside articles */
1712+
.post-body h3 {
1713+
font-size: 1.1rem !important;
1714+
}
1715+
1716+
/* Reduce section spacing so page doesn't feel endless */
1717+
.section-padding {
1718+
padding: 2.5rem 0 !important;
1719+
}
1720+
1721+
/* Tighter margins between content blocks */
1722+
.post-body h2,
1723+
.post-body h3,
1724+
.post-body p,
1725+
.post-body ul,
1726+
.post-body ol {
1727+
margin-bottom: 1rem !important;
1728+
}
1729+
1730+
/* Card category badge font */
1731+
.blog-category,
1732+
.product-meta,
1733+
.badge {
1734+
font-size: 0.75rem !important;
1735+
}
16671736
}

0 commit comments

Comments
 (0)