Spaces:
Running
Running
| .notifications { | |
| position: fixed; | |
| top: 15px; | |
| right: 15px; | |
| height: 100vh; | |
| z-index: 12; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| font-family: Roboto, sans-serif; | |
| } | |
| .notification { | |
| position: relative; | |
| width: 350px; | |
| display: flex; | |
| align-items: center; | |
| gap: 20px; | |
| border-radius: 10px; | |
| animation: spin 0.5s linear 1 alternate; | |
| padding: 10px 20px; | |
| background-color: #e7e7e7; | |
| color: #000; | |
| box-shadow: 0 0 12px black; | |
| } | |
| .notification .icon { | |
| font-size: 30px; | |
| } | |
| .error .icon { | |
| color: red | |
| } | |
| .warning .icon { | |
| color: rgb(255, 225, 0) | |
| } | |
| i.close { | |
| position: absolute; | |
| color: black; | |
| top: 10px; | |
| right: 10px; | |
| font-size: 15px; | |
| cursor: pointer; | |
| opacity: 0.6; | |
| } | |
| i.close:hover { | |
| opacity: 1; | |
| } | |
| .notification .notification-content { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| flex-wrap: wrap; | |
| gap: 5px; | |
| overflow: hidden; | |
| } | |
| .notification .notification-content h3 { | |
| text-transform: capitalize; | |
| font-size: 22px; | |
| } | |
| .notification .notification-content p { | |
| font-size: 15px; | |
| text-overflow: ellipsis; | |
| color: #333; | |
| flex: 1; | |
| } | |
| @keyframes spin { | |
| from { | |
| transform: translateX(300px); | |
| opacity: 0; | |
| } | |
| to { | |
| transform: translateX(0); | |
| opacity: 1; | |
| } | |
| } |