deployCustomCSS {rebook} | R Documentation |
Deploy a custom CSS to change the colors of the book's section headers, mostly to add some flavor to the book.
deployCustomCSS(path = "style.css", h2.col = "#87b13f", h3.col = "#1a81c2")
path |
String containing the path to the output CSS file. |
h2.col |
String containing the color to use for the section headers. |
h3.col |
String containing the color to use for the subsection headers. |
We quickly learned that it was unwise to be too adventurous with the colors. In particular, changing the colors of the table of contents was quite distracting. Altering the colors of the section headers provides a tasteful level of customization, with the default colors set (almost) to the Bioconductor color palette.
The CSS file is overwritten at path
.
A NULL
is invisibly returned.
Aaron Lun, based on work by Rob Amezquita and Kevin Rue-Albrecht
fname <- tempfile(fileext=".css") deployCustomCSS(fname) cat(readLines(fname), sep="\n")