I've googled a bit but I don't seem able to find a "full" reference of RMarkdown-CSS reference.
I found the following (and useful) resources:
- RMarkdown cheatsheet
- RMarkdown reference
- RMarkdown HTML document format
- RMarkdown, Presentations with ioslides
but I really can't find a full reference of all the customizable elements.
For instance I wanted to change the slide background color, titles color and number format. I managed to set CSS propertied of the formers (background and titles -headers btw-) by reading the HTML output (with browser inspector) but I really can't figure out what I have to do to style slide numbers.
The following is a small example:
---
title: "The title"
author: "Zamengo Bruno"
date: '`r format(Sys.Date(), "%d/%m/%Y")`'
output:
ioslides_presentation:
css: styles.css
widescreen: yes
theme: yeti
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
## First slide
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempor neque ac euismod ornare. Cras scelerisque ante velit, volutpat rhoncus massa vehicula vitae. Donec viverra tincidunt velit id egestas. Quisque a aliquam quam. Phasellus lorem lectus, imperdiet ut libero a, vulputate lobortis arcu. Sed consequat fringilla nulla sed tempor. Proin laoreet massa sed vestibulum tristique. Nulla non volutpat arcu, a semper arcu. Etiam lobortis augue in felis commodo condimentum. Quisque interdum sed lorem in varius. Sed at massa quis ipsum semper vestibulum pharetra vel nisl.
## Second one
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempor neque ac euismod ornare. Cras scelerisque ante velit, volutpat rhoncus massa vehicula vitae. Donec viverra tincidunt velit id egestas. Quisque a aliquam quam. Phasellus lorem lectus, imperdiet ut libero a, vulputate lobortis arcu. Sed consequat fringilla nulla sed tempor. Proin laoreet massa sed vestibulum tristique. Nulla non volutpat arcu, a semper arcu. Etiam lobortis augue in felis commodo condimentum. Quisque interdum sed lorem in varius. Sed at massa quis ipsum semper vestibulum pharetra vel nisl.
And this is (very very simple) CSS file styles.css
:
slide {
background-color: #E0E9E3;
}
h1, h2, h3, h4, h5, h6, h7, h8 {
color: #99CC00;
}
Finally the question:
How can I make slide numbers green?
And more generally
Is there any complete reference to RMarkdown ioslides HTML tags which can be styled via CSS?