grails/grails-core — pull request #157 by rlovtangen (2012-01-25 20:15:24+00:00)
Title: GRAILS-8658 Add ability to override css for project documentation pdf.

With this change, users can create a file custom-pdf.css to override css for pdf output, in the same way they already could override css for html output with custom.css.
To enable this, user need to add a property to Config.groovy to specify where these css files are located:
grails.doc.css = "somefolder" as File

Using the same approach as custom.css (@import from main.css) for consistency. Would be better though to modify the HTML templates to include both stylesheets rather than using @import. Main reason for this is that custom.css and custom-pdf.css should be loaded last, to let users custom css win without having to use !import.
With current solution users need to add custom css like this to override already existing rules:

.body {
font-size: 20pt!important;
}

instead of

.body {
font-size: 20pt;
}