😎 Give your xaringan slides some style
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 satır
1.2KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/style_extra_css.R
  3. \name{style_extra_css}
  4. \alias{style_extra_css}
  5. \title{Add Extra CSS Styles}
  6. \usage{
  7. style_extra_css(css, outfile = "xaringan-themer.css")
  8. }
  9. \arguments{
  10. \item{css}{A named list of CSS definitions each containing a named list
  11. of CSS property-value pairs, i.e.
  12. \code{list(".class-id" = list("css-property" = "value"))}}
  13. \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
  14. }
  15. \description{
  16. Adds css elements to target \code{outfile}, typically a xaringanthemer css file.
  17. The \code{css} argument takes a list of CSS classes and definitions (see examples below)
  18. and appends CSS rules to \code{outfile}.
  19. }
  20. \section{css list}{
  21. The \code{css} input must be a named list of css properties and values within a
  22. named list of class identifiers, for example
  23. \code{list(".class-id" = list("css-property" = "value"))}.
  24. }
  25. \examples{
  26. style_extra_css(
  27. outfile = stdout(),
  28. css = list(
  29. ".red" = list(color = "red"),
  30. ".small" = list("font-size" = "90\%"),
  31. ".full-width" = list(
  32. display = "flex",
  33. width = "100\%",
  34. flex = "1 1 auto"
  35. )
  36. )
  37. )
  38. }