On Wednesday, November 6, 2019 at 12:45:46 AM UTC-8, Mo wrote:
>
> Hi,
> we are looking for customizable printable reports of tickets.
> For customization I guess the best approach would be to create a Wiki with 
> several [[TicketQuery]] Macros.
>
> On the other hand, when having a /query?... list, the browsers print 
> preview and printing to PDF is already usable. But how can the coloring be 
> changed, for instance the alternating line backgrounds and frame colors?
>
> I found the TracWikiPrintPlugin, so the best would be to adapt the CSS?
> Could you tell me what other approaches there are?
>

You could add site-custom CSS:
https://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance

and use CSS print media queries. My understanding is that those are CSS 
rules that are only applied when printing. I'm not familiar with the 
details, but it looks like we even have some print media queries in Trac 
already:

$  grep -R "@media print" . --include=\*\.css
./trac/htdocs/css/ticket.css:@media print {
./trac/htdocs/css/trac.css:@media print {
./trac/htdocs/css/wiki.css:@media print { .wikipage h2 { box-shadow: none } 
}
./trac/htdocs/css/wiki.css:@media print {
./trac/htdocs/css/wiki.css:@media print {
./trac/htdocs/css/browser.css:@media print {
./trac/htdocs/css/browser.css:@media print {
./trac/htdocs/css/report.css:@media print {

- Ryan 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/5d0ea14f-863b-4741-b073-267c493cc83b%40googlegroups.com.

Reply via email to