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-carousel {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2024-04-10 06:34:25 +00:00
|
|
|
.p-carousel-content-container {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2024-04-10 06:34:25 +00:00
|
|
|
.p-carousel-content {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2024-04-10 06:34:25 +00:00
|
|
|
.p-carousel-viewport {
|
2024-02-19 22:53:42 +00:00
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2024-04-10 06:34:25 +00:00
|
|
|
.p-carousel-items {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2024-04-15 08:08:42 +00:00
|
|
|
.p-carousel-prev-button,
|
|
|
|
.p-carousel-next-button {
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-carousel-indicators {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
padding: 1rem;
|
|
|
|
gap: 0.5rem;
|
2024-04-10 06:34:25 +00:00
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 06:34:25 +00:00
|
|
|
.p-carousel-indicator-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('carousel.indicator.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 2rem;
|
|
|
|
height: 0.5rem;
|
|
|
|
border: 0 none;
|
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;
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-04-10 06:34:25 +00:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
border: none;
|
|
|
|
user-select: none;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 06:34:25 +00:00
|
|
|
.p-carousel-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 06:34:25 +00:00
|
|
|
.p-carousel-indicator-button:hover {
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('carousel.indicator.hover.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 06:34:25 +00:00
|
|
|
.p-carousel-indicator-active .p-carousel-indicator-button {
|
2024-03-12 11:27:32 +00:00
|
|
|
background: ${dt('carousel.indicator.active.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-10 06:34:25 +00:00
|
|
|
.p-carousel-vertical .p-carousel-content {
|
2024-02-19 22:53:42 +00:00
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2024-04-10 06:34:25 +00:00
|
|
|
.p-carousel-vertical .p-carousel-items {
|
2024-02-19 22:53:42 +00:00
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-items-hidden .p-carousel-item {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-items-hidden .p-carousel-item.p-carousel-item-active {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|