fix всего кроме кнопок с label
This commit is contained in:
@@ -1718,6 +1718,7 @@ button{
|
||||
.modal-form__close:hover{
|
||||
opacity: .8;
|
||||
}
|
||||
.modal-form__button-close{}
|
||||
.modal-form__title{
|
||||
padding-right: 50px;
|
||||
|
||||
|
||||
@@ -201,7 +201,9 @@
|
||||
left: 153px;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.cabinet-card__content{
|
||||
padding-right: 19px;
|
||||
}
|
||||
/* .cabinet-card__order.active */
|
||||
/* .cabinet-card__order.active */
|
||||
/* cabinet */
|
||||
|
||||
@@ -8,6 +8,7 @@ fun.toggleOpenX('.cabinet-card__order', '.cabinet-card-order__open-detail', '.ca
|
||||
fun.modalFormOpen('.form-open');
|
||||
|
||||
fun.closeModalForm('.modal-form__close');
|
||||
fun.closeModalForm('.modal-form__button-close');
|
||||
|
||||
controlCabinet('.cabinet-control__button', '.cabinet', widthPhoneCabinet);
|
||||
|
||||
@@ -15,8 +16,6 @@ function controlCabinet(buttons, main, minWidth){
|
||||
let thisWidth = window.innerWidth;
|
||||
let thisMain = document.querySelector(main);
|
||||
|
||||
|
||||
if (thisWidth <= minWidth) {
|
||||
let thisButtons = document.querySelectorAll(buttons);
|
||||
|
||||
thisButtons.forEach(e => {
|
||||
@@ -50,7 +49,19 @@ function controlCabinet(buttons, main, minWidth){
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
let modal = document.querySelector('.modal');
|
||||
modal.onclick = function (eventModal) {
|
||||
let thisTarget = eventModal.target;
|
||||
|
||||
if (thisTarget.classList.contains('modal')) {
|
||||
thisTarget.classList.remove('active');
|
||||
|
||||
if (!thisTarget.querySelector('.modal-map.active')) {
|
||||
thisTarget.querySelector('.modal-form.active').classList.remove('active');
|
||||
}else{
|
||||
thisTarget.querySelector('.modal-map.active').classList.remove('active');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -97,11 +97,6 @@ function inputTwo(main, inputTwo) {
|
||||
block.classList.add('active');
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
// .forEach(block => {
|
||||
//
|
||||
// })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -789,7 +789,7 @@
|
||||
<div class="modal-form__buttons modal-form__buttons--two">
|
||||
<input class="button button--gradient button--high button--filter " type="submit" value="Сохранить">
|
||||
|
||||
<input type="reset" class="button button--white open-overlay button--high" value="Отмена">
|
||||
<input type="reset" class="button button--white open-overlay button--high modal-form__button-close" value="Отмена">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -1120,7 +1120,7 @@
|
||||
<div class="modal-form__buttons modal-form__buttons--two modal-map-form__button">
|
||||
<input class="button button--gradient button--high button--filter " type="submit" value="Сохранить">
|
||||
|
||||
<input type="reset" class="button button--white open-overlay button--high" value="Отмена">
|
||||
<input type="reset" class="button button--white open-overlay button--high Добавить адрес" value="Отмена">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -1132,7 +1132,7 @@
|
||||
<div class="modal-form__buttons modal-form__buttons--two modal-map-form__sub-button">
|
||||
<input class="button button--gradient button--high button--filter " type="submit" value="Сохранить">
|
||||
|
||||
<input type="reset" class="button button--white open-overlay button--high" value="Отмена">
|
||||
<input type="reset" class="button button--white open-overlay button--high modal-form__button-close" value="Отмена">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user