Skip to content

Commit 250058d

Browse files
author
SpicyCoder
committed
Fix CSS
1 parent 9e6b903 commit 250058d

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

assets/css/extended/custom.css

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
/* Make main content area much wider */
22
.main {
3-
max-width: 95vw !important;
4-
width: 40% !important;
3+
width: 100%;
54
margin: 0 auto;
6-
padding: 0 100px;
5+
padding: 0 20px;
6+
7+
/* Desktop: cap width for readability */
8+
max-width: 1200px;
79
}
810

9-
.post-content {
10-
max-width: 100% !important;
11-
width: 100%;
11+
/* Mobile/tablet: allow full expansion */
12+
@media (max-width: 768px) {
13+
.main {
14+
max-width: 95vw !important;
15+
}
16+
}
17+
18+
.post-content pre,
19+
.post-content code {
20+
white-space: pre-wrap; /* allow wrapping */
21+
word-break: break-word; /* break long tokens */
22+
overflow-x: auto; /* fallback scroll if truly needed */
1223
}
1324

25+
1426
/* Remove PaperMod's default max-width restrictions */
1527
article.post-single {
1628
max-width: 100% !important;

0 commit comments

Comments
 (0)