primevue-mirror/components/lib/themes/primeone/base/carousel/index.js

93 lines
1.9 KiB
JavaScript
Raw Normal View History

export default {
css: ({ dt }) => `
.p-carousel {
display: flex;
flex-direction: column;
}
2024-04-10 06:34:25 +00:00
.p-carousel-content-container {
display: flex;
flex-direction: column;
overflow: auto;
}
2024-04-10 06:34:25 +00:00
.p-carousel-content {
display: flex;
flex-direction: row;
}
2024-04-10 06:34:25 +00:00
.p-carousel-viewport {
overflow: hidden;
width: 100%;
}
2024-04-10 06:34:25 +00:00
.p-carousel-items {
display: flex;
flex-direction: row;
}
2024-04-15 08:08:42 +00:00
.p-carousel-prev-button,
.p-carousel-next-button {
align-self: center;
}
.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-04-10 06:34:25 +00:00
.p-carousel-indicator-button {
display: flex;
align-items: center;
justify-content: center;
2024-03-12 11:27:32 +00:00
background: ${dt('carousel.indicator.background')};
width: 2rem;
height: 0.5rem;
border: 0 none;
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
outline-color: transparent;
border-radius: ${dt('rounded.base')};
2024-04-10 06:34:25 +00:00
padding: 0;
margin: 0;
border: none;
user-select: none;
}
2024-04-10 06:34:25 +00:00
.p-carousel-indicator-button:focus-visible {
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
outline-offset: ${dt('focus.ring.offset')};
}
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-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-04-10 06:34:25 +00:00
.p-carousel-vertical .p-carousel-content {
flex-direction: column;
}
2024-04-10 06:34:25 +00:00
.p-carousel-vertical .p-carousel-items {
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;
}
`
};