From b4fdabc853a6c159e99cde1fbd9fbcc96c7f48ab Mon Sep 17 00:00:00 2001 From: ifraimka Date: Sun, 12 May 2024 16:14:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=81=D1=82=D0=B8=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B0=D0=BA?= =?UTF-8?q?=D1=82=D0=BD=D0=BE=D0=B9=20=D1=84=D0=BE=D1=80=D0=BC=D1=8B=20(?= =?UTF-8?q?=D0=B2=D1=8B=D0=BD=D0=B5=D1=81=20gap=20=D0=B2=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=83=D1=8E,=20=D1=83?= =?UTF-8?q?=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B8=D0=BB=20=D0=B5=D0=B3=D0=BE?= =?UTF-8?q?=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ContactForm/ContactForm.styles.scss | 5 +++-- src/pages/Contact/Contact.styles.scss | 13 ++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/ContactForm/ContactForm.styles.scss b/src/components/ContactForm/ContactForm.styles.scss index dc349b1..d47ed4c 100644 --- a/src/components/ContactForm/ContactForm.styles.scss +++ b/src/components/ContactForm/ContactForm.styles.scss @@ -1,4 +1,5 @@ @import "../../assets/styles/theme.scss"; +$gap: 20px; $icon-size: 24px; $color-file-button: rgb(7, 42, 200); @@ -19,7 +20,7 @@ $color-file-button: rgb(7, 42, 200); .inputs { display: flex; flex-direction: column; - gap: 14px; + gap: $gap; * { box-sizing: border-box; @@ -27,7 +28,7 @@ $color-file-button: rgb(7, 42, 200); .row { display: flex; - gap: 14px; + gap: $gap; } .file-input * { diff --git a/src/pages/Contact/Contact.styles.scss b/src/pages/Contact/Contact.styles.scss index 9af2287..d719093 100644 --- a/src/pages/Contact/Contact.styles.scss +++ b/src/pages/Contact/Contact.styles.scss @@ -1,9 +1,17 @@ +@import "../../components/ContactForm/ContactForm.styles.scss"; + #page-contact { .top-block { display: flex; flex-wrap: wrap; justify-content: space-between; flex: 1 1 50%; + + margin-bottom: 2em; + + h1 { + margin-top: 0; + } div:has(> ymaps) { @@ -28,13 +36,12 @@ align-items: center; } - .row:not(:has(.submit))>* { - flex: 1 1 calc(50% - 7px); + .row > * { + flex: 1 1 calc(50% - ($gap / 2)); } .row:has(.submit)>* { margin: 0; - flex: 1 1 calc(50% - 7px); max-width: 35%; } }