-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
98 lines (88 loc) · 1.96 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/* desktop */
.container {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: 50px 50px 1fr 200px;
grid-template-areas:
"navigation navigation navigation navigation navigation"
". header header header ."
". content content content ."
"footer footer footer footer footer";
grid-gap: 0.5em;
}
/* tablet */
@media screen and (max-width: 786px) {
.container {
display: grid;
grid-template-columns: 50px 1fr 1fr 50px;
grid-template-rows: 70px 1fr 150px;
grid-template-areas:
"navigation navigation header header"
". content content ."
"footer footer footer footer";
grid-gap: 0.25em;
}
}
/* moblie */
@media screen and (max-width: 480px) {
.container {
display: grid;
grid-template-columns: 20px 1fr 1fr 20px;
grid-template-rows: 30px 1fr 100px;
grid-template-areas:
"navigation navigation header header"
". content content ."
"footer footer footer footer";
grid-gap: 0.2em;
}
}
.container > div.navigation, div.header, div.footer {
background-color: aquamarine;
padding: 0.5em;
text-align: center;
}
.navigation {
grid-area: navigation;
}
.header {
grid-area: header;
}
.content {
grid-area: content;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
grid-gap: 0.5em;
background-color: lightgrey;
padding: 0.5em;
}
@media screen and (max-width: 786px) {
.content {
grid-area: content;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: auto;
grid-gap: 0.5em;
background-color: lightgrey;
padding: 1em;
}
}
@media screen and (max-width: 480px) {
.content {
grid-area: content;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
grid-gap: 0.5em;
background-color: lightgrey;
padding: 1em;
}
}
.footer {
grid-area: footer;
}
.content .box {
color: white;
background-color: blue;
padding: 1em;
}