-
Notifications
You must be signed in to change notification settings - Fork 0
/
collage.css
284 lines (242 loc) · 5.08 KB
/
collage.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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
.image_grid_section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-template-rows: auto;
grid-gap: 1rem;
position: relative;
width: 100%;
z-index: 1;
}
.image_grid_container {
overflow-x: hidden;
display: grid;
place-items: center;
margin: 0.75rem;
padding: 0.75rem;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
background: #e2e2e2;
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(51, 51, 51) 0px 0px 0px 3px;
}
.image_grid {
width: 100%;
height: 100%;
display: grid;
place-items: center;
margin: auto;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr;
border: 2px solid #efefef;
background: #fff url("./Images/stars.svg") center/cover;
}
.image_grid_2 {
background: #fff url("./Images/star.svg") center/cover;
}
.image_grid_3,
.image_grid_4 {
background: #fff url("./Images/leaf.svg") center/cover;
}
.image_grid_5,
.image_grid_6 {
grid-template-columns: repeat(6, 1fr);
grid-template-rows: repeat(3, 1fr);
background: #fff url("./Images/dog.svg") center/cover;
}
.image_grid_7 {
background: #fff url("./Images/grass.svg") center/cover;
}
.image_grid img {
width: 100%;
/* height: 100%; */
object-fit: cover;
border: 2px solid #efefef;
}
.images_count,
.select_collage_btn {
background: #ffc107;
border: none;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
.images_count {
background: #e2e2e2;
}
/* image_grid_1 */
.image_grid_1 img:nth-child(1) {
grid-column: 1/3;
grid-row: 1/2;
border: 2px solid #efefef;
}
.image_grid_1 img:nth-child(2) {
grid-column: 3/4;
grid-row: 1/2;
border: 2px solid #efefef;
}
.image_grid_1 img:nth-child(3) {
border: 2px solid #efefef;
}
.image_grid_1 img:nth-child(4) {
grid-column: 2/4;
grid-row: 2/3;
border: 2px solid #efefef;
}
/* end of image_grid_1 */
/* image_grid_2 */
.image_grid_2 img:nth-child(1) {
grid-column: 1/4;
grid-row: 1/2;
border: 2px solid #efefef;
}
.image_grid_2 img:nth-child(2) {
grid-column: 1/2;
border: 2px solid #efefef;
}
.image_grid_2 img:nth-child(3) {
grid-column: 2/3;
grid-row: 2/3;
border: 2px solid #efefef;
}
.image_grid_2 img:nth-child(4) {
border: 2px solid #efefef;
}
/* end of image_grid_2 */
/* image_grid_3 */
.image_grid_3 img:nth-child(1) {
grid-column: 1/3;
grid-row: 1/2;
border: 2px solid #efefef;
}
.image_grid_3 img:nth-child(2) {
grid-column: 3/4;
grid-row: 1/2;
border: 2px solid #efefef;
}
.image_grid_3 img:nth-child(3) {
grid-column: 1/3;
grid-row: 2/3;
border: 2px solid #efefef;
}
.image_grid_3 img:nth-child(4) {
border: 2px solid #efefef;
}
/* end of image_grid_3 */
/* image_grid_4 */
.image_grid_4 img:nth-child(1) {
grid-column: 1/2;
grid-row: 1/2;
border: 2px solid #efefef;
}
.image_grid_4 img:nth-child(2) {
grid-column: 2/3;
grid-row: 1/2;
border: 2px solid #efefef;
}
.image_grid_4 img:nth-child(3) {
grid-column: 3/4;
grid-row: 1/2;
border: 2px solid #efefef;
}
.image_grid_4 img:nth-child(4) {
grid-column: 1/4;
grid-row: 2/3;
border: 2px solid #efefef;
}
/* end of image_grid_4 */
/* image_grid_5 */
.image_grid_5 img:nth-child(1) {
grid-column: 1/3;
grid-row: 1/3;
border: 2px solid #efefef;
}
.image_grid_5 img:nth-child(2) {
grid-column: 3/5;
grid-row: 1/3;
border: 2px solid #efefef;
}
.image_grid_5 img:nth-child(3) {
grid-column: 5/7;
grid-row: 1/3;
border: 2px solid #efefef;
}
.image_grid_5 img:nth-child(4) {
grid-column: 1/4;
grid-row: 3/4;
border: 2px solid #efefef;
}
.image_grid_5 img:nth-child(5) {
grid-column: 4/7;
grid-row: 3/4;
border: 2px solid #efefef;
}
/* end of image_grid_5 */
/* image_grid_6 */
.image_grid_6 img:nth-child(1) {
grid-column: 1/3;
grid-row: 1/3;
border: 2px solid #efefef;
}
.image_grid_6 img:nth-child(2) {
grid-column: 3/5;
grid-row: 1/2;
border: 2px solid #efefef;
}
.image_grid_6 img:nth-child(3) {
grid-column: 5/7;
grid-row: 1/3;
border: 2px solid #efefef;
}
.image_grid_6 img:nth-child(4) {
grid-column: 1/4;
grid-row: 3/4;
border: 2px solid #efefef;
}
.image_grid_6 img:nth-child(5) {
grid-column: 3/5;
grid-row: 2/4;
border: 2px solid #efefef;
}
.image_grid_6 img:nth-child(6) {
grid-column: 5/7;
grid-row: 3/4;
border: 2px solid #efefef;
}
/* end of image_grid_6 */
.image_grid_7 img:nth-child(8) {
grid-column: 2/4;
grid-row: 3/4;
border: 2px solid #efefef;
}
.popup_selected_collage {
position: fixed;
top: 8%;
left: 0;
width: 100%;
height: 93vh;
overflow-y: auto;
z-index: 1001;
background: url("./Images/mediacraft_logo_watermark.png") center/contain;
padding: 1rem;
}
.drag_and_drop_div {
display: grid;
margin: 2rem auto !important;
background: #fff;
box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px,
rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
border: 2px solid #c5b8b8;
}
.popup_selected_collage .image_grid {
width: 100%;
max-width: 400px;
margin-top: 2rem;
}
.close_btn {
position: absolute;
top: 0;
right: 0;
padding-right: 0.5rem;
cursor: pointer;
}
@media screen and (max-width: 768px) {
.popup_selected_collage .image_grid {
width: 100%;
}
}