mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 14:16:41 +07:00
dialog close button
This commit is contained in:
parent
9ee4acb1c1
commit
cfe4731ded
3 changed files with 55 additions and 6 deletions
|
@ -20,7 +20,7 @@
|
|||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
padding: 10px 0 0 0;
|
||||
padding: 40px 0 0 0;
|
||||
box-sizing: border-box;
|
||||
flex: 1 1 800px;
|
||||
z-index: 1;
|
||||
|
@ -51,7 +51,7 @@
|
|||
}
|
||||
|
||||
.top {
|
||||
height: 10px;
|
||||
height: 40px;
|
||||
top: 0;
|
||||
|
||||
&:global(.has_buttons) {
|
||||
|
@ -155,3 +155,45 @@
|
|||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin_1 {
|
||||
0% { transform: rotate(0); }
|
||||
100% { transform: rotate(45deg); }
|
||||
}
|
||||
|
||||
@keyframes spin_2 {
|
||||
0% { transform: rotate(0); }
|
||||
100% { transform: rotate(-45deg); }
|
||||
}
|
||||
|
||||
.close {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 0);
|
||||
cursor: pointer;
|
||||
opacity: 0.5;
|
||||
transition: opacity 0.5s, transform 0.25s;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
transform: translate(-50%, -4px);
|
||||
}
|
||||
|
||||
&::before, &::after {
|
||||
content: ' ';
|
||||
width: 32px;
|
||||
height: 2px;
|
||||
background: white;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
animation: spin_1 0.5s forwards;
|
||||
}
|
||||
|
||||
&::before {
|
||||
animation: spin_2 0.5s forwards;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue