2026-01-11 13:11:55 +01:00
|
|
|
/**
|
|
|
|
|
* Notifications CSS
|
|
|
|
|
*
|
|
|
|
|
* Styling for notification components on dashboard
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
NOTIFICATION LIST
|
|
|
|
|
=========================================== */
|
|
|
|
|
swp-notification-list {
|
2026-01-11 18:18:36 +01:00
|
|
|
display: contents;
|
2026-01-11 13:11:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
NOTIFICATION ITEM
|
|
|
|
|
=========================================== */
|
|
|
|
|
swp-notification-item {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-column: 1 / -1;
|
|
|
|
|
grid-template-columns: subgrid;
|
|
|
|
|
align-items: center;
|
2026-01-12 15:42:18 +01:00
|
|
|
padding: var(--card-padding);
|
2026-01-11 13:11:55 +01:00
|
|
|
background: var(--color-background-alt);
|
|
|
|
|
border-radius: var(--radius-xl);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background var(--transition-fast);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-notification-item:hover {
|
|
|
|
|
background: var(--color-background-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-notification-item.unread {
|
|
|
|
|
background: color-mix(in srgb, var(--color-teal) 5%, var(--color-background-alt));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-notification-item.unread:hover {
|
|
|
|
|
background: var(--color-background-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
NOTIFICATION ICON
|
|
|
|
|
=========================================== */
|
|
|
|
|
swp-notification-icon {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
background: var(--color-background-hover);
|
|
|
|
|
border-radius: var(--radius-xl);
|
|
|
|
|
color: var(--color-text-secondary);
|
|
|
|
|
font-size: var(--font-size-xl);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-notification-item.unread swp-notification-icon {
|
|
|
|
|
background: color-mix(in srgb, var(--color-teal) 15%, transparent);
|
|
|
|
|
color: var(--color-teal);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
NOTIFICATION CONTENT
|
|
|
|
|
=========================================== */
|
|
|
|
|
swp-notification-content {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|