2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-galleria-content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-items-container {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-items {
|
2024-02-19 22:53:42 +00:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-navigate-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -0.5rem;
|
|
|
|
display: inline-flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
background: transparent;
|
2024-03-12 11:27:32 +00:00
|
|
|
color: ${dt('galleria.navigator.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 3rem;
|
|
|
|
height: 3rem;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
margin: 0 0.5rem;
|
2024-04-10 12:05:27 +00:00
|
|
|
padding: 0;
|
|
|
|
user-select: none;
|
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-navigate-button:not(.p-disabled):hover {
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('galleria.navigator.hover.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-next-icon,
|
|
|
|
.p-galleria-prev-icon {
|
2024-02-19 22:53:42 +00:00
|
|
|
font-size: 1.5rem;
|
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-prev-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-next-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-item {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-hover-navigators .p-galleria-navigate-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: opacity ${dt('transition.duration')} ease-in-out;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-hover-navigators .p-galleria-items-container:hover .p-galleria-navigate-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
pointer-events: all;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-hover-navigators .p-galleria-items-container:hover .p-galleria-navigate-button.p-disabled {
|
2024-02-19 22:53:42 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-caption {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('galleria.caption.background')};
|
|
|
|
color: ${dt('galleria.caption.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnails {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: auto;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnail-prev-button,
|
|
|
|
.p-galleria-thumbnail-next-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
align-self: center;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
margin: 0.5rem;
|
2024-04-10 12:05:27 +00:00
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
2024-02-19 22:53:42 +00:00
|
|
|
background: transparent;
|
2024-03-12 11:27:32 +00:00
|
|
|
color: ${dt('galleria.thumbnail.navigator.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 2rem;
|
|
|
|
height: 2rem;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnail-prev-button:hover,
|
|
|
|
.p-galleria-thumbnail-next-button:hover {
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('galleria.thumbnail.navigator.hover.background')};
|
|
|
|
color: ${dt('galleria.thumbnail.navigator.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnail-prev-button:focus-visible,
|
|
|
|
.p-galleria-thumbnail-next-button:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnail-prev-button span,
|
|
|
|
.p-galleria-thumbnail-next-button span {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnails-content {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('galleria.thumbnail.container.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
padding: 1rem 0.25rem;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnails-viewport {
|
2024-02-19 22:53:42 +00:00
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-thumbnail-items {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-thumbnail-item {
|
|
|
|
overflow: auto;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnail {
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnail:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-thumbnail-item:hover {
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-thumbnail-item-current {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-thumbnails-left .p-galleria-content,
|
|
|
|
.p-galleria-thumbnails-right .p-galleria-content {
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnails-left .p-galleria-items-container,
|
|
|
|
.p-galleria-thumbnails-right .p-galleria-items-container {
|
2024-02-19 22:53:42 +00:00
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnails-left .p-galleria-items-container,
|
|
|
|
.p-galleria-thumbnails-top .p-galleria-items-container {
|
2024-02-19 22:53:42 +00:00
|
|
|
order: 2;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnails-left .p-galleria-thumbnails,
|
|
|
|
.p-galleria-thumbnails-top .p-galleria-thumbnails {
|
2024-02-19 22:53:42 +00:00
|
|
|
order: 1;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-thumbnails-left .p-galleria-thumbnails-content,
|
|
|
|
.p-galleria-thumbnails-right .p-galleria-thumbnails-content {
|
2024-02-19 22:53:42 +00:00
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-thumbnails-left .p-galleria-thumbnail-items,
|
|
|
|
.p-galleria-thumbnails-right .p-galleria-thumbnail-items {
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-indicators {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 1rem;
|
|
|
|
gap: 0.5rem;
|
2024-04-10 12:05:27 +00:00
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-indicator-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('galleria.indicator.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
border-radius: 50%;
|
2024-04-10 12:05:27 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-indicator-button:hover {
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('galleria.indicator.hover.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-indicator-button:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-indicator-active .p-galleria-indicator-button {
|
2024-03-12 11:27:32 +00:00
|
|
|
background-color: ${dt('galleria.indicator.active.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-indicators-left .p-galleria-items-container,
|
|
|
|
.p-galleria-indicators-right .p-galleria-items-container {
|
2024-02-19 22:53:42 +00:00
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-indicators-left .p-galleria-items,
|
|
|
|
.p-galleria-indicators-top .p-galleria-items {
|
2024-02-19 22:53:42 +00:00
|
|
|
order: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-indicators-left .p-galleria-indicators,
|
|
|
|
.p-galleria-indicators-top .p-galleria-indicators {
|
|
|
|
order: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-indicators-left .p-galleria-indicators,
|
|
|
|
.p-galleria-indicators-right .p-galleria-indicators {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-inset-indicators .p-galleria-indicators {
|
2024-02-19 22:53:42 +00:00
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
z-index: 1;
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('galleria.inset.indicators.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-inset-indicators .p-galleria-indicator-button {
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('galleria.inset.indicator.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-inset-indicators .p-galleria-indicator-button:hover {
|
|
|
|
background: ${dt('galleria.inset.indicator.hover.background')};
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-inset-indicators .p-galleria-indicator-active .p-galleria-indicator-button {
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('galleria.inset.indicator.active.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-inset-indicators.p-galleria-indicators-top .p-galleria-indicators {
|
2024-02-19 22:53:42 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-inset-indicators.p-galleria-indicators-right .p-galleria-indicators {
|
2024-02-19 22:53:42 +00:00
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
height: 100%;
|
|
|
|
align-items: flex-end;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-inset-indicators.p-galleria-indicators-bottom .p-galleria-indicators {
|
2024-02-19 22:53:42 +00:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
align-items: flex-end;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-inset-indicators.p-galleria-indicators-left .p-galleria-indicators {
|
2024-02-19 22:53:42 +00:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
height: 100%;
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-mask {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-03-12 11:27:32 +00:00
|
|
|
--p-mask-background: ${dt('galleria.mask.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-close-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
margin: 0.5rem;
|
|
|
|
background: transparent;
|
2024-03-12 11:27:32 +00:00
|
|
|
color: ${dt('galleria.close.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 3rem;
|
|
|
|
height: 3rem;
|
2024-04-10 12:05:27 +00:00
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
2024-02-19 22:53:42 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
outline-color: transparent;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-close-icon {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-close-button:hover {
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('galleria.close.hover.background')};
|
|
|
|
color: ${dt('galleria.close.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-close-button:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-mask .p-galleria-navigate-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
position: fixed;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-enter-active {
|
|
|
|
transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-leave-active {
|
|
|
|
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-galleria-enter-from,
|
|
|
|
.p-galleria-leave-to {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(0.7);
|
|
|
|
}
|
|
|
|
|
2024-04-10 12:05:27 +00:00
|
|
|
.p-galleria-enter-active .p-galleria-navigate-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-items-hidden .p-galleria-thumbnail-item {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|