@solcre-org/core-ui 2.12.28 → 2.12.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,326 @@
1
+ /* ******************************************** */
2
+ /** COMPONENT: GALLERY
3
+ /* ******************************************** */
4
+
5
+ .c-gallery-grid {
6
+ --_total-items: calc(var(--total-items) - 1);
7
+ --_gap: 8px;
8
+ --_br: var(--app-br, 0px);
9
+ --_sides-size: var(--sides-size, 1fr);
10
+
11
+ display: grid;
12
+ grid-template-rows: var(--_sides-size);
13
+ gap: var(--_gap);
14
+ }
15
+
16
+ .c-gallery-grid__imgs-xs {
17
+ display: flex;
18
+ height: 100%;
19
+ gap: var(--_gap);
20
+ }
21
+
22
+ .c-gallery-grid__img {
23
+ position: relative;
24
+ width: 100%;
25
+ border-radius: var(--_br);
26
+ overflow: hidden;
27
+ }
28
+
29
+ .c-gallery-grid__img::before {
30
+ content: "";
31
+ position: absolute;
32
+ left: 0;
33
+ top: 0;
34
+ width: 100%;
35
+ height: 100%;
36
+ background-color: hsl(var(--color-hover-hsl)/70%);
37
+ opacity: 0;
38
+ pointer-events: none;
39
+ transition: opacity var(--trs-duration-400) ease-out;
40
+ }
41
+
42
+ .c-gallery-grid__img::after {
43
+ content: "\e902";
44
+ font-family: 'icomoon' !important;
45
+ speak: never;
46
+ font-style: normal;
47
+ font-weight: normal;
48
+ font-variant: normal;
49
+ text-transform: none;
50
+ line-height: 1;
51
+ -webkit-font-smoothing: antialiased;
52
+ position: absolute;
53
+ left: 50%;
54
+ top: 50%;
55
+ color: var(--color-neutral-100);
56
+ font-size: var(--fz-500);
57
+ transform: translate(-50%,-50%);
58
+ opacity: 0;
59
+ pointer-events: none;
60
+ transition: opacity var(--trs-duration-400) ease-out;
61
+ }
62
+
63
+ .c-gallery-grid img {
64
+ display: block;
65
+ width: 100%;
66
+ height: 100%;
67
+ cursor: pointer;
68
+ object-fit: cover;
69
+ }
70
+
71
+ /* Side items */
72
+
73
+ .c-gallery-grid--side-items {
74
+ grid-template-columns: var(--_sides-size);
75
+ grid-template-rows: 1fr;
76
+ }
77
+
78
+ .c-gallery-grid--side-items .c-gallery-grid__imgs-xs {
79
+ display: grid;
80
+ grid-template-columns: 1fr;
81
+ grid-template-rows: repeat(var(--_total-items), 1fr);
82
+ }
83
+
84
+
85
+ /* Modal */
86
+ .c-gallery-modal {
87
+ --_overlay-bg: var(--app-popup-overlay);
88
+ --_modal-animation-in: .4s;
89
+ --_modal-animation-out: .2s;
90
+ --_br: var(--app-br, 0px);
91
+ --_close-size: 2rem;
92
+ --_nav-size: 3rem;
93
+ --_controls-color: var(--color-neutral-100);
94
+
95
+ position: fixed;
96
+ top: 0;
97
+ left: 0;
98
+ width: 100%;
99
+ height: 100%;
100
+ display: none;
101
+ justify-content: center;
102
+ align-items: center;
103
+ flex-direction: column;
104
+ padding: 6rem 2rem;
105
+ z-index: 1000;
106
+ isolation: isolate;
107
+ }
108
+
109
+ .c-gallery-modal__overlay {
110
+ background: var(--_overlay-bg);
111
+ position: fixed;
112
+ top: 0;
113
+ left: 0;
114
+ width: 100%;
115
+ height: 100%;
116
+ backdrop-filter: blur(0.8rem);
117
+ opacity: 0;
118
+ }
119
+
120
+ .c-gallery-modal.is-visible .c-gallery-modal__overlay {
121
+ animation: showOverlay var(--_modal-animation-in) ease-out forwards;
122
+ }
123
+
124
+ .c-gallery-modal.is-closing .c-gallery-modal__overlay {
125
+ animation: hideOverlay var(--_modal-animation-out) ease-out forwards;
126
+ }
127
+
128
+ .c-gallery-modal.is-visible {
129
+ display: flex;
130
+ flex-wrap: wrap;
131
+ flex-direction: column;
132
+ }
133
+
134
+ .c-gallery-modal__holder {
135
+ position: relative;
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: center;
139
+ }
140
+
141
+ .c-gallery-modal__holder img {
142
+ max-width: 85%;
143
+ max-height: 80vh;
144
+ max-height: 80svh;
145
+ border-radius: var(--_br);
146
+ }
147
+
148
+ .c-gallery-modal__close {
149
+ position: absolute;
150
+ top: 20px;
151
+ right: 30px;
152
+ color: var(--_controls-color);
153
+ font-size: var(--_close-size);
154
+ cursor: pointer;
155
+ z-index: 1;
156
+ }
157
+
158
+ .c-gallery-modal__nav {
159
+ background: none;
160
+ border: none;
161
+ color: var(--_controls-color);
162
+ font-size: var(--_nav-size);
163
+ cursor: pointer;
164
+ padding: 10px;
165
+ transition: opacity var(--trs-duration-400) ease-out, color var(--trs-duration-400) ease-out;
166
+ z-index: 1;
167
+ }
168
+
169
+ .c-gallery-modal__nav:disabled {
170
+ opacity: .4;
171
+ transition: opacity var(--trs-duration-400) ease-out, color var(--trs-duration-400) ease-out;
172
+ }
173
+
174
+ .c-gallery-modal__counter {
175
+ margin-top: 10px;
176
+ color: var(--_controls-color);
177
+ font-size: 18px;
178
+ z-index: 1;
179
+ }
180
+
181
+
182
+ @keyframes showOverlay {
183
+ 0% {
184
+ opacity: 0;
185
+ }
186
+
187
+ 100% {
188
+ opacity: 1;
189
+ }
190
+ }
191
+
192
+ @keyframes hideOverlay {
193
+ 0% {
194
+ opacity: 1;
195
+ }
196
+
197
+ 100% {
198
+ opacity: 0;
199
+ }
200
+ }
201
+
202
+
203
+ /* ********************** MEDIA HOVER ********************** */
204
+
205
+ @media (hover: hover) {
206
+
207
+ .c-gallery-modal__close {
208
+ transition: color var(--trs-duration-400) ease-out;
209
+ }
210
+
211
+ .c-gallery-modal__close:hover,
212
+ .c-gallery-modal__nav:not(:disabled):hover {
213
+ color: var(--color-hover);
214
+ transition: opacity var(--trs-duration-400) ease-out, color var(--trs-duration-400) ease-out;
215
+ }
216
+
217
+ .c-gallery-grid__img:hover::after,
218
+ .c-gallery-grid__img:hover::before {
219
+ opacity: 1;
220
+ transition: opacity var(--trs-duration-400) ease-out;
221
+ }
222
+
223
+ }
224
+
225
+
226
+ /* ********************** SHORT MOBILE ********************** */
227
+
228
+ @media (max-width: 22.4375rem) {
229
+ /* 359px */
230
+ }
231
+
232
+
233
+
234
+
235
+
236
+ /* ********************** TALL MOBILE PORTRAIT ********************** */
237
+
238
+ @media (max-width: 47.9375rem) and (min-height: 45.625rem) {
239
+ /* 767px, 730px */
240
+ }
241
+
242
+
243
+
244
+
245
+
246
+ /* ********************** MOBILE LANDSCAPE ********************** */
247
+
248
+ @media (orientation: landscape) and (min-width: 31.25rem) and (max-width: 47.9375rem) {
249
+ /* 500px, 767px */
250
+ }
251
+
252
+
253
+
254
+
255
+
256
+ /* ********************** de Mobile a TABLET ********************** */
257
+
258
+ @media (min-width: 48rem) {
259
+
260
+ /* 768px */
261
+ .c-gallery-grid {
262
+ --_br: 16px;
263
+ }
264
+ }
265
+
266
+ @media (min-width: 48rem) and (orientation: portrait) {}
267
+
268
+
269
+
270
+
271
+ /* ********************** de Tablet a DESKTOP ********************** */
272
+
273
+ @media (min-width: 61.25rem) {
274
+ /* 980px */
275
+ }
276
+
277
+
278
+
279
+
280
+ /* ********************** de Desktop a DESKTOP 2 ********************** */
281
+
282
+ @media (min-width: 75rem) {
283
+ /* 1200px */
284
+ }
285
+
286
+ @media (min-width: 75rem) and (min-height: 45rem) {
287
+ /* 1200, 720 */
288
+ }
289
+
290
+
291
+
292
+
293
+ /* ********************** de Desktop 2 a HD ********************** */
294
+
295
+ @media (min-width: 87.5rem) {
296
+ /* 1400px */
297
+ }
298
+
299
+ @media (min-width: 87.5rem) and (min-height: 49.375rem) {
300
+ /* 1400px, 790px */
301
+ }
302
+
303
+
304
+
305
+
306
+ /* ********************** de Hd a FULL HD ********************** */
307
+
308
+ @media (min-width: 100rem) {
309
+ /* 1600px */
310
+ }
311
+
312
+ @media (min-width: 100rem) and (min-height: 49.375rem) {
313
+ /* 1600px, 790px */
314
+ }
315
+
316
+ @media (min-width: 100rem) and (min-height: 56.25rem) {
317
+ /* 1600px, 900px */
318
+ }
319
+
320
+ @media (min-width: 112.5rem) {
321
+ /* 1800px */
322
+ }
323
+
324
+ @media (min-width: 112.5rem) and (min-height: 56.25rem) {
325
+ /* 1800px, 900px */
326
+ }
@@ -71,7 +71,7 @@
71
71
  /* ✅ */ @import url(inc/components/skeleton.css); /* !(new) */
72
72
  /* ✅ */ @import url(inc/components/chat-layout.css);
73
73
  /* ✅ */ @import url(inc/components/chat-input.css);
74
-
74
+ /* ✅ */ @import url(inc/components/gallery.css); /* !(new) */
75
75
  /* Utilities */
76
76
  /* ✅ */ @import url(inc/utilities/headings.css);
77
77
  /* ✅ */ @import url(inc/utilities/subtitles.css);