Skip to content

Commit ca373ae

Browse files
Center nav and routes within 75rem width
1 parent eda0551 commit ca373ae

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

css/common.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Version: 0.1: added line-height 1.5 for readability and spacing between labels a
1111
--p-sm: 0.5rem;
1212
--p-md: 1rem;
1313
--sm: 600px;
14+
--max-content-width: 75rem;
1415
}
1516

1617
body {
@@ -26,6 +27,12 @@ body {
2627
color 0.5s;
2728
}
2829

30+
main {
31+
max-width: var(--max-content-width);
32+
margin: 0 auto;
33+
width: 100%;
34+
}
35+
2936
footer {
3037
bottom: 0;
3138
width: 100%;

js/components/nav.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ export default (hostComponent) => {
4444
flex-direction: column;
4545
gap: 0.4rem;
4646
padding: 10px 10px;
47+
max-width: var(--max-content-width);
48+
margin: 0 auto;
49+
width: 100%;
4750
background-color: var(--nav-background-color);
4851
z-index: 10;
4952
a {

0 commit comments

Comments
 (0)