feat: backup and restore (#288)
This commit is contained in:
+144
-1
@@ -90,7 +90,8 @@ select {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
input[type="submit"],
|
||||
input[type="button"] {
|
||||
width: 100%;
|
||||
padding: 15px;
|
||||
font-size: 16px;
|
||||
@@ -105,6 +106,20 @@ input[type="submit"]:hover {
|
||||
background-color: var(--hover-color);
|
||||
}
|
||||
|
||||
input[type="button"].secondary-button,
|
||||
button.button.secondary-button {
|
||||
background-color: #FFFFFF;
|
||||
color: var(--main-color);
|
||||
border: 2px solid var(--main-color);
|
||||
}
|
||||
|
||||
input[type="button"].secondary-button:hover,
|
||||
button.button.secondary-button:hover {
|
||||
background-color: #EEEEEE;
|
||||
color: var(--hover-color);
|
||||
border-color: var(--hover-color);
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
cursor: pointer;
|
||||
width: 25px;
|
||||
@@ -123,3 +138,131 @@ input[type="checkbox"] {
|
||||
color: var(--error-color);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.separator {
|
||||
border-top: 1px solid #ccc;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
/* TOAST MESSAGE */
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
bottom: 25px;
|
||||
right: 30px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #eeeeee;
|
||||
background: #fff;
|
||||
padding: 20px 35px 20px 25px;
|
||||
box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
|
||||
overflow: hidden;
|
||||
transform: translateX(calc(100% + 30px));
|
||||
transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.toast {
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.toast.active {
|
||||
transform: translateX(0%);
|
||||
}
|
||||
|
||||
.toast .toast-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.toast-content .toast-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 35px;
|
||||
min-width: 35px;
|
||||
color: #fff;
|
||||
font-size: 20px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.toast-content .toast-icon.error {
|
||||
background-color: var(--error-color);
|
||||
}
|
||||
|
||||
.toast-content .toast-icon.success {
|
||||
background-color: var(--success-color);
|
||||
}
|
||||
|
||||
|
||||
.toast-content .message {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0 20px;
|
||||
}
|
||||
|
||||
.toast-content .message .text {
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.toast-content .message .text.text-1 {
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.toast .close {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 15px;
|
||||
padding: 5px;
|
||||
cursor: pointer;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.toast .close:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.toast .progress {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 3px;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
|
||||
.toast .progress:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.toast .progress.error:before {
|
||||
background-color: var(--error-color);
|
||||
}
|
||||
|
||||
.toast .progress.success:before {
|
||||
background-color: var(--success-color);
|
||||
}
|
||||
|
||||
.progress.active:before {
|
||||
animation: progress 5s linear forwards;
|
||||
}
|
||||
|
||||
@keyframes progress {
|
||||
100% {
|
||||
right: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* TOAST END */
|
||||
Reference in New Issue
Block a user