Text Layout
General:
.report_pdf
{
color: blue;
line-height: 1.5em;
}
.report_pdf p
{
color: #000000;
font-family: 'Montserrat';
font-weight: 300;
margin-bottom: 25px;
margin-top: 25px
font-size: 12px;
}
Column layout:
.report_pdf.section2 h1 {
column-count:1;
}
.report_pdf.section2 h2 {
column-count:1;
}
.report_pdf.section2 p {
column-count: 2;
}
.report_pdf.section2 ul {
column-count: 2;
}Justify text:
.report_pdf
{
text-align: justify;
}
Headings
Headings:
.report_pdf h1, h2, h3
{
color: red;
font-family: 'Montserrat';
}
Tables
Tables:
.report_pdf th
{
background-color: #000;
color: #fff;
}
.report_pdf tr:nth-child(even)
{
background-color: #f2f2f2;
}
th:nth-child(1){
width:150px;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
width: auto;
word-break: break-all;
white-space: normal;
}
Report Sections
Sections by index:
.report_pdf.section<i>Where <i> is the section number
Sections by name:
.report_pdf.section_namesection name is lowercase and without whitespaces
Example: If a section is called "Technical Summary", the class will be: .section_technicalsummary
Style Cover page:
.report_pdf.section1 h1
{
color: #FF465C;
margin-bottom: 300px;
margin-top: 400px;
font-size: 56px;
}Report Tokens
all report tokens are wrapped in a div with a class name:
{token-name} -> .token_name
Client logo:
.client_logo
{
text-align: center;
}
See specific CSS classes for these report tokens:
Header
The header size is: 800x55px
Header:
.report_pdf_header
{
background-color: blue;
}
Header text:
.report_pdf_header_text
{
color: #000;
}
Page number:
.report_pdf_header_pages
{
color: #ccc;
}
Footer
The header size is: 800x65px
.report_pdf_footer
{
background-color: blue;
}
Footer text:
.report_pdf_footer_text
{
color: #000;
}
Page number:
.report_pdf_footer_pages
{
color: #ccc;
}
Full width footer image:
.report_pdf_footer_image {
margin-top: 0px;
margin-left: 0px;
margin-bottom: 0px;
background-size: 800px 65px;
background-repeat: no-repeat;
}
Default logo footer image:
.report_pdf_footer_image {
background-size: auto 40px;
background-repeat: no-repeat;
margin-left: 14px;
margin-top: 14px;
}Table of Contents
.report_pdf_toc_list-l1
{
color: blue;
}
.report_pdf_toc_list-l2
{
color: #B200FF;
}
.report_pdf_toc_list-l3
{
color: #3DFFE5;
}
Dotted lines, links formatted:
.report_pdf_toc_list-l1, .report_pdf_toc_list-l2, .report_pdf_toc_list-l3
{
color: #000 !important;
border-bottom: dashed 1px #000;
}
.report_pdf_toc_list-l1 a, .report_pdf_toc_list-l1 a:link,
.report_pdf_toc_list-l2 a, .report_pdf_toc_list-l2 a:link,
.report_pdf_toc_list-l3 a, .report_pdf_toc_list-l3 a:link
{
color: #000 !important;
text-decoration: none;
}Table Cells (Full Cell with Severity & Status Color)
.severity-tablecell-<severity>Color table cells with Finding Severity color:
.findings-table .table-cell.severity:has(.criticality-finding-info) { background-color: #91C2F7; }
.findings-table .table-cell.severity:has(.criticality-finding-low) { background-color: #FFCC32; }
.findings-table .table-cell.severity:has(.criticality-finding-medium) { background-color: #FF7F44; }
.findings-table .table-cell.severity:has(.criticality-finding-high) { background-color: #FE443E; }
.findings-table .table-cell.severity:has(.criticality-finding-critical) { background-color: #9900CC; }Color table cells with Finding Status color:
.findings-table .table-cell.status:has(.status-finding-pendingfix) { background-color: #FFEE59; }
.findings-table .table-cell.status:has(.status-finding-accepted) { background-color: #759383; }
.findings-table .table-cell.status:has(.status-finding-fixed) { background-color: #11C664; }
.findings-table .table-cell.status:has(.status-finding-readyretest) { background-color: darkorange; }
.findings-table .table-cell.status:has(.status-finding-toreview) { background-color: #5C9DFF; }
.findings-table .table-cell.status:has(.status-finding-reviewed) { background-color: #0365CA; }
.findings-table .table-cell.status:has(.status-finding-mitigated) { background-color: #F7BA40; }
.findings-table .table-cell.status:has(.status-finding-partialfix) { background-color: #B0BF3B; }
.findings-table .table-cell.status:has(.status-finding-falsepositive) { background-color: #F55A42; }
.findings-table .table-cell.status:has(.status-finding-raised) { background-color: #5C9DFF; }
.findings-table .table-cell.status:has(.status-finding-reopen) { background-color: #F7BA40; }Color table cells with Finding Compliance Status color:
.findings-table .table-cell.compliance_status:has(.result-test-pass) { background-color: #29A562; }
.findings-table .table-cell.compliance_status:has(.result-test-fail) { background-color: #FE443E; }Color table cells with Finding Compliance Status color:
.findings-table .table-cell.labels:has(.label) { background-color: #29A562; }Code blocks
.report_pdf pre code
{
overflow: hidden;
display:inline-block;
color: #000;
line-height: 18px;
font-size: 16px;
}
line wrap:
.report_pdf pre code
{
white-space: pre-wrap;
}Images
Center images
.report_pdf img
{
display: block;
margin-left: auto;
margin-right: auto;
}Center image captions
.image_box span
{
display: block;
text-align: center;
}Center image captions in an Evidence
.file_box span,
.evidence-file span
{
display: block;
text-align: center;
}Text Blocks
Each text block outputs a div tag with the following class name:
Text block name:
{TextBlock_executive-approach}
CSS class name:
.textblock-executive-approach
Custom Fonts
1- Upload your custom font in woff2 format in your server, then add the following CSS to the report template
@font-face {
font-family: "FontName";
src: url("<url>/font-file.woff2")
format("woff2");
font-weight: bold;
font-style: italic;
}2- Apply the new font to your classes
.class_name
{
font-family: "FontName";
}
Note: Fixing missing TOC page numbers
If you experience missing page numbers in the Table of Contents, it might be due to font ligatures (e.g., merging "tt" in "HttpOnly"). When a custom font merges certain letter pairs (like "tt") into a single ligature symbol, the report generator cannot correctly read the text back from the PDF to map the page number.
To fix this, you must disable ligatures for your heading tags where the custom font is applied.
.class_name
{
font-family: "FontName";
font-variant-ligatures: none;
}