htmlreport: remove black background, make the report a bit more space efficient.

This commit is contained in:
Matthias Krüger 2014-06-05 22:39:44 +02:00
parent 275e2501ff
commit fdc717c6ea
1 changed files with 15 additions and 23 deletions

View File

@ -21,10 +21,17 @@ with syntax highlighted source code.
STYLE_FILE = """ STYLE_FILE = """
body { body {
background-color: black;
font: 13px Arial, Verdana, Sans-Serif; font: 13px Arial, Verdana, Sans-Serif;
margin: 0; margin: 0;
padding: 0; width: auto;
}
h1 {
margin: 10px;
}
#footer > p {
margin: 4px;
} }
.error { .error {
@ -42,18 +49,6 @@ body {
padding: 1px; padding: 1px;
} }
#page {
background-color: white;
border: 2px solid #aaa;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
margin: 10px;
overflow: auto;
padding: 5px 10px;
width: auto;
}
#header { #header {
border-bottom: thin solid #aaa; border-bottom: thin solid #aaa;
} }
@ -127,7 +122,6 @@ HTML_HEAD = """
</style> </style>
</head> </head>
<body> <body>
<div id="page">
<div id="header"> <div id="header">
<h1>Cppcheck report - %s: %s </h1> <h1>Cppcheck report - %s: %s </h1>
</div> </div>
@ -145,15 +139,13 @@ HTML_FOOTER = """
</div> </div>
<div id="footer"> <div id="footer">
<p> <p>
Cppcheck %s - a tool for static C/C++ code analysis Cppcheck %s - a tool for static C/C++ code analysis</br>
</p> </br>
<ul> Internet: <a href="http://cppcheck.sourceforge.net">http://cppcheck.sourceforge.net</a></br>
<li>Internet: <a href="http://cppcheck.sourceforge.net">http://cppcheck.sourceforge.net</a></li> Forum: <a href="http://apps.sourceforge.net/phpbb/cppcheck/">http://apps.sourceforge.net/phpbb/cppcheck/</a></br>
<li>Forum: <a href="http://apps.sourceforge.net/phpbb/cppcheck/">http://apps.sourceforge.net/phpbb/cppcheck/</a></li> IRC: <a href="irc://irc.freenode.net/cppcheck">irc://irc.freenode.net/cppcheck</a></br>
<li>IRC: <a href="irc://irc.freenode.net/cppcheck">irc://irc.freenode.net/cppcheck</a></li> <p>
</ul>
</div> </div>
</div>
</body> </body>
</html> </html>
""" """