-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsryle.css
More file actions
90 lines (84 loc) · 1.68 KB
/
sryle.css
File metadata and controls
90 lines (84 loc) · 1.68 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
}
.image-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: 10px;
justify-items: center;
margin: 10px;
}
.image-grid img:nth-child(1) {
grid-area: 1 / 1 / 3 / 2;
}
.image-grid img:nth-child(2) {
grid-area: 3 / 1 / 4 / 2;
}
.image-grid img:nth-child(3) {
grid-area: 1 / 2 / 2 / 3;
}
.image-grid img:nth-child(4) {
grid-area: 2 / 2 / 4 / 3;
}
.image-grid img:nth-child(5) {
grid-area: 1 / 3 / 3 / 4;
}
.image-grid img:nth-child(6) {
grid-area: 3 / 3 / 4 / 4;
}
@media (max-width: 856px) {
.image-grid {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(3, 1fr);
}
.image-grid img:nth-child(1) {
grid-area: 1 / 1 / 2 / 2;
}
.image-grid img:nth-child(2) {
grid-area: 2 / 1 / 3 / 2;
}
.image-grid img:nth-child(3) {
grid-area: 1 / 2 / 2 / 3;
}
.image-grid img:nth-child(4) {
grid-area: 2 / 2 / 3 / 3;
}
.image-grid img:nth-child(5) {
grid-area: 3 / 1 / 4 / 2;
}
.image-grid img:nth-child(6) {
grid-area: 3 / 2 / 4 / 3;
}
}
@media (max-width: 700px) {
.image-grid {
grid-template-columns: 1fr;
grid-template-rows: repeat(6, 1fr);
}
.image-grid img:nth-child(1) {
grid-area: 1 / 1 / 2 / 2;
}
.image-grid img:nth-child(2) {
grid-area: 2 / 1 / 3 / 2;
}
.image-grid img:nth-child(3) {
grid-area: 3 / 1 / 4 / 2;
}
.image-grid img:nth-child(4) {
grid-area: 4 / 1 / 5 / 2;
}
.image-grid img:nth-child(5) {
grid-area: 5 / 1 / 6 / 2;
}
.image-grid img:nth-child(6) {
grid-area: 6 / 1 / 7 / 2;
}
}