Skip to content

Commit

Permalink
Modal windows shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
ezlandau committed Oct 17, 2023
1 parent aa55afa commit 9efed78
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion spring-lambda/src/components/MainPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
@keyup.enter="deleteEmail"
/>
<div v-if="showInvalidEmailModal" class="invalid-email-modal">
<div class="modal-backdrop"></div>
<div class="invalid-email-modal-content">
<span @click="closeInvalidEmailModal" class="close-button">&times;</span>
Invalid Email Format. Please enter an existing Email in the following format:<br> [email protected]
Expand Down Expand Up @@ -79,6 +80,7 @@
</div>

<div v-if="showModal" class="modal" ref="modalElement">
<div class="modal-backdrop"></div>
<div class="modal-content">
<span @click="closeModal" class="close-button">&times;</span>
Are you sure you want to delete the email: {{ emailToDelete }}?
Expand Down Expand Up @@ -423,6 +425,7 @@ export default {
top: 0;
width: 100%;
height: 100%;
z-index: 2;
}
.modal-content {
Expand All @@ -437,6 +440,7 @@ export default {
color: #F0F0F0;
text-align: center;
border-radius: 0.5em;
z-index: 2;
}
.button-container {
Expand All @@ -450,6 +454,7 @@ export default {
top: 0;
width: 100%;
height: 100%;
z-index: 2;
}
.invalid-email-modal-content {
Expand All @@ -464,14 +469,15 @@ export default {
background-color: #797979;
color: darkred;
border-radius: 0.5em;
z-index: 2;
}
.close-button {
position: absolute;
right: 1vw;
top: 0.5vw;
cursor: pointer;
color: #000000;
color: #F0F0F0;
font-size: calc(1vw + 0.5vh);
}
Expand All @@ -480,4 +486,14 @@ button:active {
color: #57BB7E;
}
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 1;
}
</style>

0 comments on commit 9efed78

Please sign in to comment.