Skip to content

Commit

Permalink
P9 confirm modal fix 9/22/23
Browse files Browse the repository at this point in the history
  • Loading branch information
jma3974 committed Sep 22, 2023
1 parent bef088c commit 0b71045
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions src/blocks/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@
z-index: 10;
}

.modal__container-confirm {
position: absolute;
width: 430px;
height: 181px;
left: 50%;
top: 50%;
border-radius: 10px;
background-color: white;
margin-left: -215px;
margin-top: -165px;
font-family: Inter, Arial, sans-serif;
z-index: 10;
}

.modal__container-avatar {
position: absolute;
width: 430px;
Expand Down Expand Up @@ -99,6 +113,9 @@ line-height: 1.2;
cursor: pointer;
transition: opacity ease-in-out .3s;
}
.modal__button-confirm {
margin: 10px auto auto 36px;
}

.modal__button:hover:not(:disabled) {
opacity: 80%;
Expand Down
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ <h3 class="modal__image-title"></h3>
<!-- CONFIRM DELETE MODAL 430x 181-->

<div class="modal" id="deleteCard-modal">
<div class="modal__container">
<div class="modal__container-confirm">
<button
type="button"
class="modal__close"
aria-label="Close edit profile"
></button>
<p class="modal__header">Are you sure?</p>
<form id="deleteCard-button" class="modal__form">
<button class="modal__button" type="submit">Yes</button>
<button class="modal__button modal__button-confirm" type="submit">Yes</button>
</form>
</div>
</div>
Expand Down

0 comments on commit 0b71045

Please sign in to comment.