Files
Pingognito/frontend/style.css
T

1271 lines
21 KiB
CSS

:root {
color-scheme: dark;
/* Beruhigte Arcade-Palette (Pflaumen-Anthrazit + gezielter Ember-Akzent) */
--paper: #130e17;
--paper: oklch(14% 0.025 312);
--paper-2: #1b1420;
--paper-2: oklch(18% 0.026 312);
--paper-3: #241c2b;
--paper-3: oklch(22.5% 0.028 312);
--ink: #f0ebf4;
--ink-2: #d6cde0;
--muted: #9e91aa;
--rule: #352940;
--rule-strong: #4e3d5d;
--shade: #0a070d;
/* Sparsam eingesetzte Markenakzente */
--accent: #e86228;
--accent-ink: #130e17;
--accent-soft: rgba(232, 98, 40, 0.14);
--focus: #a3c93a;
/* Beruhigte, gut lesbare Status- und Schweregrad-Farben */
--crit: #ef586c;
--high: #ea783c;
--med: #deb448;
--low: #64bedb;
--info: #9b8fb0;
--ok: #8fd158;
--err: #ef586c;
--extern: #64bedb;
--eigen: #b48ead;
--covered: #8fd158;
/* Typografie: Chivo fuer gute Lesbarkeit, Bungee/Silkscreen nur gezielt */
--font-display: "Bungee", "Impact", sans-serif;
--font-body: "Chivo", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-outlier: "Silkscreen", "Cascadia Mono", Consolas, monospace;
--font-mono: "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;
/* Geometrie */
--radius: 4px;
--shadow: 3px 3px 0 var(--shade);
--dur-micro: 120ms;
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
min-height: 100%;
background: var(--paper);
color: var(--ink);
font-family: var(--font-body);
font-size: 14px;
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}
a {
color: var(--ink);
text-decoration-color: var(--accent);
text-decoration-thickness: 1.5px;
text-underline-offset: 3px;
}
a:hover {
color: var(--accent);
}
:focus-visible {
outline: 2px solid var(--focus);
outline-offset: 2px;
}
.hidden {
display: none !important;
}
/* Header & Navigation */
.topbar {
position: sticky;
top: 0;
z-index: 50;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px;
padding: 12px 24px;
background: var(--paper-2);
border-bottom: 2px solid var(--rule-strong);
box-shadow: 0 3px 0 var(--shade);
}
.brand {
display: flex;
align-items: center;
gap: 12px;
margin-right: auto;
}
.logo {
display: grid;
place-items: center;
width: 36px;
height: 36px;
font-family: var(--font-display);
font-size: 20px;
line-height: 1;
color: var(--accent-ink);
background: var(--accent);
border: 2px solid var(--ink);
border-radius: var(--radius);
box-shadow: 2px 2px 0 var(--shade);
}
.brand h1 {
margin: 0;
font-family: var(--font-display);
font-size: 18px;
font-weight: 400;
letter-spacing: 0.04em;
text-transform: uppercase;
line-height: 1.1;
color: var(--ink);
}
.brand p {
margin: 2px 0 0;
font-family: var(--font-body);
font-size: 12px;
color: var(--muted);
}
.tabs {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.tab {
appearance: none;
background: transparent;
color: var(--ink-2);
border: 1px solid var(--rule);
border-radius: var(--radius);
padding: 6px 11px;
font-family: var(--font-body);
font-size: 13px;
font-weight: 700;
cursor: pointer;
box-shadow: none;
transition:
background-color var(--dur-micro) steps(1),
border-color var(--dur-micro) steps(1),
color var(--dur-micro) steps(1);
}
.tab:hover {
color: var(--ink);
background: var(--paper-3);
border-color: var(--rule-strong);
transform: none;
box-shadow: none;
}
.tab.on {
background: var(--accent);
color: var(--accent-ink);
border-color: var(--accent);
box-shadow: 2px 2px 0 var(--shade);
}
.tab.on:hover {
background: var(--accent);
color: var(--accent-ink);
}
.status {
font-family: var(--font-body);
font-size: 12px;
font-weight: 700;
padding: 4px 10px;
border-radius: var(--radius);
border: 1px solid var(--rule);
background: var(--paper);
color: var(--muted);
}
.status.ok {
border-color: rgba(143, 209, 88, 0.45);
color: var(--ok);
background: rgba(143, 209, 88, 0.08);
}
.status.err {
border-color: rgba(239, 88, 108, 0.5);
color: var(--err);
background: rgba(239, 88, 108, 0.1);
}
.userbox {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: var(--ink-2);
}
/* Main Workspace */
.wrap {
max-width: 1360px;
margin: 0 auto;
padding: 24px 24px 56px;
}
.view {
display: none;
}
.view.on {
display: block;
}
.toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 2px solid var(--rule);
}
.toolbar h2 {
margin: 0;
font-family: var(--font-display);
font-size: 19px;
font-weight: 400;
letter-spacing: 0.03em;
text-transform: uppercase;
color: var(--ink);
}
.spacer {
flex: 1;
}
.actions,
.exports {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
/* Panels & Grid */
.panel {
background: var(--paper-2);
border: 1px solid var(--rule-strong);
border-top: 3px solid var(--rule-strong);
border-radius: var(--radius);
padding: 18px 20px;
margin-bottom: 18px;
box-shadow: var(--shadow);
}
.panel h3 {
margin: 0 0 14px;
font-family: var(--font-body);
font-size: 15px;
font-weight: 900;
letter-spacing: 0.02em;
text-transform: uppercase;
color: var(--ink);
}
.panelhead {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
}
.panelhead h3 {
margin: 0;
}
.grid2 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
gap: 18px;
}
.formgrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 14px;
align-items: end;
}
/* Form Elements */
label {
display: flex;
flex-direction: column;
gap: 6px;
font-family: var(--font-body);
font-size: 12px;
font-weight: 700;
color: var(--ink-2);
}
label.inline {
flex-direction: row;
align-items: center;
gap: 8px;
}
label.wide {
grid-column: 1 / -1;
}
label.checkbox {
flex-direction: row;
align-items: center;
gap: 8px;
color: var(--ink-2);
font-weight: 400;
font-size: 13px;
cursor: pointer;
}
.row-inline {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input:not([type]),
select,
textarea {
background: var(--paper);
color: var(--ink);
border: 1px solid var(--rule-strong);
border-radius: var(--radius);
padding: 8px 11px;
font-family: var(--font-body);
font-size: 14px;
width: 100%;
transition: border-color var(--dur-micro) steps(1);
}
input:focus,
select:focus,
textarea:focus {
outline: none;
border-color: var(--accent);
}
input::placeholder,
textarea::placeholder {
color: var(--muted);
opacity: 0.75;
}
input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: var(--accent);
cursor: pointer;
}
fieldset {
border: 1px solid var(--rule-strong);
border-radius: var(--radius);
padding: 12px 14px;
margin: 0;
background: var(--paper);
}
legend {
padding: 0 8px;
font-size: 12px;
font-weight: 700;
color: var(--ink-2);
}
.checks {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 6px;
}
/* Buttons */
button,
.btn {
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
background: var(--paper-3);
color: var(--ink);
border: 1px solid var(--rule-strong);
border-radius: var(--radius);
padding: 8px 14px;
font-family: var(--font-body);
font-size: 13px;
font-weight: 700;
cursor: pointer;
text-decoration: none;
box-shadow: 2px 2px 0 var(--shade);
transition:
transform var(--dur-micro) var(--ease-out),
background-color var(--dur-micro) steps(1),
border-color var(--dur-micro) steps(1);
}
button:hover,
.btn:hover {
border-color: var(--ink-2);
background: var(--paper-2);
color: var(--ink);
transform: translate(-1px, -1px);
box-shadow: 3px 3px 0 var(--shade);
}
button:active,
.btn:active {
transform: translate(1px, 1px);
box-shadow: 1px 1px 0 var(--shade);
}
button.primary {
background: var(--accent);
color: var(--accent-ink);
border-color: var(--accent);
box-shadow: 3px 3px 0 var(--shade);
}
button.primary:hover {
background: #f27038;
border-color: #f27038;
color: var(--accent-ink);
}
button.ghost,
.btn.ghost {
background: transparent;
color: var(--ink-2);
border: 1px solid var(--rule-strong);
box-shadow: none;
}
button.ghost:hover,
.btn.ghost:hover {
background: var(--paper-3);
color: var(--ink);
border-color: var(--ink-2);
transform: none;
box-shadow: none;
}
button.mini,
.btn.mini {
padding: 4px 9px;
font-size: 12px;
box-shadow: none;
}
button:disabled {
opacity: 0.45;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
/* KPI Cards */
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
gap: 12px;
margin-bottom: 18px;
}
.card {
background: var(--paper-2);
border: 1px solid var(--rule-strong);
border-top: 3px solid var(--rule-strong);
border-radius: var(--radius);
padding: 14px 16px;
box-shadow: var(--shadow);
}
.card .n {
font-family: var(--font-outlier);
font-size: 26px;
font-weight: 700;
line-height: 1.1;
color: var(--ink);
font-variant-numeric: tabular-nums;
}
.card .l {
font-family: var(--font-body);
font-size: 12px;
font-weight: 700;
color: var(--muted);
margin-top: 6px;
}
.card.sev-critical {
border-top-color: var(--crit);
}
.card.sev-critical .n {
color: var(--crit);
}
.card.sev-high {
border-top-color: var(--high);
}
.card.sev-high .n {
color: var(--high);
}
.card.sev-medium {
border-top-color: var(--med);
}
.card.sev-medium .n {
color: var(--med);
}
.card.sev-low {
border-top-color: var(--low);
}
.card.sev-low .n {
color: var(--low);
}
.card.sev-info {
border-top-color: var(--info);
}
.card.sev-info .n {
color: var(--info);
}
.card.accent {
border-top-color: var(--accent);
}
.card.accent .n {
color: var(--accent);
}
.card.extern {
border-top-color: var(--extern);
}
.card.extern .n {
color: var(--extern);
}
.card.eigen {
border-top-color: var(--eigen);
}
.card.eigen .n {
color: var(--eigen);
}
.card.covered {
border-top-color: var(--covered);
}
.card.covered .n {
color: var(--covered);
}
/* Severity Distribution Bars */
.bars {
display: flex;
flex-direction: column;
gap: 11px;
}
.barline {
display: grid;
grid-template-columns: 88px 1fr 48px;
gap: 10px;
align-items: center;
}
.barline .k {
font-size: 13px;
font-weight: 700;
color: var(--ink-2);
}
.barline .track {
height: 10px;
background: var(--paper);
border: 1px solid var(--rule);
border-radius: 2px;
overflow: hidden;
}
.barline .track i {
display: block;
height: 100%;
transition: width 240ms var(--ease-out);
}
.barline .v {
text-align: right;
font-family: var(--font-mono);
font-size: 13px;
font-variant-numeric: tabular-nums;
color: var(--ink);
}
.tr-critical {
background: var(--crit);
}
.tr-high {
background: var(--high);
}
.tr-medium {
background: var(--med);
}
.tr-low {
background: var(--low);
}
.tr-info {
background: var(--info);
}
/* Provider Readiness List */
.plist {
display: flex;
flex-direction: column;
gap: 8px;
}
.prow {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 12px;
background: var(--paper);
border: 1px solid var(--rule);
border-radius: var(--radius);
}
.dot {
width: 9px;
height: 9px;
border-radius: 2px;
flex: none;
}
.dot.on {
background: var(--ok);
}
.dot.off {
background: var(--muted);
opacity: 0.5;
}
.pname {
font-size: 13px;
font-weight: 700;
min-width: 100px;
color: var(--ink);
}
.pver {
font-family: var(--font-mono);
font-size: 12px;
color: var(--muted);
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pstate {
font-size: 12px;
font-weight: 700;
color: var(--ink-2);
}
/* Live Scan Progress */
.live {
background: var(--paper-2);
border: 1px solid var(--rule-strong);
border-top: 3px solid var(--accent);
border-radius: var(--radius);
padding: 16px 18px;
margin-bottom: 18px;
box-shadow: var(--shadow);
}
.proghead {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 10px;
}
.proghead .pct {
margin-left: auto;
font-family: var(--font-outlier);
font-size: 15px;
font-weight: 700;
color: var(--accent);
font-variant-numeric: tabular-nums;
}
.bar {
height: 10px;
background: var(--paper);
border: 1px solid var(--rule-strong);
border-radius: 2px;
overflow: hidden;
}
.fill {
height: 100%;
width: 0;
background: var(--accent);
transition: width 200ms var(--ease-out);
}
.step {
font-size: 13px;
color: var(--ink-2);
margin: 8px 0;
}
.log {
background: var(--paper);
border: 1px solid var(--rule);
border-radius: var(--radius);
padding: 10px 12px;
max-height: 200px;
overflow: auto;
font-family: var(--font-mono);
font-size: 12px;
line-height: 1.5;
color: var(--ink-2);
margin: 0;
white-space: pre-wrap;
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
font-size: 13.5px;
}
th,
td {
text-align: left;
padding: 10px 11px;
border-bottom: 1px solid var(--rule);
vertical-align: top;
}
th {
font-family: var(--font-body);
font-size: 12px;
font-weight: 900;
letter-spacing: 0.03em;
text-transform: uppercase;
color: var(--muted);
background: var(--paper);
border-bottom: 2px solid var(--rule-strong);
}
tbody tr {
transition: background-color var(--dur-micro) steps(1);
}
tbody tr:hover {
background: rgba(255, 255, 255, 0.03);
}
tr.detail {
display: none;
background: var(--paper);
}
tr.detail.open {
display: table-row;
}
.detailbox {
padding: 14px 16px;
border-left: 3px solid var(--accent);
font-size: 13.5px;
}
.detailbox p {
margin: 0 0 8px;
}
.detailbox pre {
background: var(--paper-2);
border: 1px solid var(--rule);
border-radius: var(--radius);
padding: 10px 12px;
overflow: auto;
font-family: var(--font-mono);
font-size: 12.5px;
color: var(--ink-2);
}
.refs {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 8px;
}
.refs a {
background: var(--paper-2);
border: 1px solid var(--rule);
border-radius: var(--radius);
padding: 3px 8px;
font-size: 12px;
text-decoration: none;
color: var(--ink-2);
}
.refs a:hover {
border-color: var(--accent);
color: var(--ink);
}
/* Zurueckgenommene Badges, Tags & Severity Chips */
.otag,
.b,
.st,
span.sev {
display: inline-block;
padding: 2px 7px;
border-radius: 3px;
font-family: var(--font-body);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.02em;
border: 1px solid var(--rule-strong);
background: var(--paper);
color: var(--ink-2);
}
.otag.extern {
color: var(--extern);
border-color: rgba(100, 190, 219, 0.4);
}
.otag.eigen {
color: var(--eigen);
border-color: rgba(180, 142, 173, 0.4);
}
.otag.covered {
color: var(--covered);
border-color: rgba(143, 209, 88, 0.4);
}
.b-trivy,
.b-semgrep,
.b-gitleaks,
.b-builtin,
.b-user_rule,
.b-nvd {
color: var(--ink-2);
border-color: var(--rule-strong);
background: var(--paper-3);
}
.st-done {
color: var(--ok);
border-color: rgba(143, 209, 88, 0.4);
background: rgba(143, 209, 88, 0.08);
}
.st-running {
color: var(--accent);
border-color: rgba(232, 98, 40, 0.45);
background: var(--accent-soft);
}
.st-failed {
color: var(--err);
border-color: rgba(239, 88, 108, 0.45);
background: rgba(239, 88, 108, 0.1);
}
.st-cancelled {
color: var(--muted);
border-color: var(--rule);
}
span.sev.sev-critical {
color: var(--crit);
border-color: rgba(239, 88, 108, 0.5);
background: rgba(239, 88, 108, 0.12);
}
span.sev.sev-high {
color: var(--high);
border-color: rgba(234, 120, 60, 0.5);
background: rgba(234, 120, 60, 0.12);
}
span.sev.sev-medium {
color: var(--med);
border-color: rgba(222, 180, 72, 0.45);
background: rgba(222, 180, 72, 0.1);
}
span.sev.sev-low {
color: var(--low);
border-color: rgba(100, 190, 219, 0.4);
background: rgba(100, 190, 219, 0.08);
}
span.sev.sev-info {
color: var(--muted);
border-color: var(--rule);
}
.fp {
opacity: 0.48;
text-decoration: line-through;
}
.mono {
font-family: var(--font-mono);
font-size: 12.5px;
}
.empty {
color: var(--muted);
font-size: 13px;
padding: 24px 12px;
text-align: center;
}
/* Trend Stacked Bar Charts (Overview & History) */
.tchart {
display: flex;
align-items: flex-end;
gap: 8px;
height: 156px;
padding: 14px 10px 6px;
background: var(--paper);
border: 1px solid var(--rule);
border-radius: var(--radius);
}
.tcol {
flex: 1;
min-width: 14px;
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
height: 100%;
justify-content: flex-end;
}
.tstack {
width: 100%;
max-width: 28px;
display: flex;
flex-direction: column-reverse;
overflow: hidden;
border-radius: 2px 2px 0 0;
}
.tseg {
width: 100%;
min-height: 1px;
}
.tseg.sev-critical {
background: var(--crit);
}
.tseg.sev-high {
background: var(--high);
}
.tseg.sev-medium {
background: var(--med);
}
.tseg.sev-low {
background: var(--low);
}
.tseg.sev-info {
background: var(--info);
}
.tlabel {
font-family: var(--font-mono);
font-size: 10px;
color: var(--muted);
white-space: nowrap;
}
.tlegend {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 10px;
font-size: 12px;
color: var(--muted);
}
.tleg {
display: inline-flex;
align-items: center;
gap: 6px;
}
.tleg i {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 2px;
}
.hchart {
display: flex;
align-items: flex-end;
gap: 10px;
height: 220px;
padding: 16px 12px 8px;
overflow-x: auto;
background: var(--paper);
border: 1px solid var(--rule);
border-radius: var(--radius);
}
.hcol {
flex: 0 0 38px;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
height: 100%;
justify-content: flex-end;
}
.hstack {
width: 26px;
display: flex;
flex-direction: column-reverse;
border-radius: 2px 2px 0 0;
overflow: hidden;
cursor: pointer;
}
.hseg {
width: 100%;
}
.hseg.sev-critical {
background: var(--crit);
}
.hseg.sev-high {
background: var(--high);
}
.hseg.sev-medium {
background: var(--med);
}
.hseg.sev-low {
background: var(--low);
}
.hseg.sev-info {
background: var(--info);
}
.hlabel {
font-family: var(--font-mono);
font-size: 11px;
color: var(--ink-2);
}
.hsub {
font-family: var(--font-mono);
font-size: 10px;
color: var(--muted);
}
/* Status Hints */
.hint {
font-size: 13px;
color: var(--muted);
margin-top: 10px;
}
.hint.ok {
color: var(--ok);
}
.hint.err {
color: var(--err);
}
.hint.warn {
color: var(--med);
}
/* Login Mask & Modal */
.loginmask {
position: fixed;
inset: 0;
background: rgba(10, 7, 13, 0.88);
z-index: 900;
display: grid;
place-items: center;
padding: 20px;
}
.loginbox {
background: var(--paper-2);
border: 1px solid var(--rule-strong);
border-top: 4px solid var(--accent);
border-radius: var(--radius);
padding: 26px;
width: min(440px, 100%);
box-shadow: 6px 6px 0 var(--shade);
display: flex;
flex-direction: column;
gap: 14px;
}
.loginbox h2 {
margin: 0;
font-family: var(--font-display);
font-size: 18px;
font-weight: 400;
text-transform: uppercase;
color: var(--ink);
}
.loginbox p {
margin: 0;
font-size: 13px;
color: var(--muted);
}
.loginbox form {
display: flex;
flex-direction: column;
gap: 12px;
}
.modal {
position: fixed;
inset: 0;
background: rgba(10, 7, 13, 0.82);
z-index: 800;
display: grid;
place-items: center;
padding: 20px;
}
.modalbox {
background: var(--paper-2);
border: 1px solid var(--rule-strong);
border-top: 4px solid var(--accent);
border-radius: var(--radius);
width: min(920px, 100%);
max-height: 88vh;
overflow: auto;
padding: 20px 24px;
box-shadow: 6px 6px 0 var(--shade);
}
.modalhead {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding-bottom: 12px;
border-bottom: 1px solid var(--rule-strong);
margin-bottom: 16px;
}
.modalhead h3 {
margin: 0;
font-family: var(--font-display);
font-size: 16px;
font-weight: 400;
text-transform: uppercase;
}
/* Presets */
.presets {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 14px;
}
.preset {
font-size: 12px;
font-weight: 700;
padding: 5px 10px;
border-radius: var(--radius);
background: var(--paper);
border: 1px solid var(--rule-strong);
color: var(--ink-2);
cursor: pointer;
}
.preset:hover {
border-color: var(--accent);
color: var(--ink);
}
/* CSP-safe utility classes & toggleable panels */
.mt10 {
margin-top: 10px;
}
.mt22 {
margin-top: 22px;
}
.m0 {
margin: 0;
}
.flex1 {
flex: 1;
}
.nowrap {
white-space: nowrap;
}
#ruleFormPanel,
#notifFormPanel {
display: none;
}
@media (max-width: 780px) {
.topbar {
padding: 12px 16px;
}
.wrap {
padding: 18px 14px 48px;
}
.grid2 {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
transition: none !important;
animation: none !important;
}
}