-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
76 lines (64 loc) · 1.2 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
* {
box-sizing: border-box;
}
body {
font-family: sans-serif;
}
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: auto 1fr auto;
gap: 10px;
padding: 20px;
}
header {
background-color: #6d6a6a;
color: #fff;
text-align: center;
height: 200px;
padding: 10px;
grid-column: 1 / -1;
}
header h1 {
line-height: 200px;
margin: 0;
}
.column:nth-child(4) {
background-color: hsl(233, 54%, 44%);
color: white;
padding: 20px;
min-height: 300px;
}
.column:nth-child(2) {
background-color: hsl(175, 65%, 40%);
color: white;
padding: 20px;
min-height: 300px;
}
.column:nth-child(3) {
background-color: hsl(74, 67%, 40%);
color: white;
padding: 20px;
min-height: 300px;
}
footer {
background-color: #b9b5b5;
color: white;
text-align: center;
padding: 10px;
grid-column: 1 / -1;
height: 100px;
}
.column:hover {
background-color: #585858;
}
@media only screen and (max-width: 600px) {
.grid-container {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr auto 1fr;
}
header,
footer {
grid-column: 1 / -1;
}
}