-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
71 lines (63 loc) · 1.45 KB
/
styles.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
/*CSS-Grid settings for mobile screens*/
.container {
background-color: darkseagreen;
padding: 16px;
display: grid;
row-gap: 16px;
column-gap: 16px;
grid-template-columns: 1fr;
grid-template-rows: 50px auto 50px 50px 50px 50px 50px;
grid-template-areas:
"block-a"
"block-b"
"block-c"
"block-d"
"block-e"
"."
"block-f";
}
.item {
background-color: darkslategray;
border: 2px solid black;
color: white;
display: flex;
justify-content: center;
align-items: center;
padding: 16px;
}
#item-a {
grid-area: block-a;
}
#item-b {
grid-area: block-b;
}
#item-c {
grid-area: block-c;
}
#item-d {
grid-area: block-d;
}
#item-e {
grid-area: block-e;
}
#item-f {
grid-area: block-f;
}
/*CSS-Grid settings for tablets and bigger screens*/
@media screen and (min-width: 576px) {
.container {
background-color: darkseagreen;
padding: 16px;
display: grid;
row-gap: 16px;
column-gap: 16px;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 100px 190px 100px auto 50px;
grid-template-areas:
"block-a block-c block-c"
"block-b block-c block-c"
"block-b block-e block-d"
"block-b block-e ."
"block-f block-f block-f";
}
}