Files
web/apps/scandic-web/components/Carousel/carousel.module.css
Erik Tiekstra 4ec1e85d84 Feat/BOOK-293 button adjustments
* feat(BOOK-293): Adjusted padding of the buttons to match Figma design
* feat(BOOK-293): Updated variants for IconButton
* feat(BOOK-113): Updated focus indicators on buttons and added default focus ring color
* feat(BOOK-293): Replaced buttons inside booking widget

Approved-by: Christel Westerberg
2025-12-15 07:05:31 +00:00

77 lines
1.2 KiB
CSS

.root {
position: relative;
}
.viewport {
overflow: hidden;
}
.container {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 85%;
gap: var(--Space-x2);
}
.item {
min-width: 0;
}
.item:focus-visible {
outline: 2px auto var(--Border-Interactive-Focus);
outline-offset: 1px;
}
.buttonWrapper {
position: absolute;
top: 50%;
z-index: 1;
&.previous {
left: 0;
transform: translate(-50%, -50%);
}
&.next {
right: 0;
transform: translate(50%, -50%);
}
}
.dots {
display: flex;
justify-content: center;
gap: var(--Space-x1);
margin-top: var(--Space-x3);
}
.dot {
height: 8px;
width: 8px;
border-radius: var(--Corner-radius-lg);
background: var(--UI-Grey-40);
transition: width 0.3s ease;
}
.dot[data-active="true"] {
width: 22px;
background: var(--UI-Text-Medium-contrast);
}
@media screen and (max-width: 767px) {
.buttonWrapper {
display: none;
}
}
@media screen and (min-width: 768px) {
.container {
grid-auto-columns: calc(50% - var(--Space-x2) / 2);
}
}
@media screen and (min-width: 1024px) {
.container {
grid-auto-columns: calc(33.33% - var(--Space-x2) * 2 / 3);
}
}