Skip to content

Commit b529e8c

Browse files
author
TechStack Global
committed
style(mobile): comprehensive mobile fixes - header padding, grid stacking, sidebar, table scroll, button widths
1 parent 4b83621 commit b529e8c

File tree

1 file changed

+69
-1
lines changed

1 file changed

+69
-1
lines changed

style.css

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ img {
263263
display: flex;
264264
justify-content: space-between;
265265
align-items: center;
266-
padding: 1.2rem 0;
266+
padding: 1.2rem 1.25rem;
267267
}
268268

269269
.logo {
@@ -1562,4 +1562,72 @@ img {
15621562
padding: 0.75rem 0.5rem !important;
15631563
font-size: 0.9rem !important;
15641564
}
1565+
}
1566+
1567+
/* Additional Mobile Fixes for Product Reviews & Guides */
1568+
@media screen and (max-width: 768px) {
1569+
1570+
/* Add breathing room to main containers */
1571+
.container {
1572+
padding-left: 1.25rem;
1573+
padding-right: 1.25rem;
1574+
}
1575+
1576+
/* Affiliate disclaimer full width */
1577+
.affiliate-disclaimer {
1578+
box-sizing: border-box;
1579+
width: 100% !important;
1580+
}
1581+
1582+
/* About / Contact glass-panel inner padding fix */
1583+
.glass-panel {
1584+
padding: 1.75rem !important;
1585+
}
1586+
1587+
/* Product items in amazon stack */
1588+
.product-item {
1589+
flex-direction: column;
1590+
}
1591+
1592+
.product-thumbnail-wrapper {
1593+
width: 100% !important;
1594+
}
1595+
1596+
/* Force any inline 1fr 1fr grid to stack */
1597+
[style*="grid-template-columns: 1fr 1fr"],
1598+
[style*="grid-template-columns:1fr 1fr"] {
1599+
display: flex !important;
1600+
flex-direction: column !important;
1601+
gap: 1rem !important;
1602+
}
1603+
1604+
/* Affiliate CTA buttons full width on mobile */
1605+
.affiliate-btn,
1606+
.in-content-cta .btn-primary {
1607+
max-width: 100% !important;
1608+
width: 100% !important;
1609+
box-sizing: border-box;
1610+
}
1611+
1612+
/* Blog grid on guide pages */
1613+
.blog-grid {
1614+
grid-template-columns: 1fr !important;
1615+
}
1616+
1617+
/* Sidebar hidden on mobile */
1618+
.sticky-sidebar {
1619+
display: none !important;
1620+
}
1621+
1622+
/* Readable body text */
1623+
.post-body p,
1624+
.post-body li {
1625+
font-size: 0.97rem !important;
1626+
line-height: 1.75;
1627+
}
1628+
1629+
/* Comparison table min-width ensures horizontal scroll works */
1630+
.comparison-table {
1631+
min-width: 480px;
1632+
}
15651633
}

0 commit comments

Comments
 (0)