header_background_padding is now learned from the slide padding so that left and right margins matchtags/v0.3.0
| } | } | ||||
| values | values | ||||
| } | } | ||||
| css_get_padding <- function(x) { | |||||
| stopifnot(length(x) == 1) | |||||
| x <- trimws(x) | |||||
| x <- as.list(strsplit(x, " ")[[1]]) | |||||
| stopifnot(length(x) %in% c(1, 2, 4)) | |||||
| names(x) <- c("top", "right", "bottom", "left")[seq_along(x)] | |||||
| list( | |||||
| top = x$top, | |||||
| right = x$right %||% x$top, | |||||
| bottom = x$bottom %||% x$top, | |||||
| left = x$left %||% x$right %||% x$top | |||||
| ) | |||||
| } |
| #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | ||||
| #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | ||||
| #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | ||||
| #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", |
| #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | ||||
| #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | ||||
| #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | ||||
| #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", |
| #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | ||||
| #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | ||||
| #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | ||||
| #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", |
| #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | ||||
| #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | ||||
| #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | ||||
| #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", |
| #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | ||||
| #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | ||||
| #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | ||||
| #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", |
| #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | ||||
| #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | ||||
| #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | ||||
| #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", |
| #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | ||||
| #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | ||||
| #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | ||||
| #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", |
| #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | ||||
| #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | ||||
| #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | ||||
| #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", |
| #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | ||||
| #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | ||||
| #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | ||||
| #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", |
| #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | #' @param header_background_auto Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable. Defaults to `FALSE`. | ||||
| #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_color Background Color for h1 Header with Background. Defaults to `header_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | #' @param header_background_text_color Text Color for h1 Header with Background. Defaults to `background_color`. Modifies the `.remark-slide-content h1` class. | ||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_padding Padding for h1 Header with Background. Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. | |||||
| #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | #' @param header_background_content_padding_top Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the `.remark-slide-content` class. | ||||
| #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | #' @param header_background_ignore_classes Slide Classes Where Header with Background will not be Applied. Defaults to `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the `.remark-slide-content` class. | ||||
| #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to 0.9rem. Modifies the `.remark-slide-number` class. | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| header_background_ignore_classes, | header_background_ignore_classes, | ||||
| ~ list(class = .) | ~ list(class = .) | ||||
| ) | ) | ||||
| if (is.null(header_background_padding)) { | |||||
| slide_padding <- css_get_padding(padding) | |||||
| header_background_padding <- paste( | |||||
| "2rem", slide_padding$right, "1.5rem", slide_padding$left | |||||
| ) | |||||
| } | |||||
| header_background <- list( | header_background <- list( | ||||
| auto = header_background_auto, | auto = header_background_auto, | ||||
| background_color = header_background_color, | background_color = header_background_color, |
| , "header_background_auto", "{FALSE}", "", "Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable" | , "header_background_auto", "{FALSE}", "", "Add background under slide title automatically for h1 header elements. If not enabled, use `class: header_background` to enable" | ||||
| , "header_background_color", "{header_color}", ".remark-slide-content h1", "Background Color for h1 Header with Background" | , "header_background_color", "{header_color}", ".remark-slide-content h1", "Background Color for h1 Header with Background" | ||||
| , "header_background_text_color", "{background_color}", ".remark-slide-content h1", "Text Color for h1 Header with Background" | , "header_background_text_color", "{background_color}", ".remark-slide-content h1", "Text Color for h1 Header with Background" | ||||
| , "header_background_padding", "2rem 4rem 1.5rem 4rem", ".remark-slide-content h1", "Padding for h1 Header with Background" | |||||
| , "header_background_padding", NULL, ".remark-slide-content h1", "Padding for h1 Header with Background" | |||||
| , "header_background_content_padding_top", "7rem", ".remark-slide-content", "Top Padding for Content in Slide with Header with Background" | , "header_background_content_padding_top", "7rem", ".remark-slide-content", "Top Padding for Content in Slide with Header with Background" | ||||
| , "header_background_ignore_classes", "{c('normal', 'inverse', 'title', 'middle', 'bottom')}", ".remark-slide-content", "Slide Classes Where Header with Background will not be Applied" | , "header_background_ignore_classes", "{c('normal', 'inverse', 'title', 'middle', 'bottom')}", ".remark-slide-content", "Slide Classes Where Header with Background will not be Applied" | ||||
| , "text_slide_number_font_size", "0.9rem", ".remark-slide-number", "Slide Number Text Font Size" | , "text_slide_number_font_size", "0.9rem", ".remark-slide-number", "Slide Number Text Font Size" |
| --inverse-background-color: {{inverse_background_color}}; | --inverse-background-color: {{inverse_background_color}}; | ||||
| --inverse-header-color: {{inverse_header_color}}; | --inverse-header-color: {{inverse_header_color}}; | ||||
| --title-slide-background-color: {{title_slide_background_color}}; | --title-slide-background-color: {{title_slide_background_color}}; | ||||
| --title-slide-text-color: {{title_slide_text_color}};{{#colors}} | |||||
| --title-slide-text-color: {{title_slide_text_color}}; | |||||
| --header-background-color: {{header_background_color}}; | |||||
| --header-background-text-color: {{header_background_text_color}};{{#colors}} | |||||
| --{{color_name}}: {{value}}; | --{{color_name}}: {{value}}; | ||||
| {{/colors}} | {{/colors}} | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: {{padding}}; | padding: {{padding}}; | ||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; |
| header_background_ignore_classes, | header_background_ignore_classes, | ||||
| ~ list(class = .) | ~ list(class = .) | ||||
| ) | ) | ||||
| if (is.null(header_background_padding)) { | |||||
| slide_padding <- css_get_padding(padding) | |||||
| header_background_padding <- paste( | |||||
| "2rem", slide_padding$right, "1.5rem", slide_padding$left | |||||
| ) | |||||
| } | |||||
| header_background <- list( | header_background <- list( | ||||
| auto = header_background_auto, | auto = header_background_auto, | ||||
| background_color = header_background_color, | background_color = header_background_color, |
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | ||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | ||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | ||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | ||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | ||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | ||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | ||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | ||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | ||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | |||||
| header_background_padding = NULL, | |||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | ||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | ||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #FEFDFD; | --text-color: #FEFDFD; | ||||
| --inverse-header-color: #1F4257; | --inverse-header-color: #1F4257; | ||||
| --title-slide-background-color: #1F4257; | --title-slide-background-color: #1F4257; | ||||
| --title-slide-text-color: #F97B64; | --title-slide-text-color: #F97B64; | ||||
| --header-background-color: #F97B64; | |||||
| --header-background-text-color: #1F4257; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #FEFDFD; | color: #FEFDFD; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #FEFDFD; | --text-color: #FEFDFD; | ||||
| --inverse-header-color: #1F4257; | --inverse-header-color: #1F4257; | ||||
| --title-slide-background-color: #1F4257; | --title-slide-background-color: #1F4257; | ||||
| --title-slide-text-color: #F97B64; | --title-slide-text-color: #F97B64; | ||||
| --header-background-color: #F97B64; | |||||
| --header-background-text-color: #1F4257; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #FEFDFD; | color: #FEFDFD; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #000000; | --text-color: #000000; | ||||
| --inverse-header-color: #000000; | --inverse-header-color: #000000; | ||||
| --title-slide-background-color: #006747; | --title-slide-background-color: #006747; | ||||
| --title-slide-text-color: #FFFFFF; | --title-slide-text-color: #FFFFFF; | ||||
| --header-background-color: #006747; | |||||
| --header-background-text-color: #FFFFFF; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #006747; | color: #006747; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #FFFFFF; | --text-color: #FFFFFF; | ||||
| --inverse-header-color: #000000; | --inverse-header-color: #000000; | ||||
| --title-slide-background-color: #006747; | --title-slide-background-color: #006747; | ||||
| --title-slide-text-color: #FFFFFF; | --title-slide-text-color: #FFFFFF; | ||||
| --header-background-color: #006747; | |||||
| --header-background-text-color: #000000; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #006747; | color: #006747; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #272822; | --text-color: #272822; | ||||
| --inverse-header-color: #FFFFFF; | --inverse-header-color: #FFFFFF; | ||||
| --title-slide-background-color: #43418A; | --title-slide-background-color: #43418A; | ||||
| --title-slide-text-color: #FFFFFF; | --title-slide-text-color: #FFFFFF; | ||||
| --header-background-color: #43418A; | |||||
| --header-background-text-color: #FFFFFF; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #43418A; | color: #43418A; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #FFFFFF; | --text-color: #FFFFFF; | ||||
| --inverse-header-color: #050F0F; | --inverse-header-color: #050F0F; | ||||
| --title-slide-background-color: #3C989E; | --title-slide-background-color: #3C989E; | ||||
| --title-slide-text-color: #050F0F; | --title-slide-text-color: #050F0F; | ||||
| --header-background-color: #3C989E; | |||||
| --header-background-text-color: #050F0F; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #3C989E; | color: #3C989E; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #F4FDFB; | --text-color: #F4FDFB; | ||||
| --inverse-header-color: #1E2523; | --inverse-header-color: #1E2523; | ||||
| --title-slide-background-color: #cbf7ed; | --title-slide-background-color: #cbf7ed; | ||||
| --title-slide-text-color: #1E2523; | --title-slide-text-color: #1E2523; | ||||
| --header-background-color: #cbf7ed; | |||||
| --header-background-text-color: #1E2523; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #cbf7ed; | color: #cbf7ed; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #18273F; | --text-color: #18273F; | ||||
| --inverse-header-color: #E9EBEE; | --inverse-header-color: #E9EBEE; | ||||
| --title-slide-background-color: #23395b; | --title-slide-background-color: #23395b; | ||||
| --title-slide-text-color: #E9EBEE; | --title-slide-text-color: #E9EBEE; | ||||
| --header-background-color: #23395b; | |||||
| --header-background-text-color: #E9EBEE; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #23395b; | color: #23395b; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #18273F; | --text-color: #18273F; | ||||
| --inverse-header-color: #E9EBEE; | --inverse-header-color: #E9EBEE; | ||||
| --title-slide-background-color: #23395b; | --title-slide-background-color: #23395b; | ||||
| --title-slide-text-color: #E9EBEE; | --title-slide-text-color: #E9EBEE; | ||||
| --header-background-color: #23395b; | |||||
| --header-background-text-color: #E9EBEE; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #23395b; | color: #23395b; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #839496; | --text-color: #839496; | ||||
| --inverse-header-color: #002b36; | --inverse-header-color: #002b36; | ||||
| --title-slide-background-color: #fdf6e3; | --title-slide-background-color: #fdf6e3; | ||||
| --title-slide-text-color: #002b36; | --title-slide-text-color: #002b36; | ||||
| --header-background-color: #dc322f; | |||||
| --header-background-text-color: #002b36; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #586e75; | color: #586e75; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #839496; | --text-color: #839496; | ||||
| --inverse-header-color: #002b36; | --inverse-header-color: #002b36; | ||||
| --title-slide-background-color: #fdf6e3; | --title-slide-background-color: #fdf6e3; | ||||
| --title-slide-text-color: #002b36; | --title-slide-text-color: #002b36; | ||||
| --header-background-color: #dc322f; | |||||
| --header-background-text-color: #002b36; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #586e75; | color: #586e75; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #657b83; | --text-color: #657b83; | ||||
| --inverse-header-color: #fdf6e3; | --inverse-header-color: #fdf6e3; | ||||
| --title-slide-background-color: #002b36; | --title-slide-background-color: #002b36; | ||||
| --title-slide-text-color: #fdf6e3; | --title-slide-text-color: #fdf6e3; | ||||
| --header-background-color: #dc322f; | |||||
| --header-background-text-color: #fdf6e3; | |||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #93a1a1; | color: #93a1a1; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| strong { color: var(--text-bold-color); } | strong { color: var(--text-bold-color); } | ||||
| a, a > code { | a, a > code { | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| --header-font-is-google: 0; | --header-font-is-google: 0; | ||||
| --code-font-family: 'Source Code Pro'; | --code-font-family: 'Source Code Pro'; | ||||
| --code-font-is-google: 0; | --code-font-is-google: 0; | ||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| --base-font-size: 20px; | |||||
| --text-font-size: 1rem; | |||||
| --code-font-size: 0.9rem; | |||||
| --code-inline-font-size: 1rem; | |||||
| --header-h1-font-size: 2.75rem; | |||||
| --header-h2-font-size: 2.25rem; | |||||
| --header-h3-font-size: 1.75rem; | |||||
| /* Colors */ | /* Colors */ | ||||
| --text-color: #000; | --text-color: #000; | ||||
| --inverse-header-color: #f3f3f3; | --inverse-header-color: #f3f3f3; | ||||
| --title-slide-background-color: #272822; | --title-slide-background-color: #272822; | ||||
| --title-slide-text-color: #d6d6d6; | --title-slide-text-color: #d6d6d6; | ||||
| --header-background-color: #000; | |||||
| --header-background-text-color: #FFF; | |||||
| --light-blue: #bad4ed; | --light-blue: #bad4ed; | ||||
| } | } | ||||
| html { | html { | ||||
| font-size: var(--text-font-size); | |||||
| font-size: var(--base-font-size); | |||||
| } | } | ||||
| body { | body { | ||||
| } | } | ||||
| .remark-slide-content { | .remark-slide-content { | ||||
| background-color: var(--background-color); | background-color: var(--background-color); | ||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| font-size: 1rem; | |||||
| padding: 16px 64px 16px 64px; | |||||
| } | } | ||||
| .remark-slide-content h1 { | .remark-slide-content h1 { | ||||
| font-size: var(--header-h1-font-size); | font-size: var(--header-h1-font-size); | ||||
| .remark-slide-number { | .remark-slide-number { | ||||
| color: #272822; | color: #272822; | ||||
| opacity: 1; | opacity: 1; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| a, a > code { | a, a > code { | ||||
| color: var(--link-color); | color: var(--link-color); | ||||
| } | } | ||||
| .footnote { | .footnote { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 3em; | |||||
| bottom: 60px; | |||||
| padding-right: 4em; | padding-right: 4em; | ||||
| font-size: 0.9em; | |||||
| font-size: 0.9rem; | |||||
| } | } | ||||
| .remark-code-line-highlighted { | .remark-code-line-highlighted { | ||||
| background-color: var(--code-highlight-color); | background-color: var(--code-highlight-color); | ||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| background: var(--header-background-color); | |||||
| color: var(--header-background-text-color); | |||||
| padding: 2rem 64px 1.5rem 64px; | |||||
| margin-top: 0; | margin-top: 0; | ||||
| box-sizing: border-box; | box-sizing: border-box; | ||||
| } | } |
| inverse_background_color = "#23395b", | inverse_background_color = "#23395b", | ||||
| inverse_text_color = "#E9EBEE", | inverse_text_color = "#E9EBEE", | ||||
| inverse_header_color = "#E9EBEE", | inverse_header_color = "#E9EBEE", | ||||
| text_font_size = "20px", | |||||
| header_h3_font_size = "35px", | |||||
| base_font_size = "20px", | |||||
| text_font_size = "1rem", | |||||
| header_h3_font_size = "1.75rem", | |||||
| text_font_family = "'Noto Serif'", | text_font_family = "'Noto Serif'", | ||||
| text_font_is_google = TRUE, | text_font_is_google = TRUE, | ||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_is_google = FALSE, | header_font_is_google = FALSE, | ||||
| header_background_color = "#23395b", | |||||
| header_background_text_color = "#E9EBEE", | |||||
| code_font_family = "'Source Code Pro'", | code_font_family = "'Source Code Pro'", | ||||
| code_font_is_google = FALSE | code_font_is_google = FALSE | ||||
| ) | ) | ||||
| expect_null(css_get_root(tmpfile)) | expect_null(css_get_root(tmpfile)) | ||||
| unlink(tmpfile) | unlink(tmpfile) | ||||
| }) | }) | ||||
| describe("css_get_padding()", { | |||||
| it("processes 1 element padding", { | |||||
| p <- css_get_padding("1em") | |||||
| expect_equal(p$top, "1em") | |||||
| expect_equal(p$right, "1em") | |||||
| expect_equal(p$bottom, "1em") | |||||
| expect_equal(p$left, "1em") | |||||
| }) | |||||
| it("processes 2 element padding", { | |||||
| p <- css_get_padding("1em 2em") | |||||
| expect_equal(p$top, "1em") | |||||
| expect_equal(p$right, "2em") | |||||
| expect_equal(p$bottom, "1em") | |||||
| expect_equal(p$left, "2em") | |||||
| }) | |||||
| it("processes 4 element padding", { | |||||
| p <- css_get_padding("1em 2em 3em 4em") | |||||
| expect_equal(p$top, "1em") | |||||
| expect_equal(p$right, "2em") | |||||
| expect_equal(p$bottom, "3em") | |||||
| expect_equal(p$left, "4em") | |||||
| }) | |||||
| it("throws an error if padding is a vector", { | |||||
| expect_error(css_get_padding(c("1em", "2em"))) | |||||
| }) | |||||
| it("throws an error if result is not 1, 2, 4 element", { | |||||
| expect_error(css_get_padding("1em 2em 3em")) | |||||
| expect_error(css_get_padding("1em 2em 3em 4em 5em")) | |||||
| }) | |||||
| }) |