-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask.css
More file actions
67 lines (67 loc) · 1.17 KB
/
task.css
File metadata and controls
67 lines (67 loc) · 1.17 KB
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
60
61
62
63
64
65
66
67
body {
background-color: #eee;
font: normal 18px serif;
}
.containerbody{
max-width: 1000px;
background-color: #fff;
margin: 0 auto;
padding: 0 90px;
display: grid;
grid-template-columns: 6fr 2fr;
grid-template-areas:
"header header"
"main sidebar"
"footer footer";
grid-gap: 80px;
}
header{
grid-area: header;
padding: 30px 0;
display: grid;
grid-template-columns: 2fr 0.5fr;
}
header nav li {
margin-right: 18px;
display: inline-block;
}
header button {
border: none;
padding: 20px 20px;
color: #fff;
font: normal 20px serif;
}
.mainbody {
grid-area: main;
text-align: center;
}
.mainbody h2 {
font-size: 34px;
margin-bottom: 58px;
}
.mainbody p {
margin-bottom: 55px;
}
.mainbody img {
width: 100%;
}
.sidebarbody {
grid-area: sidebar;
border: 2px solid;
padding: 25px;
}
footer {
grid-area: footer;
text-align: center;
padding: 25px 0;
}
@media (max-width: 800px) {
.containerbody{
grid-template-columns: 2fr;
grid-template-areas:
"header"
"main"
"sidebar"
"footer";
}
}