😎 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.

45 satır
1.3KB

  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", append = TRUE)
  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. \item{append}{If \code{TRUE} output will be appended to \code{outfile}; otherwise,
  15. it will overwrite the contents of \code{outfile}.}
  16. }
  17. \description{
  18. Adds css elements to target \code{outfile}, typically a xaringanthemer css file.
  19. The \code{css} argument takes a list of CSS classes and definitions (see examples below)
  20. and appends CSS rules to \code{outfile}.
  21. }
  22. \section{css list}{
  23. The \code{css} input must be a named list of css properties and values within a
  24. named list of class identifiers, for example
  25. \code{list(".class-id" = list("css-property" = "value"))}.
  26. }
  27. \examples{
  28. style_extra_css(
  29. outfile = stdout(),
  30. css = list(
  31. ".red" = list(color = "red"),
  32. ".small" = list("font-size" = "90\%"),
  33. ".full-width" = list(
  34. display = "flex",
  35. width = "100\%",
  36. flex = "1 1 auto"
  37. )
  38. )
  39. )
  40. }