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 {
|
body {
|
||||||
background-color: #eebebe;
|
|
||||||
|
|
||||||
display: grid;
|
|
||||||
grid-template:
|
grid-template:
|
||||||
"head head"
|
"head head"
|
||||||
"nav main"
|
"nav main"
|
||||||
"nav foot";
|
"nav foot";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* mobile devices */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
body {
|
||||||
|
grid-template:
|
||||||
|
"head"
|
||||||
|
"nav"
|
||||||
|
"main"
|
||||||
|
"foot";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #eebebe;
|
||||||
|
|
||||||
|
display: grid;
|
||||||
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
grid-area: head;
|
grid-area: head;
|
||||||
|
|
Loading…
Add table
Reference in a new issue