|
UsingCustomCss
Using a custom CSS style sheet
To use custom styles for the generated HTML pages, you can now provide a value for the testNgXslt.cssFile parameter. The file will be linked after the current CSS file so you can easily overwrite specific style settings without having to copy the entire CSS block in the XSL stylesheet. However you need to inspect the CSS section (template "writeCssFile") to get the correct class names and other style identifiers. Please note that the value of the testNgXslt.cssFile parameter must be relative to the output directory, because it will be used directly in the href attribute of a <LINK> tag: ...
<LINK rel="stylesheet" href="{$testNgXslt.cssFile}"/>
...This parameter is not mandatory. |
► Sign in to add a comment
I think allowing to overwrite is a good additional feature. However, I think it might be better to provide an additional CSS link that can be used to overwrite existing definitions rather than completely replace the current one. Browsers do not complain if a CSS file is missing, but you still could use the test for excistance. Such an approach would keep the additional CSS file concentrated on the changes only.
I agree with Andreas, his approach seems better / cleaner