akf-forum/public/css/modal.css

75 lines
1,012 B
CSS
Raw Normal View History

form {
display: flex;
align-items: center;
flex-direction: column;
max-width: 500px;
margin: 0 auto;
width: 100%;
padding: 8px;
}
.input {
padding: 8px 10px;
font-family: inherit;
display: block;
font-weight: 600;
color: var(--input-clr);
width: 100%;
margin-bottom: 10px;
border: 2px solid var(--borders);
}
2022-09-08 15:09:13 +03:00
/* MODAL */
.forum-modal {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
2022-09-08 15:09:13 +03:00
background: #5b5b5bde;
2022-09-08 15:09:13 +03:00
}
.forum-modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
2022-09-08 15:09:13 +03:00
background: white;
padding: 10px;
opacity: 0;
display: block;
animation: fadeIn 1s forwards;
2022-09-08 15:09:13 +03:00
}
.forum-modal.no-active {
display: none;
2022-09-08 15:09:13 +03:00
}
.forum-modal-close {
2022-09-08 15:09:13 +03:00
position: absolute;
top: 0;
right: 10px;
font-size: 36px;
color: var(--main);
cursor: pointer;
2022-09-08 15:09:13 +03:00
}
@keyframes fadeIn {
from {
opacity: 0;
}
2022-09-08 15:09:13 +03:00
to {
opacity: 1;
2022-09-08 15:09:13 +03:00
}
}
@media(max-width:760px) {
.forum-modal-content {
width: 95%;
}
}