odin-default-css-exercises/animation/02-pop-up/style.css

64 lines
899 B
CSS
Raw Permalink Normal View History

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