Spaces:
Running
Running
Download webui/css/notification.css from Leon4gr45/openoperator: direct link, hf CLI and curl.
- Browser
- Download file 2.76 kB
-
https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/webui/css/notification.css
- Command line
-
hf download hf://spaces/Leon4gr45/openoperator/webui/css/notification.css
-
curl -L -o notification.css https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/webui/css/notification.css
2.76 kB
| /* ===== 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: background-color 0.2s ease, border-color 0.2s ease, | |
| box-shadow 0.2s ease, opacity 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); | |
| box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), | |
| 0 4px 12px rgba(0, 0, 0, 0.18); | |
| } | |
| .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); | |
| box-shadow: 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; | |
| } | |
| } | |