codecheck
439 строк · 9.8 Кб
1// core
2.p-galleria-content {
3display: flex;
4flex-direction: column;
5}
6
7.p-galleria-item-wrapper {
8display: flex;
9flex-direction: column;
10position: relative;
11}
12
13.p-galleria-item-container {
14position: relative;
15display: flex;
16height: 100%;
17}
18
19.p-galleria-item-nav {
20position: absolute;
21top: 50%;
22margin-top: -0.5rem;
23display: inline-flex;
24justify-content: center;
25align-items: center;
26overflow: hidden;
27}
28
29.p-galleria-item-prev {
30left: 0;
31border-top-left-radius: 0;
32border-bottom-left-radius: 0;
33}
34
35.p-galleria-item-next {
36right: 0;
37border-top-right-radius: 0;
38border-bottom-right-radius: 0;
39}
40
41.p-galleria-item {
42display: flex;
43justify-content: center;
44align-items: center;
45height: 100%;
46width: 100%;
47}
48
49.p-galleria-item-nav-onhover .p-galleria-item-nav {
50pointer-events: none;
51opacity: 0;
52transition: opacity 0.2s ease-in-out;
53}
54
55.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {
56pointer-events: all;
57opacity: 1;
58}
59
60.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {
61pointer-events: none;
62}
63
64.p-galleria-caption {
65position: absolute;
66bottom: 0;
67left: 0;
68width: 100%;
69}
70
71/* Thumbnails */
72.p-galleria-thumbnail-wrapper {
73display: flex;
74flex-direction: column;
75overflow: auto;
76flex-shrink: 0;
77}
78
79.p-galleria-thumbnail-prev,
80.p-galleria-thumbnail-next {
81align-self: center;
82flex: 0 0 auto;
83display: flex;
84justify-content: center;
85align-items: center;
86overflow: hidden;
87position: relative;
88}
89
90.p-galleria-thumbnail-prev span,
91.p-galleria-thumbnail-next span {
92display: flex;
93justify-content: center;
94align-items: center;
95}
96
97.p-galleria-thumbnail-container {
98display: flex;
99flex-direction: row;
100}
101
102.p-galleria-thumbnail-items-container {
103overflow: hidden;
104width: 100%;
105}
106
107.p-galleria-thumbnail-items {
108display: flex;
109}
110
111.p-galleria-thumbnail-item {
112overflow: auto;
113display: flex;
114align-items: center;
115justify-content: center;
116cursor: pointer;
117opacity: 0.5;
118}
119
120.p-galleria-thumbnail-item:hover {
121opacity: 1;
122transition: opacity 0.3s;
123}
124
125.p-galleria-thumbnail-item-current {
126opacity: 1;
127}
128
129/* Positions */
130/* Thumbnails */
131.p-galleria-thumbnails-left .p-galleria-content,
132.p-galleria-thumbnails-right .p-galleria-content {
133flex-direction: row;
134}
135
136.p-galleria-thumbnails-left .p-galleria-item-wrapper,
137.p-galleria-thumbnails-right .p-galleria-item-wrapper {
138flex-direction: row;
139}
140
141.p-galleria-thumbnails-left .p-galleria-item-wrapper,
142.p-galleria-thumbnails-top .p-galleria-item-wrapper {
143order: 2;
144}
145
146.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,
147.p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {
148order: 1;
149}
150
151.p-galleria-thumbnails-left .p-galleria-thumbnail-container,
152.p-galleria-thumbnails-right .p-galleria-thumbnail-container {
153flex-direction: column;
154flex-grow: 1;
155}
156
157.p-galleria-thumbnails-left .p-galleria-thumbnail-items,
158.p-galleria-thumbnails-right .p-galleria-thumbnail-items {
159flex-direction: column;
160height: 100%;
161}
162
163/* Indicators */
164.p-galleria-indicators {
165display: flex;
166align-items: center;
167justify-content: center;
168}
169
170.p-galleria-indicator > button {
171display: inline-flex;
172align-items: center;
173}
174
175.p-galleria-indicators-left .p-galleria-item-wrapper,
176.p-galleria-indicators-right .p-galleria-item-wrapper {
177flex-direction: row;
178align-items: center;
179}
180
181.p-galleria-indicators-left .p-galleria-item-container,
182.p-galleria-indicators-top .p-galleria-item-container {
183order: 2;
184}
185
186.p-galleria-indicators-left .p-galleria-indicators,
187.p-galleria-indicators-top .p-galleria-indicators {
188order: 1;
189}
190
191.p-galleria-indicators-left .p-galleria-indicators,
192.p-galleria-indicators-right .p-galleria-indicators {
193flex-direction: column;
194}
195
196.p-galleria-indicator-onitem .p-galleria-indicators {
197position: absolute;
198display: flex;
199z-index: 1;
200}
201
202.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {
203top: 0;
204left: 0;
205width: 100%;
206align-items: flex-start;
207}
208
209.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {
210right: 0;
211top: 0;
212height: 100%;
213align-items: flex-end;
214}
215
216.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {
217bottom: 0;
218left: 0;
219width: 100%;
220align-items: flex-end;
221}
222
223.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {
224left: 0;
225top: 0;
226height: 100%;
227align-items: flex-start;
228}
229
230/* FullScreen */
231.p-galleria-mask {
232position: fixed;
233top: 0;
234left: 0;
235width: 100%;
236height: 100%;
237display: flex;
238align-items: center;
239justify-content: center;
240}
241
242.p-galleria-close {
243position: absolute;
244top: 0;
245right: 0;
246display: flex;
247justify-content: center;
248align-items: center;
249overflow: hidden;
250}
251
252.p-galleria-mask .p-galleria-item-nav {
253position: fixed;
254top: 50%;
255margin-top: -0.5rem;
256}
257
258/* Animation */
259.p-galleria-enter-active {
260transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
261}
262
263.p-galleria-leave-active {
264transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
265}
266
267.p-galleria-enter-from,
268.p-galleria-leave-to {
269opacity: 0;
270transform: scale(0.7);
271}
272
273.p-galleria-enter-active .p-galleria-item-nav {
274opacity: 0;
275}
276
277/* Keyboard Support */
278.p-items-hidden .p-galleria-thumbnail-item {
279visibility: hidden;
280}
281
282.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {
283visibility: visible;
284}
285
286// theme
287.p-galleria {
288.p-galleria-close {
289margin: $galleriaCloseIconMargin;
290background: $galleriaCloseIconBg;
291color: $galleriaCloseIconColor;
292width: $galleriaCloseIconWidth;
293height: $galleriaCloseIconHeight;
294transition: $actionIconTransition;
295border-radius: $galleriaCloseIconBorderRadius;
296
297.p-galleria-close-icon {
298font-size: $galleriaCloseIconFontSize;
299}
300
301.p-icon {
302width: $galleriaCloseIconFontSize;
303height: $galleriaCloseIconFontSize;
304}
305
306&:hover {
307background: $galleriaCloseIconHoverBg;
308color: $galleriaCloseIconHoverColor;
309}
310}
311
312.p-galleria-item-nav {
313background: $galleriaItemNavigatorBg;
314color: $galleriaItemNavigatorColor;
315width: $galleriaItemNavigatorWidth;
316height: $galleriaItemNavigatorHeight;
317transition: $actionIconTransition;
318border-radius: $galleriaItemNavigatorBorderRadius;
319margin: $galleriaItemNavigatorMargin;
320
321.p-galleria-item-prev-icon,
322.p-galleria-item-next-icon {
323font-size: $galleriaItemNavigatorFontSize;
324}
325
326.p-icon {
327width: $galleriaCloseIconFontSize;
328height: $galleriaCloseIconFontSize;
329}
330
331&:not(.p-disabled) {
332&:hover {
333background: $galleriaItemNavigatorHoverBg;
334color: $galleriaItemNavigatorHoverColor;
335}
336}
337}
338
339.p-galleria-caption {
340background: $galleriaCaptionBg;
341color: $galleriaCaptionTextColor;
342padding: $galleriaCaptionPadding;
343}
344
345.p-galleria-indicators {
346padding: $galleriaIndicatorsPadding;
347
348.p-galleria-indicator {
349button {
350background-color: $galleriaIndicatorBg;
351width: $galleriaIndicatorWidth;
352height: $galleriaIndicatorHeight;
353transition: $actionIconTransition;
354border-radius: $galleriaIndicatorBorderRadius;
355
356&:hover {
357background: $galleriaIndicatorHoverBg;
358}
359}
360
361&.p-highlight {
362button {
363background: $highlightBg;
364color: $highlightTextColor;
365}
366}
367}
368}
369
370&.p-galleria-indicators-bottom,
371&.p-galleria-indicators-top {
372.p-galleria-indicator {
373margin-right: $inlineSpacing;
374}
375}
376
377&.p-galleria-indicators-left,
378&.p-galleria-indicators-right {
379.p-galleria-indicator {
380margin-bottom: $inlineSpacing;
381}
382}
383
384&.p-galleria-indicator-onitem {
385.p-galleria-indicators {
386background: $galleriaIndicatorsBgOnItem;
387
388.p-galleria-indicator {
389button {
390background: $galleriaIndicatorBgOnItem;
391
392&:hover {
393background: $galleriaIndicatorHoverBgOnItem;
394}
395}
396
397&.p-highlight {
398button {
399background: $highlightBg;
400color: $highlightTextColor;
401}
402}
403}
404}
405}
406
407.p-galleria-thumbnail-container {
408background: $galleriaThumbnailContainerBg;
409padding: $galleriaThumbnailContainerPadding;
410
411.p-galleria-thumbnail-prev,
412.p-galleria-thumbnail-next {
413margin: $inlineSpacing;
414background-color: $galleriaThumbnailNavigatorBg;
415color: $galleriaThumbnailNavigatorColor;
416width: $galleriaThumbnailNavigatorWidth;
417height: $galleriaThumbnailNavigatorHeight;
418transition: $actionIconTransition;
419border-radius: $galleriaThumbnailNavigatorBorderRadius;
420
421&:hover {
422background: $galleriaThumbnailNavigatorHoverBg;
423color: $galleriaThumbnailNavigatorHoverColor;
424}
425}
426
427.p-galleria-thumbnail-item-content {
428outline-color: transparent;
429
430&:focus-visible {
431@include focused();
432}
433}
434}
435}
436
437.p-galleria-mask {
438--maskbg: #{$galleriaMaskBg};
439}
440