From fe736fc6d2f61da02e2bc4f78cabb392d63c1648 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Sat, 2 May 2026 03:27:24 -0400 Subject: [PATCH] Add alerts and notification styles Introduce SCSS for alerts and notification UI on the servers page. Adds .alerts-tab layout and .alerts-section (including header, count badge and muted modifier) and .notification rules (head, title, time, actions and button sizing). Uses existing design tokens (spacing, font-size, colors, radii) to match app styling. --- frontend/src/styles/pages/_servers.scss | 78 +++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/frontend/src/styles/pages/_servers.scss b/frontend/src/styles/pages/_servers.scss index 31ecd176..f3d47464 100644 --- a/frontend/src/styles/pages/_servers.scss +++ b/frontend/src/styles/pages/_servers.scss @@ -3454,3 +3454,81 @@ h4 { margin: 0; color: $text-primary; font-size: $font-size-lg; } p { margin: 0; color: $text-secondary; font-size: $font-size-sm; } } + +.alerts-tab { + display: flex; + flex-direction: column; + gap: $space-6; +} + +.alerts-section { + &__header { + display: flex; + align-items: center; + gap: $space-2; + margin-bottom: $space-3; + + h3 { + margin: 0; + font-size: $font-size-base; + font-weight: $font-weight-semibold; + color: $text-primary; + letter-spacing: 0.02em; + } + } + + &__count { + display: inline-flex; + align-items: center; + height: 20px; + padding: 0 $space-2; + border-radius: $radius-full; + background: $bg-elevated; + border: 1px solid $border-subtle; + color: $text-secondary; + font-size: $font-size-xs; + font-weight: $font-weight-medium; + line-height: 1; + } + + &--muted { + opacity: 0.75; + } +} + +.notification { + &__head { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: $space-2; + margin-bottom: $space-1; + + .notification__title { + margin: 0; + text-transform: capitalize; + } + } + + &__time { + margin-left: auto; + font-size: $font-size-xs; + color: $text-tertiary; + font-variant-numeric: tabular-nums; + } + + &__actions { + display: flex; + gap: $space-2; + margin-top: $space-3; + + .btn, + button { + height: 30px; + padding: 0 $space-3; + font-size: $font-size-xs; + font-weight: $font-weight-medium; + border-radius: $radius-md; + } + } +}