Skip to content

Commit 1429f4a

Browse files
committed
feat(design): center main content
1 parent b4dfa60 commit 1429f4a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

static/styles/_layout.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,9 @@ $nav-width: 15rem;
4949

5050
.layout-main {
5151
padding-left: $nav-width + 2rem;
52-
max-width: 80rem;
52+
}
53+
54+
.content-wrapper {
55+
max-width: 70rem;
56+
margin: 0 auto;
5357
}

tmpl/layout.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
</nav>
2222
</div>
2323
<div id="main" class="layout-main">
24-
<h1 class="page-title"><?js= title ?></h1>
25-
<?js= content ?>
24+
<div class="content-wrapper">
25+
<h1 class="page-title"><?js= title ?></h1>
26+
<?js= content ?>
27+
</div>
2628
</div>
2729
</div>
2830

0 commit comments

Comments
 (0)