Files
web/components/Carousel/carousel.module.css
Chuma Mcphoy (We Ahead) 341f0c54ed Merged in fix/SW-1733-start-page-enhancements-and-fixes (pull request #1415)
Fix/SW-1733 start page enhancements and fixes

* fix: simplify carousel navigation and grid layout styling and fix padding issue

* refactor(SW-1733): replace Preamble with Body component in JoinScandicFriends

* refactor(SW-1733): update FullWidthCampaign button width styling

* feat(SW-1733): Add gradient overlay to FullWidthCampaign component

* refactor(SW-1733): Simplify FullWidthCampaign button props

* refactor(SW-1733): Remove redundant button wrapper divs in FullWidthCampaign

* refactor(SW-1733): Adjust FullWidthCampaign button wrapper min-width responsively


Approved-by: Christian Andolf
2025-02-25 16:41:02 +00:00

83 lines
1.2 KiB
CSS

.root {
position: relative;
}
.viewport {
overflow: hidden;
}
.container {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 85%;
gap: var(--Spacing-x2);
}
.item {
min-width: 0;
}
.button {
display: none;
align-items: center;
justify-content: center;
position: absolute;
top: 50%;
transform: translateY(-50%);
background: var(--Base-Surface-Primary-light-Normal);
box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.1);
border: none;
border-radius: 50%;
padding: var(--Spacing-x1);
cursor: pointer;
z-index: 1;
}
.buttonPrev {
left: -20px;
}
.buttonNext {
right: -20px;
}
.prevIcon {
transform: rotate(180deg);
}
.dots {
display: flex;
justify-content: center;
gap: var(--Spacing-x1);
margin-top: var(--Spacing-x3);
}
.dot {
height: 8px;
width: 8px;
border-radius: var(--Corner-radius-Large);
background: var(--UI-Grey-40);
transition: width 0.3s ease;
}
.dot[data-active="true"] {
width: 22px;
background: var(--UI-Text-Medium-contrast);
}
@media (min-width: 768px) {
.container {
grid-auto-columns: calc(50% - var(--Spacing-x2) / 2);
}
.button {
display: flex;
}
}
@media (min-width: 1024px) {
.container {
grid-auto-columns: calc(33.33% - var(--Spacing-x2) * 2 / 3);
}
}