Skip to content

Commit 103cb12

Browse files
committed
fix: new layout spacing and margins
1 parent cdf5769 commit 103cb12

8 files changed

Lines changed: 7 additions & 14 deletions

File tree

.do/deploy.template.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

components/composite/Checkout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ const Checkout: React.FC<Props> = ({
232232
}
233233

234234
const Sidebar = styled.div`
235-
${tw`flex flex-col min-h-full p-5 lg:pl-20 lg:pr-10 lg:pt-10 xl:pl-48 bg-gray-50`}
235+
${tw`flex flex-col min-h-full p-5 md:px-8 lg:px-12 lg:pt-10 xl:px-24 xl:pt-12 bg-gray-50`}
236236
`
237237
const SummaryWrapper = styled.div`
238238
${tw`flex-1`}

components/composite/CheckoutSkeleton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const CheckoutSkeleton: React.FC = () => {
9595
}
9696

9797
const Sidebar = styled.div`
98-
${tw`flex flex-col min-h-full p-5 lg:pl-20 lg:pr-10 pt-10 xl:pl-48`}
98+
${tw`flex flex-col min-h-full p-5 md:px-8 lg:px-12 lg:pt-10 xl:px-24 xl:pt-12`}
9999
`
100100
const SummaryWrapper = styled.div`
101101
${tw`flex-1`}

components/composite/StepPayment/styled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { CheckCss } from "components/ui/form/CheckBox"
66
import { RadioCss } from "components/ui/form/RadioButton"
77

88
export const PaymentWrapper = styled.div`
9-
${tw`will-change-transform text-black border border-gray-300 mb-5 p-3 rounded bg-gray-50 relative transition duration-200 ease-in hover:border-primary group-hover:(cursor-pointer) group-last:mb-0`}
9+
${tw`will-change-transform text-black border border-gray-300 mb-5 p-4 rounded bg-gray-50 relative transition duration-200 ease-in hover:border-primary group-hover:(cursor-pointer) group-first:mt-6 group-last:mb-0`}
1010
1111
label {
1212
${tw`group-hover:(cursor-pointer)`}

components/composite/StepShipping/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export const StepShipping: React.FC<Props> = () => {
200200
autoSelectSingleShippingMethod={autoSelectCallback}
201201
loader={
202202
<div className="animate-pulse">
203-
<div className="w-1/2 h-5 bg-gray-200" />
203+
<div className="w-1/2 h-5 bg-gray-200 mt-6" />
204204
<div className="h-20 my-5 bg-gray-200" />
205205
</div>
206206
}

components/composite/StepShipping/styled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import tw from "twin.macro"
55
import { RadioCss } from "components/ui/form/RadioButton"
66

77
export const ShippingWrapper = styled.div`
8-
${tw`mb-5`}
8+
${tw`mb-5 mt-6`}
99
:not(:first-of-type) {
1010
${tw`pt-5 mt-5 border-dashed border-t-2`}
1111
}

components/ui/Accordion/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const AccordionIcon = styled.div`
9090
}
9191
`
9292
const AccordionBody = styled.div`
93-
${tw`max-h-0 transition duration-200 ease-in opacity-0 lg:ml-8`}
93+
${tw`max-h-0 transition duration-200 ease-in opacity-0`}
9494
.active & {
9595
${tw`max-h-full opacity-100`}
9696
}

components/ui/Card/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface WrapperProps {
2525
}
2626

2727
const Wrapper = styled.div<WrapperProps>`
28-
${tw`p-5 lg:p-10 lg:pr-20 xl:pr-48 bg-gray-50 bg-white shadow-sm`}
28+
${tw`p-5 md:px-8 lg:px-12 lg:pt-10 xl:px-24 xl:pt-12 bg-gray-50 bg-white shadow-sm`}
2929
${({ rounded }) => (rounded ? tw`rounded-md` : null)}
3030
${({ fullHeight }) => (fullHeight ? tw`min-h-full ` : null)}
3131
`

0 commit comments

Comments
 (0)