Исправления стилей для контактной формы (вынес 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

+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%;
}
}