Files
FarmaFinder/frontend/src/views/AlertsView.css
T
Antoni Nuñez Romeu 7606d118e4
Run Tests on Branches / Backend Tests (push) Successful in 3m32s
Run Tests on Branches / Frontend Tests (push) Successful in 3m29s
Design hotfixes and improvements.
2026-07-02 12:40:09 +02:00

138 lines
2.4 KiB
CSS

.alerts-view {
width: 100%;
max-width: 48rem;
margin: 0 auto;
}
.alerts-main {
padding: 1.5rem var(--margin-main) 2rem;
}
.alerts-header {
margin-bottom: 2rem;
}
.alerts-title {
font-size: 2rem;
font-weight: 700;
color: var(--on-surface);
line-height: 1.2;
margin-bottom: 0.25rem;
}
.alerts-subtitle {
font-size: 1.125rem;
color: var(--on-surface-variant);
font-weight: 400;
}
.alerts-list {
display: flex;
flex-direction: column;
gap: var(--gutter);
}
.alert-card {
background: var(--surface-container-lowest);
border-radius: var(--radius-md);
box-shadow: var(--shadow-soft);
padding: var(--card-padding);
display: flex;
flex-direction: column;
gap: 1rem;
border: 2px solid transparent;
}
.alert-card--primary { border-color: rgba(0, 69, 13, 0.1); }
.alert-card--tertiary { border-color: rgba(70, 0, 173, 0.1); }
.alert-card-top {
display: flex;
align-items: flex-start;
gap: 1rem;
}
.alert-icon {
width: 3.25rem;
height: 3.25rem;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.alert-icon--primary {
background: var(--primary-container);
color: var(--on-primary-container);
}
.alert-icon--tertiary {
background: var(--tertiary-container);
color: var(--on-tertiary);
}
.alert-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.alert-title {
font-size: 1.25rem;
font-weight: 700;
color: var(--on-surface);
line-height: 1.3;
}
.alert-badge {
display: inline-block;
width: fit-content;
padding: 0.25rem 0.75rem;
border-radius: var(--radius-full);
font-size: 0.875rem;
font-weight: 700;
}
.alert-badge--primary {
background: var(--error-container);
color: var(--on-error-container);
}
.alert-badge--tertiary {
background: var(--tertiary-fixed);
color: var(--on-tertiary-fixed-variant);
}
.alert-actions {
display: flex;
gap: 0.5rem;
align-items: center;
}
.alert-delete {
width: var(--touch-target-min);
height: var(--touch-target-min);
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--outline);
border-radius: var(--radius-md);
background: transparent;
color: var(--outline);
cursor: pointer;
flex-shrink: 0;
transition: background 0.15s;
}
.alert-delete:hover {
background: var(--surface-container-high);
}
@media (max-width: 400px) {
.alerts-title {
font-size: 1.5rem;
}
}