Skip to content

Commit 888afbd

Browse files
author
TechStack Global
committed
Fix Surface images and overhaul mobile responsiveness for article pages
1 parent 37e38bb commit 888afbd

File tree

1 file changed

+79
-1
lines changed

1 file changed

+79
-1
lines changed

style.css

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,4 +894,82 @@ img {
894894
grid-template-columns: 1fr;
895895
text-align: center;
896896
}
897-
}
897+
}
898+
899+
/* --- Mobile Fixes for Article Pages --- */
900+
@media screen and (max-width: 768px) {
901+
.container {
902+
padding-left: 1rem;
903+
padding-right: 1rem;
904+
width: 100%;
905+
box-sizing: border-box;
906+
}
907+
908+
.post-content {
909+
padding: 0;
910+
max-width: 100%;
911+
overflow-x: hidden;
912+
}
913+
914+
.comparison-table-wrapper {
915+
overflow-x: auto;
916+
-webkit-overflow-scrolling: touch;
917+
width: 100%;
918+
margin-bottom: 2rem;
919+
display: block;
920+
}
921+
922+
.comparison-table {
923+
width: 100%;
924+
min-width: unset; /* Allow table to shrink or scroll */
925+
}
926+
927+
.comparison-table th,
928+
.comparison-table td {
929+
padding: 0.75rem 0.5rem;
930+
font-size: 0.85rem;
931+
white-space: normal; /* Allow text wrapping on mobile */
932+
}
933+
934+
.post-hero-img, .post-body-img {
935+
width: 100% !important;
936+
height: auto;
937+
border-radius: 8px !important;
938+
}
939+
940+
/* Fix sticky sidebar obscuring or overflowing */
941+
.post-grid {
942+
display: flex;
943+
flex-direction: column;
944+
gap: 2rem;
945+
margin-top: 1rem;
946+
}
947+
948+
.sidebar {
949+
position: static !important; /* Disable sticky on mobile */
950+
width: 100%;
951+
}
952+
953+
.pros-cons-grid {
954+
grid-template-columns: 1fr; /* Stack Pros and Cons */
955+
gap: 1.5rem;
956+
}
957+
958+
.post-title {
959+
font-size: 1.8rem;
960+
line-height: 1.3;
961+
}
962+
963+
.faq-item h3 {
964+
font-size: 1.1rem;
965+
}
966+
967+
.hero-ctas {
968+
display: flex;
969+
flex-direction: column;
970+
gap: 1rem;
971+
}
972+
.hero-visual {
973+
display: none; /* Hide abstract elements on very small screens to save space */
974+
}
975+
}

0 commit comments

Comments
 (0)