CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 27s
CI / Dependency audit (push) Successful in 18s
CI / Tests (Linux, race detector) (push) Successful in 58s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 13s
Release / Gitea release (push) Successful in 5s
Intelligence: attack families mapped to MITRE ATT&CK, network type from
ASN/rDNS without external APIs, request cadence, sessions with
recon/probe/exploit/access/banned stages, campaigns across IPs, verdict
with reasons, recommended actions, exposure detection (2xx with a body
on sensitive paths), STIX 2.1 export, FCrDNS for search engine bots,
optional Tor exit list.
Data: 30-day retention, twelve ranges plus custom from/to, an on-disk
event log (daily files, hourly gzip members, size cap, corruption and
disk-full tolerant), /events, /period, /metrics with stable per-hour
metrics, an extended /ip/{ip}, and peer /period merged on the hub.
Interface: layout system with fixed card sizes, range picker in the
URL, IP analysis page, Replay page, Geography down to state and city
(Natural Earth admin-1), Live page redesigned with stable metrics and a
reusable attack map. Demo data and documentation screenshots.
Security: bounded and deadline-limited period computations, linear
campaign clustering, singleflight caches, sanitized peer studies, event
query budgets, gzip bomb guard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
117 lines
9.5 KiB
CSS
117 lines
9.5 KiB
CSS
/* Urutau - página Geografia. Só tokens do shell; sem cores fixas além do fallback. */
|
|
.geo { display: grid; gap: 14px; min-width: 0; }
|
|
.geo.is-busy .geo-main, .geo.is-busy .geo-detail { opacity: .72; transition: opacity .2s; }
|
|
.geo-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
|
|
.geo-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; font-size: 14px; }
|
|
.geo-crumb { background: none; border: 0; padding: 4px 6px; margin: 0 -2px; border-radius: 8px; color: var(--accent); cursor: pointer; font: inherit; }
|
|
.geo-crumb:hover { background: var(--surface-raised); text-decoration: underline; }
|
|
.geo-crumb.cur { color: var(--ink); font-weight: 600; padding: 4px 2px; overflow-wrap: anywhere; }
|
|
.geo-sep { color: var(--ink-muted); }
|
|
.geo-back, .geo-retry, .geo-chip {
|
|
background: var(--surface-raised); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; min-height: 36px; cursor: pointer; color: var(--ink);
|
|
}
|
|
.geo-back:hover, .geo-retry:hover, .geo-chip:hover { border-color: var(--accent); }
|
|
.geo-back[hidden] { display: none; }
|
|
/* o texto de abertura usa o .lead do shell */
|
|
.geo-leadbox { min-height: 70px; }
|
|
.geo-lead { max-width: none !important; }
|
|
.geo-lead:focus { outline: none; }
|
|
.geo-err { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
|
|
.geo-err[hidden] { display: none; }
|
|
|
|
.geo-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; align-items: stretch; }
|
|
.geo-panel { background: var(--surface-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
|
|
.geo-panel h2 { font: 700 1rem/1.3 var(--font-display); color: var(--heading); margin: 0 0 10px; }
|
|
.geo-panel h2:focus { outline: none; }
|
|
.geo-mappanel { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
|
|
.geo-map { position: relative; width: 100%; aspect-ratio: 2000 / 789; min-height: 240px; overflow: hidden; border-radius: 10px; background: color-mix(in srgb, var(--surface-sunken) 60%, transparent); }
|
|
.geo-svg { width: 100%; height: 100%; display: block; }
|
|
.geo-cn { fill: var(--ink-muted); fill-opacity: .14; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
|
|
.geo-cn.hit { fill: var(--accent); cursor: pointer; stroke: color-mix(in srgb, var(--accent) 45%, var(--line)); }
|
|
.geo-cn.hit:hover { stroke: var(--ink); stroke-width: 1.6; }
|
|
.geo-svg.zoomed .geo-cn:not(.sel) { stroke-opacity: .4; }
|
|
.geo-svg.zoomed .geo-cn.sel { fill: var(--accent); fill-opacity: .22 !important; stroke: var(--accent); stroke-width: 1.5; cursor: default; }
|
|
/* estados (admin-1): mesma linguagem visual dos países */
|
|
.geo-st { fill: var(--ink-muted); fill-opacity: .14; fill-rule: evenodd; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
|
|
.geo-st.hit { fill: var(--accent); cursor: pointer; stroke: color-mix(in srgb, var(--accent) 45%, var(--line)); }
|
|
.geo-st.hit:hover, .geo-st.hl { stroke: var(--ink); stroke-width: 1.6; }
|
|
.geo-st.sel { stroke: var(--accent); stroke-width: 2.2; cursor: default; }
|
|
.geo-st.sel:not(.hit) { fill: var(--accent); fill-opacity: .16; }
|
|
.geo-st.dim { stroke-opacity: .6; }
|
|
.geo-svg.a1 .geo-cn.sel { display: none; }
|
|
.geo-city { fill: var(--viz-7); fill-opacity: .5; stroke: var(--danger); stroke-width: 1.2; vector-effect: non-scaling-stroke; animation: geo-in .35s ease-out; }
|
|
.geo-city-click { cursor: pointer; }
|
|
.geo-city:hover, .geo-city.hl { fill-opacity: .85; stroke: var(--ink); stroke-width: 2; }
|
|
.geo-svg.a1 .geo-city { fill: var(--warn); fill-opacity: .8; stroke: var(--ink); stroke-width: 1.4; }
|
|
.geo-svg.a1 .geo-city:hover, .geo-svg.a1 .geo-city.hl, .geo-svg.a1 .geo-city.sel { fill-opacity: .95; stroke-width: 2.4; }
|
|
.geo-city.sel { fill-opacity: .9; stroke: var(--ink); stroke-width: 2.4; }
|
|
.geo-ring { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
|
|
.geo-lbl { fill: var(--ink); stroke: var(--surface-panel); paint-order: stroke; stroke-linejoin: round; font-weight: 600; font-family: inherit; pointer-events: none; }
|
|
.geo-lbl.sel { font-weight: 800; }
|
|
.geo-unmapped { padding: 0 4px; margin: 0; }
|
|
@keyframes geo-in { from { opacity: 0; } to { opacity: 1; } }
|
|
@media (prefers-reduced-motion: reduce) { .geo-city { animation: none; } .geo-cn, .geo-st { transition: none; } }
|
|
.geo-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--surface-overlay); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12px; min-width: 140px; max-width: 260px; box-shadow: var(--shadow); }
|
|
.geo-tip[hidden], .geo-loading[hidden], .geo-legend[hidden], .geo-detail[hidden], .geo-unmapped[hidden] { display: none; }
|
|
.geo-tip-h { font-weight: 600; margin-bottom: 4px; overflow-wrap: anywhere; }
|
|
.geo-tip-r { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-muted); }
|
|
.geo-tip-r b { color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
|
|
.geo-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-muted); }
|
|
.geo-legend { display: grid; grid-template-columns: auto minmax(60px, 160px) auto 1fr; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-muted); padding: 0 4px; }
|
|
.geo-legend-bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 20%, transparent), var(--accent)); border: 1px solid var(--line); }
|
|
.geo-legend-t { margin-left: 6px; }
|
|
|
|
.geo-side { display: flex; flex-direction: column; min-height: 0; }
|
|
.geo-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1 1 0; min-height: 120px; padding-right: 2px; }
|
|
.geo-row { display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; color: var(--ink); font: inherit; }
|
|
button.geo-row { cursor: pointer; }
|
|
button.geo-row:hover { background: var(--surface-raised); border-color: var(--line); }
|
|
.geo-row.on { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); }
|
|
.geo-row-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
|
|
.geo-rank { color: var(--ink-muted); font-size: 11px; min-width: 1.8em; font-variant-numeric: tabular-nums; }
|
|
.geo-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.geo-sub { flex: 1 1 0; min-width: 0; color: var(--ink-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.geo-name + .geo-num { margin-left: auto; }
|
|
.geo-num { font-variant-numeric: tabular-nums; font-weight: 600; flex: none; margin-left: auto; }
|
|
.geo-bar { display: block; height: 4px; border-radius: 2px; background: var(--surface-raised); margin-top: 5px; overflow: hidden; }
|
|
.geo-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
|
|
.geo-chip { align-self: flex-start; margin-bottom: 6px; }
|
|
.geo-empty { color: var(--ink-muted); padding: 16px 4px; text-align: center; }
|
|
.geo-note { color: var(--ink-muted); font-size: 12px; margin-top: 8px; }
|
|
|
|
.geo-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
|
|
.geo-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
|
|
.geo-stack span { min-width: 3px; }
|
|
.geo-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
|
|
.geo-chipcat { display: flex; align-items: center; gap: 8px; font-size: 13px; }
|
|
.geo-chipcat b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
|
|
.geo-chipcat i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
|
|
.geo-c-notfound { background: var(--cat-notfound); } .geo-c-scanner { background: var(--cat-scanner); }
|
|
.geo-c-bruteforce { background: var(--cat-bruteforce); } .geo-c-exploit { background: var(--cat-exploit); }
|
|
.geo-c-ssh-fail { background: var(--cat-ssh-fail); } .geo-c-ssh-probe { background: var(--cat-ssh-probe); }
|
|
.geo-c-ban { background: var(--cat-ban); } .geo-c-other { background: var(--ink-faint); }
|
|
|
|
.geo-ip { display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 7px 8px; color: var(--ink); font: inherit; cursor: pointer; }
|
|
.geo-ip:hover { background: var(--surface-raised); border-color: var(--line); }
|
|
.geo-ip-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.geo-ip-l1 code { font-size: 13px; font-weight: 600; }
|
|
.geo-ip-l2, .geo-ip-l3 { display: block; color: var(--ink-muted); font-size: 12px; overflow-wrap: anywhere; }
|
|
.geo-lv { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; }
|
|
.geo-lv-hostile { color: var(--danger); } .geo-lv-suspicious { color: var(--warn); }
|
|
.geo-lv-clean, .geo-lv-low { color: var(--ok); } .geo-lv-unknown { color: var(--ink-faint); }
|
|
.geo-score { color: var(--ink-muted); font-size: 12px; margin-left: auto; }
|
|
|
|
@media (max-width: 900px) {
|
|
.geo-main { grid-template-columns: minmax(0, 1fr); }
|
|
.geo-list { max-height: 360px; flex: none; }
|
|
.geo-detail { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
@media (max-width: 560px) {
|
|
.geo-map { aspect-ratio: 4 / 3; min-height: 0; }
|
|
/* o texto de abertura usa o .lead do shell */
|
|
.geo-leadbox { min-height: 70px; }
|
|
.geo-lead { max-width: none !important; }
|
|
.geo-legend { grid-template-columns: auto minmax(40px, 1fr) auto; }
|
|
.geo-legend-t { grid-column: 1 / -1; margin-left: 0; }
|
|
}
|