Details
Description
See the attached pdf file to see what you currently get when you print a Sonar page.
Here are several improvements to get a better result :
- When printing, navigation bars (top and left) must disappear
- The name of the project must appear on top left
Attachments
Issue Links
| This issue relates to: | ||||
| SONARPLUGINS-25 | Export as a PDF report |
|
|
|
First draft, add the following in the top of style.css :
/* PRINT */ @media print { html, body { font-size: 8pt; } a, a:link, a:visited { text-decoration: none; border-bottom: 0; } .noprint { display:none !important; } .print { display: inline; position: static; left:0; } #header { display:none;} .nav { display: none;} #sidebar {display: none; margin: 0;} #contentwrapper { float: none;} #content { margin-left: 0 !important; padding: 0 !important; } } @media screen { .print { display: none; } }To do :
/* PRINT */ @media print { html, body { font-size: 8pt; } a, a:link, a:visited { text-decoration: none; border-bottom: 0; } .noprint { display:none !important; } .print { display: inline; position: static; left:0; } #header { display:none;} .nav { display: none;} #sidebar {display: none; margin: 0;} #contentwrapper { float: none;} #content { margin-left: 0 !important; padding: 0 !important; } } @media screen { .print { display: none; } }