Fix Dialog
This commit is contained in:
11 files changed
+113438
-9510
No files matched your search
+8
-26
@@ -95,43 +95,25 @@ main,
|
||||
}
|
||||
|
||||
/*Animations*/
|
||||
@-webkit-keyframes fadeInBg {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeInBg {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
top: calc(50% + 150px);
|
||||
margin-bottom: -150px;
|
||||
}
|
||||
100% {
|
||||
opactiy: 1;
|
||||
top: 50%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
top: calc(50% + 150px);
|
||||
margin-bottom: -150px;
|
||||
}
|
||||
100% {
|
||||
opactiy: 1;
|
||||
top: 50%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,12 +121,12 @@ main,
|
||||
0% {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
top: 50%;
|
||||
inset: 0 0 0 0;
|
||||
}
|
||||
99% {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
top: calc(50% + 150px);
|
||||
inset: 150px 0 0 0;
|
||||
}
|
||||
100% {
|
||||
display: none;
|
||||
@@ -156,12 +138,12 @@ main,
|
||||
0% {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
top: 50%;
|
||||
inset: 0 0 0 0;
|
||||
}
|
||||
99% {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
top: calc(50% + 150px);
|
||||
inset: 150px 0 0 0;
|
||||
}
|
||||
100% {
|
||||
display: none;
|
||||
|
||||
+17
-6
@@ -239,15 +239,26 @@ input:focus + .input__label,
|
||||
--color: var(--error-red);
|
||||
}
|
||||
|
||||
.dialog__cont {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.dialog {
|
||||
position: fixed;
|
||||
background: var(--main-bg);
|
||||
z-index: 1;
|
||||
z-index: 5;
|
||||
height: -webkit-fit-content;
|
||||
height: -moz-fit-content;
|
||||
height: fit-content;
|
||||
inset: 50% 0 0 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
box-sizing: content-box;
|
||||
padding: 20px;
|
||||
color: black;
|
||||
@@ -291,7 +302,7 @@ input:focus + .input__label,
|
||||
}
|
||||
|
||||
.dialog__close {
|
||||
position: fixed;
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(5, 5, 5, 0.5);
|
||||
@@ -307,7 +318,7 @@ input:focus + .input__label,
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.dialog.fadeOut {
|
||||
.dialog__cont.fadeOut {
|
||||
-webkit-animation: fadeOut var(--transition-time-fast-2) forwards;
|
||||
animation: fadeOut var(--transition-time-fast-2) forwards;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user