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.sectionname
section name is lowercase and without whitespaces
Style Cover page:
.report_pdf.section1 h1
{
color: #FF465C;
margin-bottom: 300px;
margin-top: 400px;
font-size: 56px;
}
Report Tokens
{token-name} -> .token_name
Client logo:
.client_logo
{
text-align: center;
}
Headers
Header:
.report_pdf_header
{
background-color: blue;
}
Header text:
.report_pdf_header_text
{
color: #000;
}
Page number:
.report_pdf_header_pages
{
color: #ccc;
}
Footer
.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;
}
Severity Cells
.severity-tablecell-<severity>
Color table cells with Finding Severity color:
.report_pdf .severity-tablecell-info { background-color: #91C2F7; }
.report_pdf .severity-tablecell-low { background-color: #FFCC32; }
.report_pdf .severity-tablecell-medium { background-color: #FF7F44; }
.report_pdf .severity-tablecell-high { background-color: #FE443E; }
.report_pdf .severity-tablecell-critical { background-color: #9900CC; }
Color table cells with Finding Status color:
.status-tablecell-pendingfix { background-color: #ffee59; }
.status-tablecell-fixed { background-color: #11c664; }
.status-tablecell-readyretest { background-color: #ff8c00; }
.status-tablecell-accepted { background-color: #759383; }
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 {
display: block;
text-align: center;
}
Finding Details
.report_pdf .criticality-finding-<severity>
.report_pdf .criticality-finding-high {
background-color: blue;
}
.finding-details-title (Template 1)
.finding-details-title-v2 (Template 2)
.finding-details-title {
color: blue;
}
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";
}