我用谷歌搜索了一下,但似乎找不到 RMarkdown-CSS 参考的“完整”参考。
我发现了以下(且有用的)资源:
但我真的找不到所有可定制元素的完整参考。
例如,我想更改幻灯片背景颜色、标题颜色和数字格式。我通过阅读 HTML 输出(使用浏览器检查器)设法设置了前者的 CSS 属性(背景和标题 -headers btw-),但我真的不知道我必须做些什么来设置幻灯片编号的样式。
下面是一个小例子:
---
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.
这是(非常非常简单的)CSS 文件styles.css
:
slide {
background-color: #E0E9E3;
}
h1, h2, h3, h4, h5, h6, h7, h8 {
color: #99CC00;
}
最后的问题:
如何使幻灯片编号变为绿色?
更一般地说
是否有可以通过 CSS 设置样式的 RMarkdown ioslides HTML 标签的完整参考?