add_box_colour: Generate additional ioslides_plus box colours

Description Usage Arguments Value

View source: R/add_box_colour.R

Description

This function generates the css code to support additional box colours

Usage

1
2
3
4
5
add_box_colour(name, bg, header_bg = NULL, text = NULL,
  header_text = NULL, .prefix = "bg-")

add_box_color(name, bg, header_bg = NULL, text = NULL, header_text = NULL,
  .prefix = "bg-")

Arguments

name

The name of the colour. If missing, '.prefix' is prepended.

bg

The background colour defined as a colour name, hexadecimal string or a positive integer as supported by the 'col2rgb()' function.

header_bg

The optional background colour of the header bar. If missing, the function will define it.

text

The optional text colour. If missing, the function will determine if the text should be rendered in black or white.

header_text

The optional header bar text colour. If missing, the function will determine if the text should be rendered in black or white.

.prefix

[character(1): "bg-"]
Set the prefix which is prepended to the name in order to avoid conflicts with already defined colours.

Value

css code to be included in the ioslides_plus HTML document.


koncina/iosp documentation built on Nov. 23, 2020, 7:23 p.m.