1
0

Мелкие правки фронта

Улучшены окна подтверждений
This commit is contained in:
2026-01-16 10:22:32 +07:00
parent 3258fa9137
commit f856e68ea8

View File

@@ -121,8 +121,7 @@ const handleDiscard = () => {
.dialog-overlay { .dialog-overlay {
position: fixed; position: fixed;
inset: 0; inset: 0;
background: rgba(0, 0, 0, 0.7); background: var(--bg-body);
backdrop-filter: blur(4px);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -130,39 +129,44 @@ const handleDiscard = () => {
} }
.dialog { .dialog {
background: var(--bg-secondary); display: flex;
border: 1px solid rgba(255, 255, 255, 0.1); flex-direction: column;
border-radius: 16px; justify-content: center;
padding: 32px; align-items: center;
max-width: 420px;
text-align: center; text-align: center;
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4); width: 100%;
height: 100%;
padding: 24px;
} }
.dialog h3 { .dialog h3 {
margin: 0 0 12px; margin: 0 0 16px;
font-size: 20px; font-size: 24px;
font-weight: 600; font-weight: 600;
color: var(--text-primary); color: var(--text-primary);
} }
.dialog p { .dialog p {
margin: 0 0 24px; margin: 0 0 48px;
font-size: 14px; font-size: 16px;
color: var(--text-muted); color: var(--text-muted);
line-height: 1.5; line-height: 1.5;
max-width: 320px;
} }
.dialog-buttons { .dialog-buttons {
display: flex; display: flex;
flex-direction: column;
gap: 12px; gap: 12px;
justify-content: center; width: 100%;
max-width: 320px;
} }
.dialog-buttons button { .dialog-buttons button {
padding: 10px 20px; width: 100%;
border-radius: 8px; padding: 16px 24px;
font-size: 14px; border-radius: 12px;
font-size: 16px;
font-weight: 500; font-weight: 500;
cursor: pointer; cursor: pointer;
transition: all 0.2s ease; transition: all 0.2s ease;
@@ -223,8 +227,8 @@ const handleDiscard = () => {
.btn-loader { .btn-loader {
display: inline-block; display: inline-block;
width: 16px; width: 18px;
height: 16px; height: 18px;
border: 2px solid rgba(255, 255, 255, 0.3); border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: currentColor; border-top-color: currentColor;
border-radius: 50%; border-radius: 50%;
@@ -240,12 +244,12 @@ const handleDiscard = () => {
/* Transition */ /* Transition */
.dialog-enter-active, .dialog-enter-active,
.dialog-leave-active { .dialog-leave-active {
transition: all 0.2s ease; transition: opacity 0.25s ease;
} }
.dialog-enter-active .dialog, .dialog-enter-active .dialog,
.dialog-leave-active .dialog { .dialog-leave-active .dialog {
transition: transform 0.2s ease; transition: transform 0.25s ease;
} }
.dialog-enter-from, .dialog-enter-from,
@@ -253,8 +257,11 @@ const handleDiscard = () => {
opacity: 0; opacity: 0;
} }
.dialog-enter-from .dialog, .dialog-enter-from .dialog {
transform: translateY(20px);
}
.dialog-leave-to .dialog { .dialog-leave-to .dialog {
transform: scale(0.95); transform: translateY(-20px);
} }
</style> </style>