mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-22 12:00:41 +03:00
Create modal.css
This commit is contained in:
parent
eef5c85217
commit
2efb974c31
1 changed files with 48 additions and 0 deletions
48
public/css/modal.css
Normal file
48
public/css/modal.css
Normal file
|
@ -0,0 +1,48 @@
|
|||
/* MODAL */
|
||||
.modal{
|
||||
position:fixed;
|
||||
left:0;
|
||||
top:0;
|
||||
width:100%;
|
||||
height:100%;
|
||||
background:red;
|
||||
background: #5b5b5bde;
|
||||
|
||||
}
|
||||
|
||||
.modal-content{
|
||||
position:absolute;
|
||||
top:50%;
|
||||
left:50%;
|
||||
transform: translate(-50%,-50%);
|
||||
background: white;
|
||||
padding: 10px;
|
||||
opacity: 0;
|
||||
display: block;
|
||||
animation: fadeIn 1s forwards;
|
||||
}
|
||||
|
||||
.modal.no-active{
|
||||
display:none;
|
||||
|
||||
}
|
||||
|
||||
.modal-close{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 10px;
|
||||
font-size: 36px;
|
||||
color: var(--main);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1;}
|
||||
}
|
||||
|
||||
@media(max-width:760px){
|
||||
.modal-content{
|
||||
width:95%;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue