-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
123 lines (108 loc) · 2.05 KB
/
style.css
File metadata and controls
123 lines (108 loc) · 2.05 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/* bootstrap icon */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css');
/* utlities */
.me {
margin-right: 70px;
}
a {
text-decoration: none;
}
/* ? style//gallery */
.gallery {
--bs-columns: 3;
grid-template-rows: repeat(8, 200px);
}
.gallery > div:nth-child(3) {
grid-column: 2 / 4;
grid-row: 1 / 3;
}
.gallery > div:nth-child(4) {
grid-row: 3 / 5;
}
.gallery > div:nth-child(8) {
grid-column: 3 / 4;
grid-row: 4 / 6;
}
.gallery > div:nth-child(9) {
grid-column: 1 / 3;
grid-row: 5 / 7;
}
.gallery > div:nth-child(13) {
grid-column: 2 / 4;
grid-row: 7 / 9;
}
.gallery div {
overflow: hidden;
cursor: pointer;
}
.gallery img {
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(100%);
transition: 0.5s;
}
.gallery div:hover img {
filter: grayscale(0);
transform: scale(1.1);
}
/* responsive breakpoints */
@media (max-width: 767.98px) {
.gallery {
--bs-columns: 2;
grid-template-rows: repeat(9, 200px);
}
.gallery > div:nth-child(5) {
grid-column: 2 / 4;
grid-row: 3 / 4;
}
.gallery > div:nth-child(6) {
grid-column: 2 / 4;
grid-row: 4 / 5;
}
.gallery > div:nth-child(7) {
grid-column: 1 / 2;
grid-row: 5 / 6;
}
.gallery > div:nth-child(8) {
grid-column: 2 / 4;
grid-row: 5 / 6;
}
.gallery > div:nth-child(9) {
grid-column: 1 / 2;
grid-row: 6 / 8;
}
.gallery > div:nth-child(10) {
grid-column: 2 / 4;
grid-row: 6 / 7;
}
.gallery > div:nth-child(12) {
grid-column: 1 / 4;
grid-row: 9 / 10;
}
}
@media (max-width: 575.98px) {
.gallery {
--bs-columns: 1;
grid-template-rows: repeat(3, 200px);
}
.gallery > div:nth-child(1) {
grid-column: 1 / 4;
grid-row: 2 / 3;
}
.gallery > div:nth-child(3) {
grid-column: 1 / 4;
grid-row: 1 / 2;
}
.gallery > div:nth-child(7) {
grid-column: 1 / 4;
grid-row: 7 / 8;
}
footer {
text-align: center;
}
.gallery > div:nth-child(13) {
display: none;
}
}
/* todo make design by Sweet dev grid-gallery */