😎 Give your xaringan slides some style
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

52 lines
1.4KB

  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(
  8. css,
  9. outfile = "xaringan-themer.css",
  10. append = TRUE,
  11. heading = "Extra CSS"
  12. )
  13. }
  14. \arguments{
  15. \item{css}{A named list of CSS definitions each containing a named list
  16. of CSS property-value pairs, i.e.
  17. \code{list(".class-id" = list("css-property" = "value"))}}
  18. \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
  19. \item{append}{If \code{TRUE} output will be appended to \code{outfile}; otherwise,
  20. it will overwrite the contents of \code{outfile}.}
  21. \item{heading}{Heading added above extra CSS. Use \code{NULL} to disable.}
  22. }
  23. \description{
  24. Adds css elements to target \code{outfile}, typically a xaringanthemer css file.
  25. The \code{css} argument takes a list of CSS classes and definitions (see examples below)
  26. and appends CSS rules to \code{outfile}.
  27. }
  28. \section{css list}{
  29. The \code{css} input must be a named list of css properties and values within a
  30. named list of class identifiers, for example
  31. \code{list(".class-id" = list("css-property" = "value"))}.
  32. }
  33. \examples{
  34. style_extra_css(
  35. outfile = stdout(),
  36. css = list(
  37. ".red" = list(color = "red"),
  38. ".small" = list("font-size" = "90\%"),
  39. ".full-width" = list(
  40. display = "flex",
  41. width = "100\%",
  42. flex = "1 1 auto"
  43. )
  44. )
  45. )
  46. }