View source: R/glossary_style.R
glossary_style | R Documentation |
Set the color and style of the linked in-text terms and pop-up definitions. Colors should be a valid CSS color string, such as "purple" or "#FF0000".
glossary_style(
color = "purple",
text_decoration = "underline",
def_bg = "#333",
def_color = "white"
)
color |
Text color of the linked term |
text_decoration |
Style of the linked term; a valid CSS text-decoration string, such as "none", underline" or "red wavy underline" |
def_bg |
Background color of the definition pop-up |
def_color |
Text color of the definition pop-up |
A CSS style string
glossary_style("#003366", "underline")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.