2021-10-20 15:05:31 -07:00
|
|
|
* {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-container {
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
background-color: #ffffff;
|
|
|
|
opacity: 100%;
|
2022-01-12 12:38:29 -08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-10-20 15:05:31 -07:00
|
|
|
}
|
|
|
|
|
2022-01-12 12:38:29 -08:00
|
|
|
button {
|
2021-10-20 15:05:31 -07:00
|
|
|
padding: 20px;
|
|
|
|
color: #ffffff;
|
|
|
|
background-color: #0e79dd;
|
|
|
|
border: none;
|
|
|
|
border-radius: 5px;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2021-10-21 12:21:32 -07:00
|
|
|
.popup-modal {
|
2022-01-12 12:38:29 -08:00
|
|
|
padding: 32px 64px;
|
2021-10-20 15:05:31 -07:00
|
|
|
background-color: white;
|
|
|
|
border: 1px solid black;
|
|
|
|
border-radius: 10px;
|
2022-01-12 12:38:29 -08:00
|
|
|
position: fixed;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform-origin: center;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.popup-modal p {
|
|
|
|
margin-bottom: 24px
|
2021-10-20 15:05:31 -07:00
|
|
|
}
|
|
|
|
|
2022-01-12 12:38:29 -08:00
|
|
|
.backdrop {
|
|
|
|
pointer-events: none;
|
|
|
|
position: fixed;
|
|
|
|
inset: 0;
|
|
|
|
background: #000;
|
|
|
|
opacity: 0%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-modal.show {
|
|
|
|
opacity: 100%;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.backdrop.show {
|
|
|
|
opacity: 30%;
|
2021-10-20 15:05:31 -07:00
|
|
|
}
|
2022-01-12 12:38:29 -08:00
|
|
|
|
|
|
|
/* SOLUTION */
|
|
|
|
|
|
|
|
.popup-modal {
|
|
|
|
transition: transform .3s ease-in-out, opacity .4s ease;
|
|
|
|
transform: translate(-50%, -100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-modal.show {
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
}
|
|
|
|
|
|
|
|
|