Adapt grid layout for mobile users
This commit is contained in:
parent
955e080bb5
commit
cc0e24a752
1 changed files with 21 additions and 4 deletions
|
@ -1,12 +1,29 @@
|
|||
/* desktop devices */
|
||||
@media (min-width: 768px) {
|
||||
body {
|
||||
background-color: #eebebe;
|
||||
|
||||
display: grid;
|
||||
grid-template:
|
||||
"head head"
|
||||
"nav main"
|
||||
"nav foot";
|
||||
}
|
||||
}
|
||||
|
||||
/* mobile devices */
|
||||
@media (max-width: 768px) {
|
||||
body {
|
||||
grid-template:
|
||||
"head"
|
||||
"nav"
|
||||
"main"
|
||||
"foot";
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #eebebe;
|
||||
|
||||
display: grid;
|
||||
}
|
||||
|
||||
header {
|
||||
grid-area: head;
|
||||
|
|
Loading…
Add table
Reference in a new issue