lumina/ui/views/components/notification-system.scss
2025-11-29 23:13:05 +03:00

102 lines
1.9 KiB
SCSS

.notification-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 10000;
display: flex;
flex-direction: column;
gap: 10px;
pointer-events: none;
}
.notification {
display: flex;
align-items: flex-start;
gap: 12px;
min-width: 300px;
max-width: 400px;
padding: 16px;
background: rgba(0, 0, 0, 0.9);
backdrop-filter: blur(10px);
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
pointer-events: auto;
animation: slideInRight 0.3s ease;
&.notification-success {
border-left: 4px solid #00ff00;
}
&.notification-error {
border-left: 4px solid #ff0000;
}
&.notification-warning {
border-left: 4px solid #ffaa00;
}
&.notification-info {
border-left: 4px solid #00f0ff;
}
}
.notification-content {
flex: 1;
}
.notification-title {
font-weight: 600;
font-size: 0.9rem;
margin-bottom: 4px;
color: #fff;
}
.notification-message {
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.9);
line-height: 1.4;
}
.notification-close {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.6);
cursor: pointer;
font-size: 1.5rem;
line-height: 1;
padding: 0;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s ease;
flex-shrink: 0;
&:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
}
@keyframes slideInRight {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
// Dark theme adjustments
[data-theme="dark"] .notification,
.dark .notification {
background: rgba(0, 0, 0, 0.95);
border-color: rgba(255, 255, 255, 0.15);
}