Spaces:
Paused
Paused
File size: 2,612 Bytes
8d1819a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
/* ===== NOTIFICATION SYSTEM STYLES ===== */
/* Notification Toggle Button */
.notification-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
padding: 0;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
color: var(--color-text);
cursor: pointer;
transition: all 0.2s ease;
font-size: 1rem;
width: 36px;
height: 36px;
flex-shrink: 0;
margin: 0;
box-sizing: border-box;
text-align: center;
}
.notification-toggle:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
transform: scale(1.05);
}
.notification-toggle .notification-icon {
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
width: 100%;
height: 100%;
text-align: center;
line-height: 1;
vertical-align: middle;
margin: 0;
padding: 0;
}
.notification-toggle.has-unread {
border-color: #2196F3;
background: rgba(33, 150, 243, 0.1);
animation: pulse 2s infinite;
}
.notification-badge {
position: absolute;
top: -8px;
right: -8px;
background: #F44336;
color: white;
font-size: 0.7rem;
font-weight: bold;
padding: 0.2rem 0.4rem;
border-radius: 10px;
min-width: 1.2rem;
text-align: center;
line-height: 1;
border: 2px solid var(--bg-color);
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
}
.notification-toggle.disabled {
opacity: 0.4;
cursor: not-allowed;
}
.notification-toggle.has-notifications {
opacity: 1;
}
.notification-toggle.disabled:hover {
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.1);
transform: none;
}
/* Light Mode Styles */
.light-mode .notification-toggle {
background: rgba(0, 0, 0, 0.05);
border-color: rgba(0, 0, 0, 0.1);
}
.light-mode .notification-toggle:hover {
background: rgba(0, 0, 0, 0.1);
border-color: rgba(0, 0, 0, 0.2);
}
.light-mode .notification-toggle.has-unread {
border-color: #2196F3;
background: rgba(33, 150, 243, 0.1);
}
.light-mode .notification-toggle.disabled:hover {
background: rgba(0, 0, 0, 0.05);
border-color: rgba(0, 0, 0, 0.1);
}
/* Animations */
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
/* Mobile Responsive */
@media (max-width: 768px) {
.notification-toggle {
min-width: 40px;
min-height: 40px;
padding: 0.4rem;
}
}
|