-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
59 lines (59 loc) · 1.18 KB
/
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
52
53
54
55
56
57
58
59
.container{
display: grid;
height: 100vh;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 0.2fr 1.5fr 1.2fr 0.8fr;
grid-template-areas:
"nav nav nav nav"
"sidebar main main main"
"sidebar content1 content2 content3"
" sidebar footer footer footer"
;
grid-gap:5px;
}
nav{
background-color: #477eaf;
grid-area: nav;
}
main{
background-color: #eb8b0d;
grid-area: main;
}
#sidebar{
background-color: #39c71a;
grid-area: sidebar;
}
#content1{
background-color: #e09626;
grid-area: content1;
}
#content2{
background-color: #1da3cc;
grid-area: content2;
}
#content3{
background-color: #7648b3;
grid-area: content3;
}
footer{
background-color: #cc1d6f;
grid-area: footer;
}
@media(max-width:576px){
.container{
grid-template-columns: 1fr;
grid-template-rows: 0.2fr 0.2fr 1.5fr 1.2fr 1.2fr 1.2fr 0.8fr;
grid-template-areas:
"nav"
"sidebar"
"main"
"content1"
"content2"
"content3"
"footer";
}
#sidebar{
background-color: red;
border-radius: 30px;
}
}