Исправления стилей для контактной формы (вынес gap в переменную, увеличил его значение)

This commit is contained in:
ifraimka committed 2024-05-12 16:14:52 +03:00
1 parent ca6f97c59e
commit b4fdabc853
2 files changed
+13 -5

No files matched your search

@@ -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 * {
+10 -3
View File
@@ -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%;
}
}