Skip to content

Commit 8fbf575

Browse files
committed
force full-width layout
1 parent 4e4ad60 commit 8fbf575

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

_pages/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
permalink: /
33
title: "🌱 About Me"
4-
classes: wide-page
4+
classes: fullwidth-about
55
author_profile: true
66
redirect_from:
77
- /about/

assets/css/custom.css

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* General font size for all pages */
22
.page__content {
3-
font-size: 14px;
4-
line-height: 1.6;
3+
font-size: 12px;
4+
line-height: 1.5;
55
}
66

77
/* Optional: reduce headings */
@@ -35,4 +35,28 @@ body.wider-page .page__content {
3535
/* Optional: limit super-wide paragraphs */
3636
body.wider-page .page__content p {
3737
max-width: 1000px;
38+
}
39+
40+
/* === Make 2-column layout wider for pages with 'fullwidth-about' class === */
41+
42+
body.fullwidth-about .layout--split {
43+
max-width: 1500px !important; /* default is ~960px */
44+
width: 95% !important;
45+
margin: 0 auto;
46+
display: grid;
47+
grid-template-columns: 300px auto; /* sidebar + content */
48+
column-gap: 60px; /* spacing between them */
49+
}
50+
51+
/* Optional: increase content text width even further */
52+
body.fullwidth-about .page__content {
53+
max-width: 100% !important;
54+
width: 100% !important;
55+
font-size: 16px;
56+
line-height: 1.6;
57+
}
58+
59+
/* Optional: prevent super-wide lines from being hard to read */
60+
body.fullwidth-about .page__content p {
61+
max-width: 1200px;
3862
}

0 commit comments

Comments
 (0)