I've spent an inordinate amount of time Google'ing this and can't seem to figure it out.
I am making HTML documents using R Markdown (docs here: http://rmarkdown.rstudio.com/html_document_format.html).
I want to change the color, and other attributes, of the floating table of contents. Preferably, I would like to do this via embedded CSS in the Rmd file itself. For example, I can already change the color of the text that appears in the TOC if I put this in my Rmd file:
---
title: "Untitled"
output:
html_document:
keep_md: true
css: styles.css
toc: true
toc_float: true
number_sections: true
---
<style type="text/css">
#TOC {
color: purple;
}
</style>
output looks like this:
As you can see, the text inside the TOC is now purple. How can I find out what other attributes are available to change this way? How can I change the color of the highlighted TOC section?
I would like to do a lot more customization to these interactive elements but I can't seem to find any documentation on how to program them. It would also be nice to be able to change the tab pill buttons that you can get with {.tabset .tabset-pills}
.