mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
🎨 styles: cart drawer
:%s
This commit is contained in:
parent
7a5a28082b
commit
aa285d8577
@ -8,6 +8,7 @@
|
||||
:global(.customArrow) {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: .8rem;
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
@apply flex bg-info;
|
||||
padding: 1.2rem 1.6rem;
|
||||
.text {
|
||||
color: var(--white);
|
||||
font-weight: bold;
|
||||
margin-right: 0.8rem;
|
||||
}
|
||||
|
@ -12,6 +12,7 @@
|
||||
.productCardWarpper {
|
||||
padding-left: 1.6rem;
|
||||
:global(.customArrow) {
|
||||
@apply bg-line;
|
||||
@screen lg {
|
||||
&:global(.leftArrow) {
|
||||
left: calc(-6.4rem - 2rem);
|
||||
|
@ -10,7 +10,7 @@ const ProductsInCart = ({ data }: Props) => {
|
||||
return (
|
||||
<ul className={s.productsInCart}>
|
||||
{
|
||||
data.map(item => <li key={item.name}>
|
||||
data.slice(0,1).map(item => <li key={item.name}>
|
||||
<ProductCartItem
|
||||
name={item.name}
|
||||
slug={item.slug}
|
||||
|
@ -9,19 +9,15 @@
|
||||
width: 90%;
|
||||
box-shadow: -3px 0 10px rgba(0, 0, 0, 0.15);
|
||||
z-index: 20000;
|
||||
@screen md {
|
||||
width: unset;
|
||||
}
|
||||
|
||||
.inner {
|
||||
@apply flex flex-col bg-white;
|
||||
width: fit-content;
|
||||
height: 100vh;
|
||||
min-width: 48rem;
|
||||
width: 100%;
|
||||
margin-right: 0;
|
||||
@screen md {
|
||||
max-width: 50rem;
|
||||
max-width: 55rem;
|
||||
}
|
||||
.top {
|
||||
@apply flex justify-between items-center;
|
||||
@ -46,4 +42,11 @@
|
||||
&.hide {
|
||||
transform: translateX(110%);
|
||||
}
|
||||
|
||||
@screen md {
|
||||
width: unset;
|
||||
.inner {
|
||||
min-width: 48rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user