lf_report.py: makes header more consistent with ScriptReport.java

- removes hard coded spacing using BRs
- corrects h4 styling
- report.css styling will allow three rows of H1 before shoving date out of the header

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
Jed Reynolds
2022-04-11 11:05:39 -07:00
committed by shivam
parent 3a2c02be9f
commit e22611b3b0
2 changed files with 18 additions and 7 deletions

View File

@@ -23,6 +23,7 @@ h1 { font-size: 30px;}
h2 { font-size: 24px;} h2 { font-size: 24px;}
h3 { font-size: 18px;} h3 { font-size: 18px;}
h4 { font-size: 14px;} h4 { font-size: 14px;}
li,pre,tt { li,pre,tt {
text-align: left; text-align: left;
} }
@@ -322,7 +323,7 @@ li {
margin-right: auto; margin-right: auto;
margin-top: 0.5em; margin-top: 0.5em;
margin-bottom: 0.2em; margin-bottom: 0.2em;
font-size: 50px; /* font-size: 50px; Let h1 control */
padding-top: 20px; padding-top: 20px;
padding-left: 20px; padding-left: 20px;
color: darkgreen; color: darkgreen;
@@ -343,6 +344,20 @@ li {
.TableFont {} .TableFont {}
.TableBorder {} .TableBorder {}
.ImgStyle {} .ImgStyle {}
div.HeaderStyle>h1.TitleFontPrint {
font-size: 50px;
height: 150px;
max-height: 160px;
}
div.HeaderStyle>h3.TitleFontPrintSub {
padding-top: 5px;
font-size: 30px;
}
div.HeaderStyle>h4.TitleFontPrintSub {
padding-top: 5px;
font-size: 18px;
}
div.Section h1, div.Section h2 { div.Section h1, div.Section h2 {
margin: 0 0 0 0em; margin: 0 0 0 0em;
} }

View File

@@ -390,12 +390,10 @@ class lf_report:
<body> <body>
<div id='BannerBack'> <div id='BannerBack'>
<div id='Banner'> <div id='Banner'>
<br/>
<img id='BannerLogo' align='right' src="CandelaLogo2-90dpi-200x90-trans.png" border='0'/> <img id='BannerLogo' align='right' src="CandelaLogo2-90dpi-200x90-trans.png" border='0'/>
<div class='HeaderStyle'> <div class='HeaderStyle'>
<br>
<h1 class='TitleFontPrint' style='color:darkgreen;'>{title}</h1> <h1 class='TitleFontPrint' style='color:darkgreen;'>{title}</h1>
<h3 class='TitleFontPrint' style='color:darkgreen;'>{date}</h3> <h4 class='TitleFontPrintSub' style='color:darkgreen;'>{date}</h4>
</div> </div>
</div> </div>
</div> </div>
@@ -417,12 +415,10 @@ class lf_report:
<body> <body>
<div id='BannerBack'> <div id='BannerBack'>
<div id='BannerLeft'> <div id='BannerLeft'>
<br/>
<img id='BannerLogo' align='right' src="CandelaLogo2-90dpi-200x90-trans.png" border='0'/> <img id='BannerLogo' align='right' src="CandelaLogo2-90dpi-200x90-trans.png" border='0'/>
<div class='HeaderStyle'> <div class='HeaderStyle'>
<br>
<h1 class='TitleFontPrint' style='color:darkgreen;'>{title}</h1> <h1 class='TitleFontPrint' style='color:darkgreen;'>{title}</h1>
<h3 class='TitleFontPrint' style='color:darkgreen;'>{date}</h3> <h4 class='TitleFontPrintSub' style='color:darkgreen;'>{date}</h4>
</div> </div>
</div> </div>
</div> </div>