mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
86 lines
1.2 KiB
CSS
86 lines
1.2 KiB
CSS
.root {
|
|
@apply relative w-full h-full;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.slider {
|
|
@apply relative h-full transition-opacity duration-150;
|
|
opacity: 0;
|
|
}
|
|
|
|
.slider.show {
|
|
opacity: 1;
|
|
}
|
|
|
|
.control {
|
|
@apply bg-violet absolute bottom-10 right-10 flex flex-row
|
|
border-accent-0 border text-accent-0 z-30 shadow-xl;
|
|
height: 48px;
|
|
}
|
|
|
|
.leftControl,
|
|
.rightControl {
|
|
@apply px-8 cursor-pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.leftControl:hover,
|
|
.rightControl:hover {
|
|
background-color: var(--violet-dark);
|
|
}
|
|
|
|
.leftControl:focus,
|
|
.rightControl:focus {
|
|
@apply outline-none;
|
|
}
|
|
|
|
.rightControl {
|
|
@apply border-l;
|
|
}
|
|
|
|
.leftControl {
|
|
margin-right: -1px;
|
|
}
|
|
|
|
.thumb {
|
|
@apply transition-transform transition-colors
|
|
ease-linear duration-75 overflow-hidden inline-block
|
|
cursor-pointer h-full;
|
|
width: 125px;
|
|
width: calc(100% / 3);
|
|
}
|
|
|
|
.thumb.selected {
|
|
@apply bg-white;
|
|
}
|
|
|
|
.thumb img {
|
|
height: 85% !important;
|
|
}
|
|
|
|
.album {
|
|
@apply bg-violet-dark;
|
|
overflow-y: hidden;
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
height: 125px;
|
|
}
|
|
|
|
@screen md {
|
|
.thumb:hover {
|
|
transform: scale(1.02);
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.thumb.selected {
|
|
@apply bg-white;
|
|
}
|
|
|
|
.album {
|
|
height: 182px;
|
|
}
|
|
.thumb {
|
|
width: 235px;
|
|
}
|
|
}
|