Skip to content

Commit b3f588c

Browse files
committed
Update page layout overflow and margin
1 parent b3b4e72 commit b3f588c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/components/layout.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,15 @@ export const globalStyles = css.global`
3030
min-width: ${theme.layout.rowMinWidth};
3131
}
3232
33-
.app-container {
34-
overflow: hidden;
35-
}
36-
3733
.page-layout {
3834
display: grid;
3935
position: relative;
4036
grid-template-rows: 4rem 1fr;
4137
grid-template-columns: 100%;
4238
grid-template-areas:
4339
'sidebar'
44-
'main'
45-
'footer';
46-
height: 100vh;
47-
overflow: auto;
40+
'main';
41+
min-height: 100vh;
4842
}
4943
5044
@media screen and (min-width: ${theme.mediaRanges.small}) {
@@ -70,8 +64,9 @@ export const globalStyles = css.global`
7064
7165
.inner.page {
7266
grid-area: main;
73-
margin-top: calc(${theme.layout.globalSpacing} * 4);
74-
margin-bottom: calc(${theme.layout.globalSpacing} * 4);
67+
margin-top: calc(${theme.layout.globalSpacing} * 2);
68+
margin-bottom: calc(${theme.layout.globalSpacing} * 2);
69+
overflow: auto;
7570
}
7671
7772
.inner.page section {

0 commit comments

Comments
 (0)