Skip to content

Commit b8487fc

Browse files
author
dreizehnutters
committed
Add host scope selection workflow
1 parent edbd453 commit b8487fc

File tree

10 files changed

+1508
-710
lines changed

10 files changed

+1508
-710
lines changed

xsl/assets/layout-init.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
initializeAboutDialog();
77
initializeKeywordHighlighter();
88
initializeCpeCopy();
9-
initializeCertificateExpiryAlerts();
9+
initializeCertificateExpiryAlerts();
1010
formatVulnersChunks();
1111
buildServiceInventoryTable();
1212
initializeServiceInventoryToggle();
1313
initializeServiceInventoryNestedTables();
14+
initializeHostScopeControls();
1415
initializeHostToggle();
1516
initializeDataTable('#table-services');
1617
initializeDataTable('#table-overview');

xsl/assets/layout.css

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,39 @@ a {
775775
align-items: center;
776776
}
777777

778+
.host-scope-controls {
779+
display: flex;
780+
flex-wrap: wrap;
781+
align-items: center;
782+
gap: 0.75rem;
783+
}
784+
785+
.host-scope-label {
786+
color: #334150;
787+
font-size: 0.9rem;
788+
font-weight: 700;
789+
}
790+
791+
.host-scope-summary {
792+
color: #5f6e7d;
793+
font-size: 0.88rem;
794+
}
795+
796+
.host-scope-column,
797+
.host-scope-cell {
798+
width: 1%;
799+
white-space: nowrap;
800+
text-align: center;
801+
}
802+
803+
#table-overview tbody tr.host-scope-excluded {
804+
opacity: 0.55;
805+
}
806+
807+
#table-overview tbody tr.host-scope-excluded .host-scope-checkbox {
808+
opacity: 1;
809+
}
810+
778811
.summary-note {
779812
margin: 0.85rem 0 0;
780813
color: #5f6e7d;
@@ -1259,8 +1292,9 @@ footer.footer.bg-light {
12591292

12601293
.report-dialog-subtitle {
12611294
margin: 0.2rem 0 0;
1262-
color: #5f6e7d;
1295+
color: #334150;
12631296
font-size: 0.9rem;
1297+
font-weight: 600;
12641298
}
12651299

12661300
.report-dialog-body {
@@ -1280,6 +1314,11 @@ footer.footer.bg-light {
12801314
line-height: 1.35;
12811315
}
12821316

1317+
.report-dialog-note-kbd {
1318+
font-size: 0.72rem;
1319+
padding: 0.08rem 0.28rem;
1320+
}
1321+
12831322
.report-dialog-meta {
12841323
display: flex;
12851324
align-items: center;

0 commit comments

Comments
 (0)