Cybersecurity-Projects/PROJECTS/advanced/ai-threat-detection/frontend/src/components/alert-feed.module.scss

94 lines
1.5 KiB
SCSS

// ===================
// © AngelaMos | 2026
// alert-feed.module.scss
// ===================
@use '@/styles/tokens' as *;
.feed {
display: flex;
flex-direction: column;
background: $bg-surface-100;
border: 1px solid $border-muted;
border-radius: $radius-lg;
overflow: hidden;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
padding: $space-4 $space-5;
border-bottom: 1px solid $border-muted;
}
.title {
font-size: $font-size-sm;
font-weight: $font-weight-medium;
color: $text-default;
margin: 0;
}
.status {
width: 8px;
height: 8px;
border-radius: $radius-full;
}
.connected {
background: $severity-low;
}
.disconnected {
background: $severity-high;
}
.list {
overflow-y: auto;
max-height: 400px;
}
.row {
display: grid;
grid-template-columns: 80px 130px 1fr auto 60px;
gap: $space-3;
align-items: center;
padding: $space-2-5 $space-5;
border-bottom: 1px solid $border-muted;
font-size: $font-size-xs;
&:last-child {
border-bottom: none;
}
}
.time {
color: $text-lighter;
font-variant-numeric: tabular-nums;
}
.ip {
color: $text-light;
font-family: monospace;
}
.path {
color: $text-light;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.score {
color: $text-lighter;
text-align: right;
font-variant-numeric: tabular-nums;
}
.empty {
padding: $space-10;
text-align: center;
color: $text-muted;
font-size: $font-size-sm;
}