117 lines
2.8 KiB
CSS
117 lines
2.8 KiB
CSS
/**
|
|
* Attentions CSS
|
|
*
|
|
* Styling for attention/alert components on dashboard
|
|
* Reuses: swp-list-base, swp-list-item-base, swp-icon-container (components.css)
|
|
*/
|
|
|
|
/* ===========================================
|
|
ATTENTION LIST
|
|
=========================================== */
|
|
swp-attention-list {
|
|
display: contents;
|
|
}
|
|
|
|
/* ===========================================
|
|
ATTENTION ITEM
|
|
=========================================== */
|
|
swp-attention-item {
|
|
display: grid;
|
|
grid-column: 1 / -1;
|
|
grid-template-columns: subgrid;
|
|
align-items: center;
|
|
gap: var(--spacing-8);
|
|
padding: var(--card-padding);
|
|
background: var(--color-background-alt);
|
|
border-radius: var(--radius-xl);
|
|
border-left: 3px solid var(--color-border);
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
swp-attention-item:hover {
|
|
background: var(--color-background-hover);
|
|
}
|
|
|
|
/* Severity: Urgent (red) */
|
|
swp-attention-item.urgent {
|
|
border-left-color: var(--color-red);
|
|
background: var(--bg-red-subtle);
|
|
}
|
|
|
|
swp-attention-item.urgent:hover {
|
|
background: var(--bg-red-medium);
|
|
}
|
|
|
|
/* Severity: Warning (amber) */
|
|
swp-attention-item.warning {
|
|
border-left-color: var(--color-amber);
|
|
background: var(--bg-amber-subtle);
|
|
}
|
|
|
|
swp-attention-item.warning:hover {
|
|
background: var(--bg-amber-medium);
|
|
}
|
|
|
|
/* Severity: Info (blue) */
|
|
swp-attention-item.info {
|
|
border-left-color: var(--color-blue);
|
|
}
|
|
|
|
/* ===========================================
|
|
ATTENTION ICON
|
|
=========================================== */
|
|
/* Base styling from swp-icon-container in components.css */
|
|
swp-attention-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);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Icon colors per severity */
|
|
swp-attention-item.urgent swp-attention-icon {
|
|
background: var(--bg-red-strong);
|
|
color: var(--color-red);
|
|
}
|
|
|
|
swp-attention-item.warning swp-attention-icon {
|
|
background: var(--bg-amber-strong);
|
|
color: var(--color-amber);
|
|
}
|
|
|
|
swp-attention-item.info swp-attention-icon {
|
|
background: var(--bg-blue-strong);
|
|
color: var(--color-blue);
|
|
}
|
|
|
|
/* ===========================================
|
|
ATTENTION CONTENT
|
|
=========================================== */
|
|
swp-attention-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* ===========================================
|
|
ATTENTION ACTION
|
|
=========================================== */
|
|
swp-attention-action {
|
|
font-size: var(--font-size-sm);
|
|
font-weight: var(--font-weight-medium);
|
|
color: var(--color-teal);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: text-decoration var(--transition-fast);
|
|
}
|
|
|
|
swp-attention-action:hover {
|
|
text-decoration: underline;
|
|
}
|