Files
RomhackPlaza/resources/css/components/notifications.css
2026-06-23 19:24:38 +02:00

161 lines
3.2 KiB
CSS

.notifications, .conversations {
position: absolute;
top: calc(100% + 8px);
right: 0;
width: 340px;
max-height: 480px;
overflow-y: auto;
background-color: var(--bg2);
border: 1px solid var(--border);
box-shadow: 0 8px 24px rgba(0,0,0,0.5);
z-index: 2000;
&::-webkit-scrollbar {
width: 8px;
}
&::-webkit-scrollbar-thumb {
background-color: var(--border);
}
&::-webkit-scrollbar-track {
background-color: var(--bg2);
}
}
@media (max-width: 768px) {
.notifications, .conversations {
position: fixed;
width: calc(100% - 30px);
max-width: 340px;
right: 15px;
top: auto;
bottom: 15px;
max-height: calc(100vh - 130px);
z-index: 3000 !important;
}
}
@media (max-width: 600px) {
.notifications, .conversations {
width: calc(100% - 20px);
right: 10px;
bottom: 10px;
max-width: 100%;
}
}
@keyframes dropdown-enter {
from { opacity: 0; transform: translateY(-6px); }
to { opacity: 1; transform: translateY(0); }
}
.dropdown-enter {
animation: dropdown-enter 0.15s ease;
}
.notifications-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
background-color: var(--bg3);
z-index: 1;
.notifications-header-title {
font-weight: 600;
font-size: 0.9rem;
color: var(--text);
}
.notifications-header-actions {
display: flex;
gap: 6px;
}
}
.notifications-loading, .notifications-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
padding: 40px 20px;
color: var(--text2);
font-size: 0.85rem;
}
.notifications-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
text-decoration: none;
color: var(--text);
transition: background-color 0.1s;
position: relative;
&:last-child {
border-bottom: none;
}
&:hover {
background-color: var(--bg3);
}
.unread {
border-left: 2px solid var(--rhpz-orange);
background-color: var(--bg3);
}
}
.notifications-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
background-color: var(--bg4);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.9rem;
color: var(--text);
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.notifications-content {
display: flex;
flex-direction: column;
gap: 4px;
flex: 1;
min-width: 0;
.notifications-text {
font-size: 0.88rem;
color: var(--text);
line-height: 1.4;
}
.notifications-date {
font-size: 0.75rem;
color: var(--text2);
}
}
.notifications-unread-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--rhpz-orange);
flex-shrink: 0;
margin-top: 4px;
}