I'm experimenting with the great new package bookdown
to create a gitbook-style book using RMarkdown within RStudio. See here.
My question is about creating custom blocks. There is an example in the documentation of how to define a block style in a CSS file:
div.FOO {
font-weight: bold;
color: red;
}
And the authors give some examples of what blocks might look like.
AFAIK, there is not an example of how to define this specific block with an icon. I don't know much about CSS, so looking for something I can modify.
I'd like to use font awesome icons like Leanpub does to create some special sidebars. Any ideas for creating something like this:
I think I would need to copy the fontawesome directory, specify the path to the included fontawesome css file (somewhere, not sure where), and use the <i>
tag in my div
definition, e.g., <i class="fa fa-comment"></i>
. Not real clear on how to implement this though...or if it would even work.