feat: report preview page, sharp report logo, time to ban by blocker
The Reports page now previews the HTML report itself (same document as the download and the print), with only Download and Print. The report logo is the repository logo at 800 px. Survival splits fail2ban and the Urutau second firewall. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5d3374ee11
commit
9bdfdb491b
10 files changed
+245
-500
No files matched your search
@@ -1,81 +1,14 @@
|
||||
/* Urutau - REPORTS page. Selectors prefixed rpt-. On screen the report is a sheet; with
|
||||
@media print it fills A4 pages and the shell chrome disappears. */
|
||||
.rpt { min-width: 0; }
|
||||
.rpt-box { display: flex; flex-direction: column; gap: var(--s-3, 12px); min-width: 0; }
|
||||
.rpt-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
|
||||
/* Urutau - REPORTS page. Selectors prefixed rpt-. The report itself is the
|
||||
HTML document shown in the iframe (its own A4 print styles); this file only
|
||||
lays out the toolbar and the preview frame. */
|
||||
.rpt { display: flex; flex-direction: column; gap: var(--s-3, 12px); min-width: 0; }
|
||||
.rpt-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
|
||||
.rpt-opt { display: flex; flex-direction: column; gap: 2px; font-size: .75rem; color: var(--ink-muted); }
|
||||
.rpt-sel { min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm, 7px); background: var(--surface-raised, transparent); color: var(--ink); font: inherit; }
|
||||
.rpt-hint { flex-basis: 100%; margin: 0; font-size: .75rem; color: var(--ink-muted); }
|
||||
.rpt-sheet { background: var(--surface-panel); border: 1px solid var(--line); border-radius: var(--radius, 10px); padding: clamp(14px, 3vw, 32px); display: flex; flex-direction: column; gap: 22px; min-width: 0; color: var(--ink); }
|
||||
.rpt-cover { border-bottom: 2px solid var(--accent); padding-bottom: 14px; }
|
||||
.rpt-kicker { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
|
||||
.rpt-cover h1 { margin: 4px 0 10px; font: 700 1.75rem/1.15 var(--font-display); color: var(--heading); }
|
||||
.rpt-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; margin: 0; font-size: .875rem; }
|
||||
.rpt-meta dt { color: var(--ink-muted); }
|
||||
.rpt-meta dd { margin: 0; overflow-wrap: anywhere; }
|
||||
.rpt-sec h2 { margin: 0 0 10px; font: 650 1.0625rem/1.2 var(--font-display); color: var(--heading); }
|
||||
.rpt-sents p { margin: 0 0 6px; font-size: .9375rem; line-height: 1.5; max-width: 90ch; overflow-wrap: anywhere; }
|
||||
.rpt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
|
||||
.rpt-kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm, 7px); min-width: 0; }
|
||||
.rpt-kl { font-size: .75rem; color: var(--ink-muted); }
|
||||
.rpt-kpi strong { font-size: 1.375rem; color: var(--heading); }
|
||||
.rpt-kd { font-size: .6875rem; color: var(--ink-muted); }
|
||||
.rpt-warn { color: var(--warn); font-size: .8125rem; }
|
||||
.rpt-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
|
||||
@media (min-width: 900px) { .rpt-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rpt-wide { grid-column: 1 / -1; } }
|
||||
.rpt-chart { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm, 7px); padding: 10px 12px; }
|
||||
.rpt-chart h3 { margin: 0 0 8px; font-size: .8125rem; font-weight: 600; color: var(--ink-muted); }
|
||||
.rpt-p2 { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
|
||||
.rpt-scroll { overflow-x: auto; max-width: 100%; }
|
||||
.rpt-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
|
||||
.rpt-table th { text-align: left; font-weight: 600; color: var(--ink-muted); padding: 5px 8px; border-bottom: 1px solid var(--line-strong, var(--line)); }
|
||||
.rpt-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: top; }
|
||||
.rpt-none { margin: 0; color: var(--ink-muted); font-size: .8125rem; }
|
||||
.rpt-foot { margin: 0; font-size: .75rem; color: var(--ink-faint); }
|
||||
|
||||
@page { size: A4; margin: 12mm; }
|
||||
@media print {
|
||||
:root, :root[data-theme] {
|
||||
--surface-base: #fff; --surface-panel: #fff; --surface-sunken: #f4f6f8; --surface-raised: #fff;
|
||||
--line: #cfd6dc; --line-strong: #8a96a0; --ink: #14202a; --ink-muted: #46545f; --ink-faint: #5d6b76; --heading: #000;
|
||||
--accent: #0a78b5; --warn: #8a5a00;
|
||||
color-scheme: light;
|
||||
}
|
||||
html, body { background: #fff !important; color: #14202a; }
|
||||
.rail, .topbar, .slice, .tabbar, .more-sheet, .err-banner, .shell-foot, .toasts, .scrim, .skip, .rpt-bar, #detail { display: none !important; }
|
||||
.app { display: block !important; background: none !important; min-height: 0; }
|
||||
.main, main#view { display: block !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; }
|
||||
.rpt-sheet { border: 0; padding: 0; gap: 12px; border-radius: 0; }
|
||||
.rpt-cover h1 { font-size: 1.5rem; }
|
||||
.rpt-sec, .rpt-chart, .rpt-kpi { break-inside: avoid; }
|
||||
.rpt-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
|
||||
.rpt-wide { grid-column: 1 / -1; }
|
||||
.rpt-p2 { break-before: page; gap: 10px; }
|
||||
.rpt-p2 .rpt-sec { break-inside: avoid; }
|
||||
.rpt-scroll { overflow: visible; }
|
||||
.rpt-table { font-size: 8.5pt; }
|
||||
.rpt-sents p { font-size: 10pt; }
|
||||
.rpt-kpi strong { font-size: 1.125rem; }
|
||||
}
|
||||
.rpt .vz svg, .rpt .chart-wrap svg { max-width: 100%; height: auto; }
|
||||
@media print {
|
||||
.rpt-sec-charts { break-inside: auto; }
|
||||
.rpt-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
|
||||
.rpt-kpi { padding: 6px 8px; }
|
||||
.rpt-chart { padding: 6px 8px; }
|
||||
.rpt-chart svg { max-height: 150px; width: 100%; }
|
||||
.rpt-chart .vz-legend, .rpt-chart ul { font-size: 8pt; }
|
||||
.rpt-sheet { gap: 10px; }
|
||||
}
|
||||
@media print {
|
||||
.rpt-chart svg { max-height: 120px; }
|
||||
.rpt-chart .vz-donut, .rpt-chart .vz-donut svg { max-height: 120px; }
|
||||
.rpt-chart .bar-row, .rpt-chart .vz-row { font-size: 8.5pt; }
|
||||
.rpt-chart .vz-row { margin: 2px 0; }
|
||||
}
|
||||
@media print {
|
||||
.rpt-noprint { display: none !important; }
|
||||
.rpt-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.rpt-table td, .rpt-table th { padding: 3px 6px; }
|
||||
.rpt-p2 .rpt-sec h2 { margin-bottom: 4px; font-size: 11pt; }
|
||||
}
|
||||
.rpt-hint { flex: 1 1 220px; margin: 0; font-size: .75rem; color: var(--ink-muted); align-self: center; }
|
||||
.rpt-actions { display: flex; gap: 8px; margin-left: auto; }
|
||||
.rpt-status { display: flex; gap: 10px; align-items: center; font-size: .8125rem; color: var(--ink-muted); }
|
||||
.rpt-status[hidden] { display: none; }
|
||||
.rpt-sheetwrap { background: var(--surface-sunken, rgba(127, 127, 127, .12)); border: 1px solid var(--line); border-radius: var(--radius, 10px); padding: clamp(6px, 2vw, 20px); min-width: 0; }
|
||||
.rpt-frame { display: block; width: 100%; max-width: 900px; height: calc(100vh - 220px); min-height: 520px; margin: 0 auto; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
|
||||
@media (max-width: 600px) { .rpt-actions { margin-left: 0; width: 100%; } .rpt-actions .btn { flex: 1; } .rpt-frame { height: 75vh; min-height: 420px; } }
|
||||
Reference in new issue
Block a user