feat: introduce overlay dialog component

This commit is contained in:
2025-10-16 22:00:19 +02:00
parent 478d23b805
commit 79a28bae22
7 changed files with 584 additions and 25 deletions

View File

@@ -6100,3 +6100,131 @@ html {
justify-content: center;
}
}
/* Overlay Dialog Styles */
.overlay-dialog {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.overlay-dialog.visible {
opacity: 1;
visibility: visible;
}
.overlay-dialog-content {
background: linear-gradient(135deg, #1c2a38 0%, #283746 50%, #1a252f 100%);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 16px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
max-width: 500px;
width: 90%;
max-height: 90vh;
overflow: hidden;
transform: scale(0.9) translateY(20px);
transition: all 0.3s ease;
}
.overlay-dialog.visible .overlay-dialog-content {
transform: scale(1) translateY(0);
}
.overlay-dialog-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24px 24px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.overlay-dialog-title {
font-size: 1.25rem;
font-weight: 600;
color: #ecf0f1;
margin: 0;
}
.overlay-dialog-close {
background: none;
border: none;
color: rgba(255, 255, 255, 0.6);
cursor: pointer;
padding: 8px;
border-radius: 8px;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.overlay-dialog-close:hover {
background: rgba(255, 255, 255, 0.1);
color: #ecf0f1;
}
.overlay-dialog-body {
padding: 16px 24px;
}
.overlay-dialog-message {
color: rgba(255, 255, 255, 0.8);
font-size: 1rem;
line-height: 1.5;
margin: 0;
white-space: normal;
}
.overlay-dialog-footer {
display: flex;
gap: 12px;
padding: 16px 24px 24px;
justify-content: flex-end;
}
.overlay-dialog-btn {
padding: 10px 20px;
border-radius: 8px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
border: 1px solid transparent;
min-width: 80px;
}
.overlay-dialog-btn-cancel {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
border: 1px solid rgba(255, 255, 255, 0.2);
color: rgba(255, 255, 255, 0.8);
}
.overlay-dialog-btn-cancel:hover {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
border-color: rgba(255, 255, 255, 0.3);
color: #ecf0f1;
transform: translateY(-1px);
}
.overlay-dialog-btn-confirm {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
border: 1px solid #3b82f6;
color: white;
}
.overlay-dialog-btn-confirm:hover {
background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
border-color: #2563eb;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

View File

@@ -1095,6 +1095,61 @@
}
}
/* Overlay Dialog Light Theme Styles */
[data-theme="light"] .overlay-dialog-content {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
backdrop-filter: blur(24px);
border: 1px solid rgba(148, 163, 184, 0.3);
box-shadow: 0 20px 40px rgba(148, 163, 184, 0.12);
}
[data-theme="light"] .overlay-dialog-header {
border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
[data-theme="light"] .overlay-dialog-title {
color: var(--text-primary) !important;
font-weight: 600;
}
[data-theme="light"] .overlay-dialog-close {
color: var(--text-tertiary) !important;
}
[data-theme="light"] .overlay-dialog-close:hover {
background: rgba(255, 255, 255, 0.6);
color: var(--text-primary) !important;
}
[data-theme="light"] .overlay-dialog-message {
color: var(--text-secondary) !important;
white-space: normal;
}
[data-theme="light"] .overlay-dialog-btn-cancel {
background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(148, 163, 184, 0.05) 100%);
border: 1px solid rgba(148, 163, 184, 0.2);
color: var(--text-secondary) !important;
}
[data-theme="light"] .overlay-dialog-btn-cancel:hover {
background: linear-gradient(135deg, rgba(148, 163, 184, 0.15) 0%, rgba(148, 163, 184, 0.08) 100%);
border-color: rgba(148, 163, 184, 0.3);
color: var(--text-primary) !important;
}
[data-theme="light"] .overlay-dialog-btn-confirm {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
border: 1px solid #3b82f6;
color: white;
}
[data-theme="light"] .overlay-dialog-btn-confirm:hover {
background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
border-color: #2563eb;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
/* Ultra-specific mobile navigation override for light theme */
@media (max-width: 768px) {
html[data-theme="light"] .main-navigation.mobile-open .nav-left {
@@ -1246,3 +1301,58 @@
box-shadow: 0 6px 20px rgba(148, 163, 184, 0.15) !important;
}
}
/* Overlay Dialog Light Theme Styles */
[data-theme="light"] .overlay-dialog-content {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
backdrop-filter: blur(24px);
border: 1px solid rgba(148, 163, 184, 0.3);
box-shadow: 0 20px 40px rgba(148, 163, 184, 0.12);
}
[data-theme="light"] .overlay-dialog-header {
border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
[data-theme="light"] .overlay-dialog-title {
color: var(--text-primary) !important;
font-weight: 600;
}
[data-theme="light"] .overlay-dialog-close {
color: var(--text-tertiary) !important;
}
[data-theme="light"] .overlay-dialog-close:hover {
background: rgba(255, 255, 255, 0.6);
color: var(--text-primary) !important;
}
[data-theme="light"] .overlay-dialog-message {
color: var(--text-secondary) !important;
white-space: normal;
}
[data-theme="light"] .overlay-dialog-btn-cancel {
background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(148, 163, 184, 0.05) 100%);
border: 1px solid rgba(148, 163, 184, 0.2);
color: var(--text-secondary) !important;
}
[data-theme="light"] .overlay-dialog-btn-cancel:hover {
background: linear-gradient(135deg, rgba(148, 163, 184, 0.15) 0%, rgba(148, 163, 184, 0.08) 100%);
border-color: rgba(148, 163, 184, 0.3);
color: var(--text-primary) !important;
}
[data-theme="light"] .overlay-dialog-btn-confirm {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
border: 1px solid #3b82f6;
color: white;
}
[data-theme="light"] .overlay-dialog-btn-confirm:hover {
background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
border-color: #2563eb;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}