diff --git a/src/components/CardWithIcon/CardWithIcon.module.scss b/src/components/CardWithIcon/CardWithIcon.module.scss index 1328784..ab46cd2 100644 --- a/src/components/CardWithIcon/CardWithIcon.module.scss +++ b/src/components/CardWithIcon/CardWithIcon.module.scss @@ -1,5 +1,5 @@ -.title{ +.title { font-family: var(--font-brand); font-weight: bold; - font-size: 20px; -} \ No newline at end of file + font-size: var(--title-size-mobile); +} diff --git a/src/components/Hero/Hero.module.scss b/src/components/Hero/Hero.module.scss index 408c3de..36bcbc8 100644 --- a/src/components/Hero/Hero.module.scss +++ b/src/components/Hero/Hero.module.scss @@ -31,11 +31,17 @@ font-size: 70px; font-weight: 600; margin: 0; + @media (max-width: 765px) { + font-size: var(--title-size); + } } p { margin: 0 20px; margin-bottom: 20px; text-align: center; + @media (max-width: 765px) { + font-size: 14px; + } } .downArrow { position: absolute; diff --git a/src/components/OrderSummary/OrderSummary.module.scss b/src/components/OrderSummary/OrderSummary.module.scss index f267a4a..fa0502a 100644 --- a/src/components/OrderSummary/OrderSummary.module.scss +++ b/src/components/OrderSummary/OrderSummary.module.scss @@ -5,14 +5,12 @@ max-height: 240px; .layout { padding: 30px; - p{ - - font-family: var(--font-brand); - font-weight: bold; - font-size: 20px; - + p { + font-family: var(--font-brand); + font-weight: bold; + font-size: var(--title-size-mobile); } - a{ + a { padding-bottom: 20px; } } diff --git a/src/index.css b/src/index.css index f8f04a2..e3d222f 100644 --- a/src/index.css +++ b/src/index.css @@ -18,6 +18,7 @@ --color-secondary-light: white; --shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); --title-size: 40px; + --title-size-mobile: 20px; --font-brand: "Crimson Pro", serif; } diff --git a/src/pages/CheckoutWizard/Address/Address.tsx b/src/pages/CheckoutWizard/Address/Address.tsx index f09f3c7..084b5b5 100644 --- a/src/pages/CheckoutWizard/Address/Address.tsx +++ b/src/pages/CheckoutWizard/Address/Address.tsx @@ -131,6 +131,7 @@ export const Address = ({ onNext }: AddressProps) => {