Изменил компонент контактной формы, теперь более гибкий в стилизации. Изменил стили под конкретные страницы для формы

This commit is contained in:
ifraimka committed 2024-05-10 13:07:51 +03:00
1 parent 9fa6b820fb
commit 439bfca774
5 files changed
+99 -59

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ import "./Contact.styles.scss";
function Contact() {
return (
<>
<div id="page-contact">
<PageHeader>
<div className="top-block">
<div>
@@ -37,7 +37,7 @@ function Contact() {
<PageContent>
<ContactForm />
</PageContent>
</>
</div>
);
}
+34 -14
View File
@@ -1,21 +1,41 @@
.top-block {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
flex: 1 1 50%;
#page-contact {
.top-block {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
flex: 1 1 50%;
div:has(> ymaps) {
div:has(> ymaps) {
ymaps[class*="inner-panes"] {
border-radius: 8px;
ymaps[class*="inner-panes"] {
border-radius: 8px;
}
}
// div:has(> ymaps)
div:has(> ymaps)>* {
width: auto !important;
height: 100% !important;
aspect-ratio: 1;
}
}
// div:has(> ymaps)
div:has(> ymaps) > *
{
width: auto!important;
height: 100%!important;
aspect-ratio: 1;
.contact-form {
.row {
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
.row:not(:has(.submit))>* {
flex: 1 1 calc(50% - 7px);
}
.row:has(.submit)>* {
margin: 0;
flex: 1 1 calc(50% - 7px);
max-width: 35%;
}
}
}