old-website/static/css/scss/_grid.scss
2022-12-28 00:46:08 +00:00

35 lines
634 B
SCSS

body {
min-height: 100vh;
display: grid;
grid-template-areas: 'aside nav'
'aside wrapper'
'footer wrapper';
grid-template-rows: 3rem auto 3rem;
grid-template-columns: 20rem 1fr;
}
.nav {
grid-area: nav;
}
.wrapper {
grid-area: wrapper;
}
.aside {
grid-area: aside;
}
.footer {
grid-area: footer;
}
@media screen and (max-width: 768px) {
body {
grid-template-areas: 'nav'
'wrapper'
'footer';
grid-template-rows: 3rem 1fr 3rem;
grid-template-columns: 1fr;
}
}