Adapt grid layout for mobile users

This commit is contained in:
Joshua Goins 2022-09-14 16:54:11 -04:00
parent 955e080bb5
commit cc0e24a752

View file

@ -1,11 +1,28 @@
/* desktop devices */
@media (min-width: 768px) {
body {
grid-template:
"head head"
"nav main"
"nav foot";
}
}
/* mobile devices */
@media (max-width: 768px) {
body {
grid-template:
"head"
"nav"
"main"
"foot";
}
}
body { body {
background-color: #eebebe; background-color: #eebebe;
display: grid; display: grid;
grid-template:
"head head"
"nav main"
"nav foot";
} }
header { header {