PluginProbe
Amedea – Unique Design Elements for Elementor / trunk
Amedea – Unique Design Elements for Elementor vtrunk
trunk 0.0.4.7
amedea / assets / css / push-gallery.css

push-gallery.css in Amedea – Unique Design Elements for Elementor trunk, at assets/css/push-gallery.css

349 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2
3
4
5 Author : Amedea
6
7 Author URI : https://amedeapro.com
8
9 Author : Moskva Yigit
10
11 Author URI : http://moskvayigit.com
12
13 Version : 0.0.3.9
14
15
16
17 Table of Contents
18
19 - Push Gallery
20
21
22
23 */
24
25
26
27 /*----------------------------
28
29 .-- Push Gallery
30
31 -----------------------------*/
32
33
34
35 .push-gallery--container {
36
37 margin: 0;
38
39 height: 100dvh;
40
41 width: 100%;
42
43 overflow: hidden;
44
45 position: fixed;
46
47 top: 0;
48
49 }
50
51
52
53 .push-gallery--content {
54
55 display: grid;
56
57 position: relative;
58
59 grid-template-areas: 'main';
60
61 grid-template-columns: 100%;
62
63 grid-template-rows: 100%;
64
65
66
67 --cgap: 5%;
68
69 --rgap: 5%;
70
71 --rows: 7;
72
73 --columns: 7;
74
75
76
77 --item-width: calc((100% + (var(--columns) - 1) * var(--cgap)) / var(--columns));
78
79 --item-height: calc((100% + (var(--rows) - 1) * var(--rgap)) / var(--rows));
80
81
82
83 width: calc(100% + var(--item-width) * 2 + var(--cgap) * 2);
84
85 height: calc(100% + var(--item-height) * 2 + var(--rgap) * 2);
86
87
88
89 left: calc(-1 * var(--item-width) - var(--cgap));
90
91 top: calc(-1 * var(--item-height) - var(--rgap));
92
93 }
94
95
96
97 .push-gallery--title{
98
99 font-weight: 700;
100
101 font-size: 27vw;
102
103 mix-blend-mode: difference;
104
105 -webkit-text-fill-color: transparent;
106
107 text-fill-color: transparent;
108
109 transform: translate(-50%, -50%);
110
111 position: absolute;
112
113 z-index: -1;
114
115 opacity: .1;
116
117 top: 50%;
118
119 left: 50%;
120
121 --blendmode-title: overlay;
122
123 }
124
125
126
127 .dark .push-gallery--title{
128
129 -webkit-text-stroke: 2px black;
130
131 text-stroke: 2px black;
132
133 color: #000;
134
135 }
136
137
138
139 .light .push-gallery--title{
140
141 -webkit-text-stroke: 2px white;
142
143 text-stroke: 2px white;
144
145 color: #fff;
146
147 }
148
149
150
151 .push-gallery--grid {
152
153 grid-area: main;
154
155 display: grid;
156
157 grid-auto-flow: column;
158
159 grid-template-columns: repeat(var(--columns),1fr);
160
161 grid-template-rows: repeat(var(--rows),1fr);
162
163 grid-row-gap: var(--rgap);
164
165 grid-column-gap: var(--cgap);
166
167 pointer-events: none;
168
169 }
170
171
172
173 .push-gallery--grid--asym {
174
175 --columns: 8;
176
177 }
178
179
180
181 .push-gallery--grid__item {
182
183 width: 100%;
184
185 height: 100%;
186
187 position: relative;
188
189 will-change: transform, opacity;
190
191 }
192
193
194
195 .push-gallery--position-1 { grid-area: 2 / 2 / 3 / 3; }
196
197 .push-gallery--position-2 { grid-area: 4 / 2 / 5 / 3; }
198
199 .push-gallery--position-3 { grid-area: 6 / 2 / 7 / 3; }
200
201 .push-gallery--position-4 { grid-area: 3 / 3 / 4 / 4; }
202
203 .push-gallery--position-5 { grid-area: 5 / 3 / 6 / 4; }
204
205 .push-gallery--position-6 { grid-area: 2 / 4 / 3 / 5; }
206
207 .push-gallery--position-7 { grid-area: 4 / 4 / 5 / 5; }
208
209 .push-gallery--position-8 { grid-area: 6 / 4 / 7 / 5; }
210
211 .push-gallery--position-9 { grid-area: 3 / 5 / 4 / 6; }
212
213 .push-gallery--position-10 { grid-area: 5 / 5 / 6 / 6; }
214
215 .push-gallery--position-11 { grid-area: 2 / 6 / 3 / 7; }
216
217 .push-gallery--position-12 { grid-area: 4 / 6 / 5 / 7; }
218
219 .push-gallery--position-13 { grid-area: 6 / 6 / 7 / 7; }
220
221 .push-gallery--position-14 { grid-area: 3 / 7 / 4 / 8; }
222
223 .push-gallery--position-15 { grid-area: 5 / 7 / 6 / 8; }
224
225 .push-gallery--position-north { grid-row: 1; }
226
227 .push-gallery--position-south { grid-row: var(--rows); }
228
229 .push-gallery--position-west { grid-column: 1; }
230
231 .push-gallery--position-east { grid-column: var(--columns); }
232
233
234
235 .push-gallery--grid__img {
236
237 width: 100%;
238
239 height: 100%;
240
241 background-size: cover;
242
243 background-position: 50% 50%;
244
245 pointer-events: auto;
246
247 filter: brightness(0.6);
248
249 cursor: pointer;
250
251 will-change: transform;
252
253 }
254
255
256
257 .push-gallery--grid--rounded .push-gallery--grid__img {
258
259 border-radius: 12px;
260
261 will-change: transform, border-radius;
262
263 }
264
265
266
267 .push-gallery--grid--scale .push-gallery--grid__img {
268
269 aspect-ratio: 1;
270
271 width: auto;
272
273 height: 100%;
274
275 }
276
277
278
279 .push-gallery--fullscreen {
280
281 position: absolute;
282
283 width: calc(100% + 8px);
284
285 height: calc(100% + 8px);
286
287 top: -4px;
288
289 left: -4px;
290
291 pointer-events: none;
292
293 }
294
295
296
297 .push-gallery--fullscreen--rounded {
298
299 width: calc(100% - 30px);
300
301 height: calc(100% - 30px);
302
303 top: 15px;
304
305 left: 15px;
306
307 }
308
309
310
311 .push-gallery--fullscreen--rounded .push-gallery--grid__img {
312
313 border-radius: 20px;
314
315 }
316
317
318
319 .push-gallery--fullscreen--scale {
320
321 display: flex;
322
323 justify-content: center;
324
325 align-items: center;
326
327 width: 100%;
328
329 height: 100%;
330
331 top: 0;
332
333 left: 0;
334
335 }
336
337
338
339 .push-gallery--fullscreen--scale .push-gallery--grid__img {
340
341 aspect-ratio: 1;
342
343 width: auto;
344
345 height: 40vh;
346
347 }
348
349