2026-01-11 13:11:55 +01:00
|
|
|
/**
|
|
|
|
|
* Notifications CSS
|
|
|
|
|
*
|
|
|
|
|
* Styling for notification components on dashboard
|
2026-01-14 00:47:06 +01:00
|
|
|
* Reuses: swp-list-base, swp-list-item-base, swp-icon-container (components.css)
|
2026-01-11 13:11:55 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
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 {
|
2026-01-14 00:47:06 +01:00
|
|
|
background: var(--bg-teal-subtle);
|
2026-01-11 13:11:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-notification-item.unread:hover {
|
|
|
|
|
background: var(--color-background-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
NOTIFICATION ICON
|
|
|
|
|
=========================================== */
|
2026-01-14 00:47:06 +01:00
|
|
|
/* Base styling from swp-icon-container in components.css */
|
2026-01-11 13:11:55 +01:00
|
|
|
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);
|
2026-01-14 00:47:06 +01:00
|
|
|
flex-shrink: 0;
|
2026-01-11 13:11:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-notification-item.unread swp-notification-icon {
|
2026-01-14 00:47:06 +01:00
|
|
|
background: var(--bg-teal-strong);
|
2026-01-11 13:11:55 +01:00
|
|
|
color: var(--color-teal);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
NOTIFICATION CONTENT
|
|
|
|
|
=========================================== */
|
|
|
|
|
swp-notification-content {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|