mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
vulnerabilities.cgi: Use CSS to colour the table
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
--color-green-invert : #ffffff;
|
||||
--color-red : #993333;
|
||||
--color-red-invert : #ffffff;
|
||||
--color-blue : #333399;
|
||||
--color-blue-invert : #ffffff;
|
||||
--color-grey : #d6d6d6;
|
||||
--color-light-grey : #f0f0f0;
|
||||
}
|
||||
@@ -356,6 +358,38 @@ table {
|
||||
border-bottom: 1px solid #363636;
|
||||
}
|
||||
|
||||
.tbl .status {
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tbl .status.is-running {
|
||||
background-color: var(--color-green);
|
||||
color: var(--color-green-invert);
|
||||
}
|
||||
|
||||
.tbl .status.is-stopped {
|
||||
background-color: var(--color-red);
|
||||
color: var(--color-red-invert);
|
||||
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.tbl .status.is-vulnerable {
|
||||
background-color: var(--color-red);
|
||||
color: var(--color-red-invert);
|
||||
}
|
||||
|
||||
.tbl .status.is-mitigation {
|
||||
background-color: var(--color-blue);
|
||||
color: var(--color-blue-invert);
|
||||
}
|
||||
|
||||
.tbl .status.is-not-affected {
|
||||
background-color: var(--color-green);
|
||||
color: var(--color-green-invert);
|
||||
}
|
||||
|
||||
table.fw-nat tbody tr td {
|
||||
height: 2.25em;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user