fix всего кроме кнопок с label

This commit is contained in:
Kirill Pet
2024-10-31 13:08:03 +03:00
parent fa143ef289
commit f662641ca8
11 changed files with 46 additions and 2053 deletions

View File

@@ -1718,6 +1718,7 @@ button{
.modal-form__close:hover{ .modal-form__close:hover{
opacity: .8; opacity: .8;
} }
.modal-form__button-close{}
.modal-form__title{ .modal-form__title{
padding-right: 50px; padding-right: 50px;

View File

@@ -201,7 +201,9 @@
left: 153px; left: 153px;
bottom: 0; bottom: 0;
} }
.cabinet-card__content{
padding-right: 19px;
}
/* .cabinet-card__order.active */ /* .cabinet-card__order.active */
/* .cabinet-card__order.active */ /* .cabinet-card__order.active */
/* cabinet */ /* cabinet */

View File

@@ -8,6 +8,7 @@ fun.toggleOpenX('.cabinet-card__order', '.cabinet-card-order__open-detail', '.ca
fun.modalFormOpen('.form-open'); fun.modalFormOpen('.form-open');
fun.closeModalForm('.modal-form__close'); fun.closeModalForm('.modal-form__close');
fun.closeModalForm('.modal-form__button-close');
controlCabinet('.cabinet-control__button', '.cabinet', widthPhoneCabinet); controlCabinet('.cabinet-control__button', '.cabinet', widthPhoneCabinet);
@@ -15,8 +16,6 @@ function controlCabinet(buttons, main, minWidth){
let thisWidth = window.innerWidth; let thisWidth = window.innerWidth;
let thisMain = document.querySelector(main); let thisMain = document.querySelector(main);
if (thisWidth <= minWidth) {
let thisButtons = document.querySelectorAll(buttons); let thisButtons = document.querySelectorAll(buttons);
thisButtons.forEach(e => { thisButtons.forEach(e => {
@@ -49,8 +48,20 @@ 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');
}
} }
} }

View File

@@ -97,11 +97,6 @@ function inputTwo(main, inputTwo) {
block.classList.add('active'); 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

View File

@@ -789,7 +789,7 @@
<div class="modal-form__buttons modal-form__buttons--two"> <div class="modal-form__buttons modal-form__buttons--two">
<input class="button button--gradient button--high button--filter " type="submit" value="Сохранить"> <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>
</form> </form>
</div> </div>
@@ -1120,7 +1120,7 @@
<div class="modal-form__buttons modal-form__buttons--two modal-map-form__button"> <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 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> </div>
</form> </form>
</div> </div>
@@ -1132,7 +1132,7 @@
<div class="modal-form__buttons modal-form__buttons--two modal-map-form__sub-button"> <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 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> </div>
</div> </div>