fix 18.11

This commit is contained in:
Kirill Pet
2024-11-18 17:26:46 +03:00
parent 01e6e988e5
commit 767d40f248
5 changed files with 24 additions and 13 deletions

View File

@@ -1862,6 +1862,9 @@ button{
display: flex;
justify-content: space-between;
}
.modal-form-content__line--two-mobile .modal-form-content-line__element{
width: calc(50% - 12px);
}
.modal-form-content-line__element{
position: relative;
}

View File

@@ -99,9 +99,6 @@
.modal-form-content__line--three .modal-form-content-line__element:nth-child(3){
width: 82px;
}
.modal-form-content__line--two-mobile .modal-form-content-line__element{
width: calc(50% - 12px);
}
.form__input{
padding: 12px 14px;
}

View File

@@ -143,6 +143,7 @@
display: flex;
justify-content: space-between;
align-items: center;
}
.order-your-calculation__title{
font-family: var(--font-family);

View File

@@ -76,7 +76,7 @@ function checkPhone(input) {
inputTabs('.form-input__tabs', '.form-input-tabs__button');
inputTabs('.modal-map__control', '.modal-map-control__item');
function inputTabs(main, button) {
function inputTabs(main, button, mandatory) {
let mains = document.querySelectorAll(main);
mains.forEach(main => {
@@ -186,6 +186,16 @@ function remoteControl(main, button) {
subject.querySelector('.remote-control__item.active').classList.remove('active');
subject.children[indexActive].classList.add('active');
let mandatorys = subject.querySelectorAll('.mandatory');
mandatorys.forEach(mandatory => {
if (mandatory.required) {
mandatory.required = false;
}else{
mandatory.required = true;
}
})
}, 0);
})
})