feat(target-lists): 新增黑白名单管理与实时告警功能 - rid-shared 新增 target_lists 模块,定义名单数据契约 - 地图适配器支持按名单类型着色渲染目标(白/黑/未知) - 新增名单筛选器与目标目录过滤联动 - 实时详情面板支持加入/编辑白名单与黑名单操作 - 新增黑名单命中告警横幅与事件日志高亮 - 新增名单管理浮层(Manager 组件)与徽章展示 - 底图默认切换为影像图,相机初始俯仰角归零 - color-scheme 切换为 dark,新增 glass/workbench 样式 ```
77 lines
7.3 KiB
CSS
77 lines
7.3 KiB
CSS
/* Approved A: manual target classification and an on-demand management drawer. */
|
|
.rt-list-badge { display: inline-flex; align-items: center; flex: none; border: 1px solid #b5c6d946; border-radius: 4px; padding: 3px 5px; font-size: 10px; line-height: 1.3; color: #c2d0df; background: #b5c6d90b; white-space: nowrap; }
|
|
.rt-list-badge::before { content: '○'; margin-right: 4px; }
|
|
.rt-list-badge[data-kind=white] { color: #9edac1; border-color: #9edac14a; background: #69bd9712; }
|
|
.rt-list-badge[data-kind=white]::before { content: '✓'; }
|
|
.rt-list-badge[data-kind=black] { color: #ffb1a9; border-color: #ffb1a94a; background: #d35e5712; }
|
|
.rt-list-badge[data-kind=black]::before { content: '!'; font-weight: 700; }
|
|
.rt-target-id { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.mc-layout-b .rt-target { gap: 7px; }
|
|
.mc-layout-b #rt-list-manager-from-directory { font-size: 11px; padding: 6px; white-space: nowrap; min-width: 0; }
|
|
.rt-target-list-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
|
|
.mc-layout-b .rt-target-list-filters button { font-size: 10px; padding: 5px 6px; border: 1px solid var(--work-line); border-radius: 5px; color: var(--work-text); background: #8bbdff08; }
|
|
.mc-layout-b .rt-target-list-filters button[aria-pressed=true], .rt-list-tabs button[aria-pressed=true] { background: #8bbdff24; border-color: #8bbdff99; }
|
|
.rt-detail-classification { margin: 18px 0; padding: 15px 0; border-top: 1px solid var(--work-line); border-bottom: 1px solid var(--work-line); }
|
|
.rt-detail-classification > p { font-size: 12px; line-height: 1.8; color: var(--work-muted); overflow-wrap: anywhere; margin-top: 9px; }
|
|
.rt-detail-classification > p:empty { display: none; }
|
|
.rt-detail-list-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
|
|
.mc-layout-b .rt-detail-list-actions button { padding: 8px 5px; font-size: 11px; border-color: var(--work-line); background: #8bbdff0a; color: var(--work-text); }
|
|
.rt-detail-list-actions button:last-child { grid-column: 1 / -1; }
|
|
.mc-layout-b .rt-detail-list-actions .rt-white-action { color: #9edac1; }
|
|
.mc-layout-b .rt-detail-list-actions .rt-black-action { color: #ffb1a9; }
|
|
.rt-detail-classification .rt-list-inline-feedback.error { color: #ffb1a9; }
|
|
.rt-blacklist-alert { position: absolute; top: 17px; left: calc(var(--list-width) + 40px); right: calc(var(--detail-width) + 40px); z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 14px; border-radius: 8px; border: 1px solid #ffb1a94a; background: #231719e8; color: #ffb1a9; font-size: 12px; }
|
|
.rt-blacklist-alert strong { flex-shrink: 0; font-size: 12px; }
|
|
.rt-blacklist-alert span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
.live-events li[data-alert=true] span { color: #ffb1a9; }
|
|
.rt-target-label[data-list-kind=black] { color: #ffb1a9 !important; border-color: #ffb1a97a; }
|
|
.rt-target-label[data-list-kind=white] { color: #9edac1 !important; border-color: #9edac17a; }
|
|
.rt-list-sync-error { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #ffb1a9; font-size: 11px; line-height: 1.8; margin: 10px 0; }
|
|
.mc-layout-b .rt-list-sync-error button { font-size: 11px; padding: 4px 7px; }
|
|
#rt-list-manager { position: absolute; top: 76px; right: 16px; bottom: 16px; width: 420px; max-width: calc(100% - 32px); z-index: 10; border: 1px solid var(--work-line); border-radius: 12px; background: #081625ed; backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); box-shadow: 0 12px 35px #0005; display: flex; flex-direction: column; color: var(--work-text); overflow: hidden; }
|
|
.mc-layout-b[data-lists-open=true] .live-detail { visibility: hidden; pointer-events: none; }
|
|
.rt-list-manager-head { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 54px; min-height: 54px; border-bottom: 1px solid var(--work-line); background: var(--glass-solid); }
|
|
.rt-list-manager-head h2 { font-size: 16px; margin-right: auto; }
|
|
.rt-list-manager button { font-size: 12px; border: 1px solid var(--work-line); border-radius: 6px; padding: 7px 9px; color: var(--work-text); background: #8bbdff0b; box-shadow: none; }
|
|
.rt-list-manager button:hover:not(:disabled) { background: #8bbdff24; }
|
|
.rt-list-manager button:disabled { opacity: .45; cursor: default; }
|
|
.rt-list-manager-body { flex: 1; min-height: 0; overflow: auto; padding: 16px; scrollbar-width: thin; }
|
|
.rt-list-help { font-size: 11px; color: var(--work-muted); line-height: 1.8; }
|
|
.rt-list-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
|
|
.rt-list-search { display: block; }
|
|
.rt-list-search > span { display: block; font-size: 11px; color: var(--work-muted); margin-bottom: 7px; }
|
|
.rt-list-manager :is(input, select, textarea) { width: 100%; min-width: 0; padding: 9px 10px; background: var(--work-input); border: 1px solid var(--work-line); border-radius: 7px; color: var(--work-text); font-size: 12px; box-shadow: none; }
|
|
.rt-list-manager input, .rt-list-manager select { height: 38px; }
|
|
.rt-list-manager input::placeholder { color: var(--work-muted); }
|
|
.rt-list-rows { max-height: 240px; overflow: auto; scrollbar-width: thin; margin-top: 6px; }
|
|
.rt-list-row { display: flex; gap: 7px; align-items: center; border-bottom: 1px solid var(--work-line); padding: 13px 0; }
|
|
.rt-list-row-main { flex: 1; min-width: 0; }
|
|
.rt-list-row strong { font-size: 12px; overflow-wrap: anywhere; }
|
|
.rt-list-row p { font-size: 11px; color: var(--work-muted); line-height: 1.7; overflow-wrap: anywhere; margin-top: 6px; }
|
|
.rt-list-row p:empty { display: none; }
|
|
.rt-list-row button { font-size: 11px; padding: 5px 7px; flex-shrink: 0; }
|
|
.rt-list-pagination { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin: 12px 0 18px; font-size: 11px; color: var(--work-muted); }
|
|
#rt-list-entry-form { border-top: 1px solid var(--work-line); padding-top: 18px; }
|
|
#rt-list-entry-form h3 { font-size: 14px; }
|
|
#rt-list-entry-form label { display: block; font-size: 12px; margin: 14px 0 7px; }
|
|
#rt-list-entry-form textarea { height: 65px; resize: vertical; max-height: 180px; }
|
|
.rt-list-manager #rt-list-entry-form .primary { width: 100%; background: var(--glass-action); color: white; margin-top: 14px; }
|
|
.rt-list-manager-footer { background: var(--glass-solid); border-top: 1px solid var(--work-line); padding: 11px 16px; flex-shrink: 0; }
|
|
.rt-list-manager-footer p { font-size: 12px; line-height: 1.8; margin-bottom: 5px; color: #9edac1; overflow-wrap: anywhere; }
|
|
.rt-list-manager-footer p:empty { display: none; }
|
|
.rt-list-manager-footer p.error { color: #ffb1a9; }
|
|
.rt-list-manager-footer small { color: var(--work-muted); font-size: 10px; line-height: 1.8; }
|
|
.mc-layout-b.compact #rt-list-manager { left: 16px; right: 16px; width: auto; max-width: none; }
|
|
.mc-layout-b.compact[data-lists-open=true] :is(#rt-directory, #rt-details, #rt-dock) { visibility: hidden; pointer-events: none; }
|
|
.mc-layout-b.compact .rt-blacklist-alert { top: 61px; left: 16px; right: 16px; justify-content: space-between; }
|
|
.mc-layout-b.compact .rt-blacklist-alert span { font-size: 11px; }
|
|
@container(max-width: 500px) {
|
|
.rt-list-row { flex-wrap: wrap; }
|
|
.rt-list-row-main { flex-basis: calc(100% - 80px); }
|
|
.rt-list-rows { max-height: 180px; }
|
|
.rt-list-manager-head { padding: 0 13px; }
|
|
.rt-list-manager-head h2 { font-size: 14px; }
|
|
.rt-list-manager-body { padding: 14px; }
|
|
.rt-blacklist-alert span { display: none; }
|
|
}
|