-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
51 lines (42 loc) · 840 Bytes
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
* {
padding: 0;
margin: 0;
list-style: none;
}
#main {
display: grid;
grid-template-rows: 10vh 15vh auto 15vh;
grid-template-areas: "header header" "nav nav" "content aside" "footer footer";
}
.header {
grid-area: header;
background-color: red;
}
.nav {
grid-area: nav;
background-color: blue;
z-index: 99;
}
.content {
grid-area: content;
background-color: yellow;
}
.aside {
grid-area: aside;
background-color:orange;
}
.footer {
grid-area: footer;
background-color: black;
}
/* reponsive media - breakpoint */
@media screen and (max-width: 768px) {
#main {
grid-template-areas: "header" "content" "aside" "footer";
grid-template-rows: 10vh auto auto 10vh;
}
.nav {
grid-area: header;
justify-self: end;
}
}