Spaces:
Running
Running
File size: 1,356 Bytes
7b16419 |
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 |
.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;
}
} |