| condition | R Documentation |
Creates a condition object specifying CSS rules that apply when a container
query matches. Used within container to define responsive styles.
condition(..., query = NULL, .extra_css = NULL)
... |
Named CSS properties applied to the container's content element.
Property names use CSS syntax (e.g., |
query |
Container query condition string (e.g., |
.extra_css |
Named list of CSS rules for child selectors.
Names are CSS selectors (e.g., |
A condition object (list) for use in container.
condition(
`background-color` = "red",
query = "width > 1200px",
.extra_css = list(
`.first` = htmltools::css(`min-width` = "300px", height = "400px")
)
)
# Unconditional base styles (query = NULL)
condition(
!!!grid(template_areas = list(c("a", "b")))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.