Skip to content

Commit 1a7d9e3

Browse files
committed
page wider with custom css
1 parent b0018c9 commit 1a7d9e3

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
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-about
4+
classes: wide-page
55
author_profile: true
66
redirect_from:
77
- /about/

assets/css/custom.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,17 @@
1515
font-size: 20px;
1616
}
1717

18-
/* Only apply wider layout to pages with class 'wide-about' */
19-
.wide-about .wrapper {
20-
max-width: 1500px;
18+
/* Widen the layout ONLY for the about page (or others with 'wide-page' class) */
19+
body.wide-page .page {
20+
max-width: 1500px !important;
21+
width: 95%;
22+
}
23+
24+
body.wide-page .page__inner-wrap {
25+
max-width: 1400px !important;
26+
}
27+
28+
body.wide-page .page__content {
29+
max-width: 100% !important;
30+
width: 100% !important;
2131
}

0 commit comments

Comments
 (0)