mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 03:59:45 +00:00
Изменил компонент контактной формы, теперь более гибкий в стилизации. Изменил стили под конкретные страницы для формы
This commit is contained in:
1 parent
9fa6b820fb
commit
439bfca774
5 files changed
+99
-59
No files matched your search
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,19 @@
|
||||
#contact-us {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 60px;
|
||||
|
||||
.half {
|
||||
flex: 0 0 50%;
|
||||
flex: 1 1 50%;
|
||||
}
|
||||
|
||||
.contact-form {
|
||||
max-width: 500px;
|
||||
flex: 1 1 35%;
|
||||
|
||||
.row {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user