Skip to content

Commit 48d22b0

Browse files
author
Felipe Contreras
committed
css: move the max-width to the site
This allows the wrapper to fit the whole width of the window, and align the contained elements properly. The width of the navbar is 20em (280px), so the max-width of the site is 940px - 280px, thus retaining the original width. This fixes the issue with "Git Rev News: Edition 68" where the site width was too big, and the navbar width got too small. Signed-off-by: Felipe Contreras <[email protected]>
1 parent 6985f22 commit 48d22b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

css/main.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ body {
3636
-webkit-flex: 1;
3737
-ms-flex: 1;
3838
flex: 1;
39+
max-width: 660px;
3940
}
4041

4142
.navbar {
@@ -62,7 +63,7 @@ body {
6263
display: -ms-flexbox;
6364
display: flex;
6465
margin: 0 auto;
65-
max-width: 940px;
66+
justify-content: center;
6667
}
6768

6869
@media (max-width: 700px) {

0 commit comments

Comments
 (0)