70 lines
1019 B
CSS
70 lines
1019 B
CSS
/*Modal Style*/
|
|
.modal {
|
|
margin: 100px auto;
|
|
padding: 20px;
|
|
background: var(--bg-color);
|
|
border: 1px solid #666;
|
|
width: 300px;
|
|
border-radius: 6px;
|
|
box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
|
|
position: relative;
|
|
}
|
|
|
|
.modal h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.modal .close {
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
top: 20px;
|
|
right: 20px;
|
|
opacity: 0.8;
|
|
transition: all 200ms;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
color: var(--txt-color);
|
|
}
|
|
|
|
.modal .close:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.modal .content {
|
|
max-height: 400px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.modal p {
|
|
margin: 0 0 1em;
|
|
text-align: center;
|
|
}
|
|
|
|
.modal p:last-child {
|
|
margin: 0;
|
|
}
|
|
/*Modal background Style*/
|
|
.overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
transition: opacity 200ms;
|
|
opacity: 1;
|
|
}
|
|
|
|
.overlay .cancel {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
cursor: default;
|
|
}
|
|
|
|
.overlay:target {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
} |