🎉 Improved backend structure & documentation, added new GLASSMORPHISM_NOTIFICATIONS feature 🎨
This commit is contained in:
@ -309,13 +309,13 @@ class GlassmorphismNotificationSystem {
|
||||
const toasts = Array.from(container.children);
|
||||
toasts.forEach((toast, index) => {
|
||||
// Gestaffelte Positionierung mit smooth transition
|
||||
toast.style.top = `${1 + index * 4.5}rem`;
|
||||
toast.style.top = `${1 + index * 3.75}rem`;
|
||||
toast.style.zIndex = 1000 - index;
|
||||
|
||||
// Leichter Versatz für Tiefeneffekt
|
||||
if (index > 0) {
|
||||
toast.style.transform = `scale(${1 - index * 0.02})`;
|
||||
toast.style.opacity = `${1 - index * 0.1}`;
|
||||
toast.style.transform = `scale(${1 - index * 0.015})`;
|
||||
toast.style.opacity = `${1 - index * 0.08}`;
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -579,31 +579,31 @@ class GlassmorphismNotificationSystem {
|
||||
styles.id = 'glassmorphism-notification-styles';
|
||||
styles.textContent = `
|
||||
.glassmorphism-toast {
|
||||
margin-bottom: 0.75rem;
|
||||
margin-bottom: 0.625rem;
|
||||
transform: translateX(100%);
|
||||
opacity: 0;
|
||||
transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
will-change: transform, opacity, filter;
|
||||
/* Erweiterte Premium Glassmorphism-Eigenschaften */
|
||||
backdrop-filter: blur(60px) saturate(220%) brightness(125%) contrast(115%);
|
||||
-webkit-backdrop-filter: blur(60px) saturate(220%) brightness(125%) contrast(115%);
|
||||
backdrop-filter: blur(50px) saturate(200%) brightness(120%) contrast(110%);
|
||||
-webkit-backdrop-filter: blur(50px) saturate(200%) brightness(120%) contrast(110%);
|
||||
box-shadow:
|
||||
0 40px 80px rgba(0, 0, 0, 0.12),
|
||||
0 20px 40px rgba(0, 0, 0, 0.08),
|
||||
0 8px 16px rgba(0, 0, 0, 0.06),
|
||||
inset 0 3px 0 rgba(255, 255, 255, 0.5),
|
||||
inset 0 1px 2px rgba(255, 255, 255, 0.8),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.2);
|
||||
border-radius: 1.75rem;
|
||||
0 32px 64px rgba(0, 0, 0, 0.1),
|
||||
0 16px 32px rgba(0, 0, 0, 0.06),
|
||||
0 6px 12px rgba(0, 0, 0, 0.05),
|
||||
inset 0 2px 0 rgba(255, 255, 255, 0.4),
|
||||
inset 0 1px 2px rgba(255, 255, 255, 0.7),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.18);
|
||||
border-radius: 1.5rem;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
/* Subtile Farbverläufe */
|
||||
background: linear-gradient(145deg,
|
||||
rgba(255, 255, 255, 0.15) 0%,
|
||||
rgba(255, 255, 255, 0.08) 25%,
|
||||
rgba(255, 255, 255, 0.12) 50%,
|
||||
rgba(255, 255, 255, 0.06) 75%,
|
||||
rgba(255, 255, 255, 0.1) 100%);
|
||||
rgba(255, 255, 255, 0.12) 0%,
|
||||
rgba(255, 255, 255, 0.06) 25%,
|
||||
rgba(255, 255, 255, 0.1) 50%,
|
||||
rgba(255, 255, 255, 0.05) 75%,
|
||||
rgba(255, 255, 255, 0.08) 100%);
|
||||
}
|
||||
|
||||
/* Erweiterte Glassmorphism-Overlay-Effekte */
|
||||
@ -873,37 +873,37 @@ class GlassmorphismNotificationSystem {
|
||||
.toast-content {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding: 1.5rem;
|
||||
padding: 1rem;
|
||||
border-radius: inherit;
|
||||
}
|
||||
|
||||
.toast-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 1.25rem;
|
||||
gap: 0.875rem;
|
||||
}
|
||||
|
||||
.toast-icon {
|
||||
flex-shrink: 0;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(145deg,
|
||||
rgba(255, 255, 255, 0.4) 0%,
|
||||
rgba(255, 255, 255, 0.25) 50%,
|
||||
rgba(255, 255, 255, 0.35) 100%);
|
||||
backdrop-filter: blur(20px) saturate(150%);
|
||||
-webkit-backdrop-filter: blur(20px) saturate(150%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
rgba(255, 255, 255, 0.35) 0%,
|
||||
rgba(255, 255, 255, 0.2) 50%,
|
||||
rgba(255, 255, 255, 0.3) 100%);
|
||||
backdrop-filter: blur(16px) saturate(140%);
|
||||
-webkit-backdrop-filter: blur(16px) saturate(140%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.4);
|
||||
box-shadow:
|
||||
0 12px 24px rgba(0, 0, 0, 0.08),
|
||||
0 4px 8px rgba(0, 0, 0, 0.05),
|
||||
inset 0 2px 0 rgba(255, 255, 255, 0.7),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.05);
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
0 8px 16px rgba(0, 0, 0, 0.06),
|
||||
0 2px 4px rgba(0, 0, 0, 0.04),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.6),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.03);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
@ -916,7 +916,7 @@ class GlassmorphismNotificationSystem {
|
||||
left: -50%;
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
|
||||
background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
animation: icon-pulse 3s ease-in-out infinite;
|
||||
@ -924,7 +924,7 @@ class GlassmorphismNotificationSystem {
|
||||
|
||||
@keyframes icon-pulse {
|
||||
0%, 100% { opacity: 0; transform: scale(0.8); }
|
||||
50% { opacity: 0.5; transform: scale(1.2); }
|
||||
50% { opacity: 0.4; transform: scale(1.1); }
|
||||
}
|
||||
|
||||
.toast-icon:hover::before {
|
||||
@ -933,29 +933,29 @@ class GlassmorphismNotificationSystem {
|
||||
}
|
||||
|
||||
.toast-icon:hover {
|
||||
transform: scale(1.15) rotate(10deg);
|
||||
transform: scale(1.08) rotate(8deg);
|
||||
box-shadow:
|
||||
0 20px 40px rgba(0, 0, 0, 0.12),
|
||||
0 8px 16px rgba(0, 0, 0, 0.08),
|
||||
inset 0 2px 0 rgba(255, 255, 255, 0.8),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.08);
|
||||
0 12px 24px rgba(0, 0, 0, 0.08),
|
||||
0 4px 8px rgba(0, 0, 0, 0.06),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.7),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.dark .toast-icon {
|
||||
background: linear-gradient(145deg,
|
||||
rgba(0, 0, 0, 0.4) 0%,
|
||||
rgba(15, 15, 15, 0.3) 50%,
|
||||
rgba(0, 0, 0, 0.35) 100%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
rgba(0, 0, 0, 0.35) 0%,
|
||||
rgba(15, 15, 15, 0.25) 50%,
|
||||
rgba(0, 0, 0, 0.3) 100%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
box-shadow:
|
||||
0 12px 24px rgba(0, 0, 0, 0.3),
|
||||
0 4px 8px rgba(0, 0, 0, 0.2),
|
||||
inset 0 2px 0 rgba(255, 255, 255, 0.15),
|
||||
inset 0 -1px 0 rgba(255, 255, 255, 0.05);
|
||||
0 8px 16px rgba(0, 0, 0, 0.25),
|
||||
0 2px 4px rgba(0, 0, 0, 0.15),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||||
inset 0 -1px 0 rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
.dark .toast-icon::before {
|
||||
background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
|
||||
background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
|
||||
}
|
||||
|
||||
.toast-body {
|
||||
@ -964,56 +964,90 @@ class GlassmorphismNotificationSystem {
|
||||
}
|
||||
|
||||
.toast-title {
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.015em;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
|
||||
font-weight: 600;
|
||||
font-size: 0.875rem;
|
||||
margin-bottom: 0.375rem;
|
||||
line-height: 1.3;
|
||||
letter-spacing: 0.01em;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
|
||||
background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.toast-message {
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.6;
|
||||
opacity: 0.92;
|
||||
font-weight: 500;
|
||||
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.4;
|
||||
opacity: 0.9;
|
||||
font-weight: 450;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.toast-actions {
|
||||
display: flex;
|
||||
gap: 0.625rem;
|
||||
gap: 0.5rem;
|
||||
align-items: flex-start;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.toast-action-btn {
|
||||
padding: 0.5rem 1rem;
|
||||
padding: 0.5rem 0.875rem;
|
||||
border-radius: 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(255, 255, 255, 0.25) 0%,
|
||||
rgba(255, 255, 255, 0.12) 50%,
|
||||
rgba(255, 255, 255, 0.2) 100%);
|
||||
color: inherit;
|
||||
backdrop-filter: blur(15px);
|
||||
-webkit-backdrop-filter: blur(15px);
|
||||
backdrop-filter: blur(16px) saturate(130%);
|
||||
-webkit-backdrop-filter: blur(16px) saturate(130%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
box-shadow:
|
||||
0 4px 8px rgba(0, 0, 0, 0.06),
|
||||
0 1px 2px rgba(0, 0, 0, 0.04),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.5);
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Button-Shimmer-Effekt */
|
||||
.toast-action-btn::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg,
|
||||
transparent 0%,
|
||||
rgba(255, 255, 255, 0.3) 50%,
|
||||
transparent 100%);
|
||||
transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.toast-action-btn:hover::before {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
.toast-action-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.35);
|
||||
transform: translateY(-2px) scale(1.05);
|
||||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(255, 255, 255, 0.35) 0%,
|
||||
rgba(255, 255, 255, 0.2) 50%,
|
||||
rgba(255, 255, 255, 0.3) 100%);
|
||||
transform: translateY(-2px) scale(1.04);
|
||||
box-shadow:
|
||||
0 8px 16px rgba(0, 0, 0, 0.08),
|
||||
0 2px 4px rgba(0, 0, 0, 0.06),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
||||
border-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.toast-action-btn:active {
|
||||
@ -1022,71 +1056,148 @@ class GlassmorphismNotificationSystem {
|
||||
}
|
||||
|
||||
.toast-action-primary {
|
||||
background: linear-gradient(135deg,
|
||||
rgba(59, 130, 246, 0.9) 0%,
|
||||
rgba(37, 99, 235, 0.9) 100%);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(59, 130, 246, 0.8) 0%,
|
||||
rgba(37, 99, 235, 0.85) 50%,
|
||||
rgba(59, 130, 246, 0.75) 100%);
|
||||
color: white;
|
||||
border-color: rgba(59, 130, 246, 0.6);
|
||||
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
|
||||
box-shadow:
|
||||
0 4px 12px rgba(59, 130, 246, 0.2),
|
||||
0 1px 3px rgba(59, 130, 246, 0.12),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.toast-action-primary::before {
|
||||
background: linear-gradient(90deg,
|
||||
transparent 0%,
|
||||
rgba(255, 255, 255, 0.25) 50%,
|
||||
transparent 100%);
|
||||
}
|
||||
|
||||
.toast-action-primary:hover {
|
||||
background: linear-gradient(135deg,
|
||||
rgba(59, 130, 246, 1) 0%,
|
||||
rgba(37, 99, 235, 1) 100%);
|
||||
box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(59, 130, 246, 0.9) 0%,
|
||||
rgba(37, 99, 235, 0.95) 50%,
|
||||
rgba(59, 130, 246, 0.85) 100%);
|
||||
box-shadow:
|
||||
0 8px 20px rgba(59, 130, 246, 0.25),
|
||||
0 2px 6px rgba(59, 130, 246, 0.18),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.dark .toast-action-btn {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(0, 0, 0, 0.35) 0%,
|
||||
rgba(15, 15, 15, 0.25) 50%,
|
||||
rgba(0, 0, 0, 0.3) 100%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
box-shadow:
|
||||
0 4px 8px rgba(0, 0, 0, 0.15),
|
||||
0 1px 2px rgba(0, 0, 0, 0.12),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.dark .toast-action-btn:hover {
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(0, 0, 0, 0.45) 0%,
|
||||
rgba(15, 15, 15, 0.35) 50%,
|
||||
rgba(0, 0, 0, 0.4) 100%);
|
||||
box-shadow:
|
||||
0 8px 16px rgba(0, 0, 0, 0.2),
|
||||
0 2px 4px rgba(0, 0, 0, 0.15),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
.toast-close {
|
||||
padding: 0.375rem;
|
||||
border-radius: 0.5rem;
|
||||
border-radius: 0.625rem;
|
||||
border: none;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(255, 255, 255, 0.18) 0%,
|
||||
rgba(255, 255, 255, 0.08) 50%,
|
||||
rgba(255, 255, 255, 0.12) 100%);
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
opacity: 0.8;
|
||||
opacity: 0.75;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
backdrop-filter: blur(15px);
|
||||
-webkit-backdrop-filter: blur(15px);
|
||||
backdrop-filter: blur(16px) saturate(110%);
|
||||
-webkit-backdrop-filter: blur(16px) saturate(110%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
box-shadow:
|
||||
0 2px 4px rgba(0, 0, 0, 0.06),
|
||||
0 1px 2px rgba(0, 0, 0, 0.04),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.3);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Close-Button-Ripple-Effekt */
|
||||
.toast-close::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
transform: translate(-50%, -50%);
|
||||
transition: width 0.25s ease, height 0.25s ease;
|
||||
}
|
||||
|
||||
.toast-close:hover::after {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.toast-close:hover {
|
||||
opacity: 1;
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
transform: scale(1.15) rotate(90deg);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(255, 255, 255, 0.28) 0%,
|
||||
rgba(255, 255, 255, 0.15) 50%,
|
||||
rgba(255, 255, 255, 0.22) 100%);
|
||||
transform: scale(1.1) rotate(90deg);
|
||||
box-shadow:
|
||||
0 4px 8px rgba(0, 0, 0, 0.08),
|
||||
0 1px 2px rgba(0, 0, 0, 0.06),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.toast-close:active {
|
||||
transform: scale(1.1) rotate(90deg);
|
||||
transform: scale(1.05) rotate(90deg);
|
||||
transition: transform 0.1s ease;
|
||||
}
|
||||
|
||||
.dark .toast-close {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(0, 0, 0, 0.25) 0%,
|
||||
rgba(15, 15, 15, 0.15) 50%,
|
||||
rgba(0, 0, 0, 0.2) 100%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow:
|
||||
0 2px 4px rgba(0, 0, 0, 0.15),
|
||||
0 1px 2px rgba(0, 0, 0, 0.12),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.dark .toast-close::after {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
.dark .toast-close:hover {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(0, 0, 0, 0.35) 0%,
|
||||
rgba(15, 15, 15, 0.25) 50%,
|
||||
rgba(0, 0, 0, 0.4) 100%);
|
||||
box-shadow:
|
||||
0 4px 8px rgba(0, 0, 0, 0.25),
|
||||
0 1px 2px rgba(0, 0, 0, 0.18),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.toast-progress {
|
||||
@ -1094,25 +1205,51 @@ class GlassmorphismNotificationSystem {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg,
|
||||
rgba(255, 255, 255, 0.08) 0%,
|
||||
rgba(255, 255, 255, 0.04) 50%,
|
||||
rgba(255, 255, 255, 0.08) 100%);
|
||||
overflow: hidden;
|
||||
border-radius: 0 0 1.5rem 1.5rem;
|
||||
border-radius: 0 0 1.75rem 1.75rem;
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.toast-progress-bar {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg,
|
||||
rgba(255, 255, 255, 0.7) 0%,
|
||||
rgba(255, 255, 255, 0.6) 0%,
|
||||
rgba(255, 255, 255, 0.8) 25%,
|
||||
rgba(255, 255, 255, 0.9) 50%,
|
||||
rgba(255, 255, 255, 0.7) 100%);
|
||||
rgba(255, 255, 255, 0.8) 75%,
|
||||
rgba(255, 255, 255, 0.6) 100%);
|
||||
width: 0%;
|
||||
transition: width 0.3s ease;
|
||||
transition: width 0.25s ease;
|
||||
position: relative;
|
||||
border-radius: inherit;
|
||||
box-shadow:
|
||||
0 0 8px rgba(255, 255, 255, 0.5),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.8);
|
||||
0 0 8px rgba(255, 255, 255, 0.4),
|
||||
0 0 4px rgba(255, 255, 255, 0.3),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.7);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Progress-Bar-Animationen */
|
||||
.toast-progress-bar::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: linear-gradient(90deg,
|
||||
transparent 0%,
|
||||
rgba(255, 255, 255, 0.4) 25%,
|
||||
rgba(255, 255, 255, 0.6) 50%,
|
||||
rgba(255, 255, 255, 0.4) 75%,
|
||||
transparent 100%);
|
||||
animation: progress-shimmer 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.toast-progress-bar::after {
|
||||
@ -1122,11 +1259,15 @@ class GlassmorphismNotificationSystem {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: linear-gradient(90deg,
|
||||
transparent 0%,
|
||||
rgba(255, 255, 255, 0.4) 50%,
|
||||
transparent 100%);
|
||||
animation: progress-shimmer 2s ease-in-out infinite;
|
||||
background: linear-gradient(45deg,
|
||||
transparent 25%,
|
||||
rgba(255, 255, 255, 0.2) 25%,
|
||||
rgba(255, 255, 255, 0.2) 50%,
|
||||
transparent 50%,
|
||||
transparent 75%,
|
||||
rgba(255, 255, 255, 0.2) 75%);
|
||||
background-size: 12px 12px;
|
||||
animation: progress-stripes 0.8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes progress-shimmer {
|
||||
@ -1134,21 +1275,55 @@ class GlassmorphismNotificationSystem {
|
||||
100% { transform: translateX(100%); }
|
||||
}
|
||||
|
||||
@keyframes progress-stripes {
|
||||
0% { background-position: 0 0; }
|
||||
100% { background-position: 12px 0; }
|
||||
}
|
||||
|
||||
@keyframes toast-progress {
|
||||
from { width: 100%; }
|
||||
to { width: 0%; }
|
||||
}
|
||||
|
||||
.notification-settings {
|
||||
max-width: 350px;
|
||||
padding: 0.5rem 0;
|
||||
max-width: 320px;
|
||||
padding: 0.875rem;
|
||||
background: linear-gradient(145deg,
|
||||
rgba(255, 255, 255, 0.12) 0%,
|
||||
rgba(255, 255, 255, 0.06) 50%,
|
||||
rgba(255, 255, 255, 0.1) 100%);
|
||||
border-radius: 1.25rem;
|
||||
backdrop-filter: blur(24px) saturate(140%);
|
||||
-webkit-backdrop-filter: blur(24px) saturate(140%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.25);
|
||||
box-shadow:
|
||||
0 16px 32px rgba(0, 0, 0, 0.08),
|
||||
0 6px 12px rgba(0, 0, 0, 0.04),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
|
||||
.dark .notification-settings {
|
||||
background: linear-gradient(145deg,
|
||||
rgba(0, 0, 0, 0.35) 0%,
|
||||
rgba(15, 15, 15, 0.25) 50%,
|
||||
rgba(0, 0, 0, 0.3) 100%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow:
|
||||
0 16px 32px rgba(0, 0, 0, 0.25),
|
||||
0 6px 12px rgba(0, 0, 0, 0.15),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.notification-settings h3 {
|
||||
margin-bottom: 1rem;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: inherit;
|
||||
text-align: center;
|
||||
background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.setting-item {
|
||||
@ -1157,40 +1332,98 @@ class GlassmorphismNotificationSystem {
|
||||
gap: 0.75rem;
|
||||
margin: 1rem 0;
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
padding: 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
transition: all 0.2s ease;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 450;
|
||||
padding: 0.75rem;
|
||||
border-radius: 0.875rem;
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(255, 255, 255, 0.08) 0%,
|
||||
rgba(255, 255, 255, 0.04) 100%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Setting-Item-Hover-Effekt */
|
||||
.setting-item::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg,
|
||||
transparent 0%,
|
||||
rgba(255, 255, 255, 0.08) 50%,
|
||||
transparent 100%);
|
||||
transition: left 0.3s ease;
|
||||
}
|
||||
|
||||
.setting-item:hover::before {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
.setting-item:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
transform: translateX(4px);
|
||||
background: linear-gradient(145deg,
|
||||
rgba(255, 255, 255, 0.16) 0%,
|
||||
rgba(255, 255, 255, 0.08) 100%);
|
||||
transform: translateX(6px) scale(1.01);
|
||||
box-shadow:
|
||||
0 6px 12px rgba(0, 0, 0, 0.06),
|
||||
0 1px 2px rgba(0, 0, 0, 0.04),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
.dark .setting-item {
|
||||
background: linear-gradient(145deg,
|
||||
rgba(0, 0, 0, 0.18) 0%,
|
||||
rgba(15, 15, 15, 0.12) 100%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.dark .setting-item:hover {
|
||||
background: linear-gradient(145deg,
|
||||
rgba(0, 0, 0, 0.25) 0%,
|
||||
rgba(15, 15, 15, 0.18) 100%);
|
||||
box-shadow:
|
||||
0 6px 12px rgba(0, 0, 0, 0.15),
|
||||
0 1px 2px rgba(0, 0, 0, 0.12),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.setting-item input[type="checkbox"] {
|
||||
margin: 0;
|
||||
width: 1.2rem;
|
||||
height: 1.2rem;
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
accent-color: currentColor;
|
||||
cursor: pointer;
|
||||
border-radius: 0.3rem;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.setting-item input[type="checkbox"]:checked {
|
||||
transform: scale(1.05);
|
||||
box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 640px) {
|
||||
.notifications-container {
|
||||
left: 0.75rem;
|
||||
right: 0.75rem;
|
||||
top: 0.75rem;
|
||||
left: 0.5rem;
|
||||
right: 0.5rem;
|
||||
top: 0.5rem;
|
||||
}
|
||||
|
||||
.glassmorphism-toast {
|
||||
margin-bottom: 0.5rem;
|
||||
border-radius: 1rem;
|
||||
border-radius: 1.25rem;
|
||||
}
|
||||
|
||||
.toast-content {
|
||||
padding: 1rem;
|
||||
padding: 0.875rem;
|
||||
}
|
||||
|
||||
.toast-header {
|
||||
@ -1203,17 +1436,21 @@ class GlassmorphismNotificationSystem {
|
||||
}
|
||||
|
||||
.toast-title {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.toast-message {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.toast-action-btn {
|
||||
padding: 0.4rem 0.8rem;
|
||||
.toast-message {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.toast-action-btn {
|
||||
padding: 0.4rem 0.7rem;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.toast-close {
|
||||
padding: 0.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* High Contrast Mode */
|
||||
|
Reference in New Issue
Block a user