-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathw3css_responsive.R
75 lines (69 loc) · 1.13 KB
/
w3css_responsive.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#' W3.CSS Built-In Responsiveness
#'
#' Implementation of W3.CSS Built-In Responsiveness, as described in
#' [https://www.w3schools.com/w3css/w3css_responsive.asp](https://www.w3schools.com/w3css/w3css_responsive.asp)
#'
#' @param ... UI elements to include
#'
#' @return a UI element.
#' @export
#' @rdname responsive
#'
#' @importFrom htmltools tags
#'
#' @examples
#' w3_half("hey there")
w3_half <- function(...) {
tags$div(
class = "w3-half",
...
)
}
#' @export
#' @rdname responsive
w3_third <- function(...) {
tags$div(
class = "w3-third",
...
)
}
#' @export
#' @rdname responsive
w3_twothird <- function(...) {
tags$div(
class = "w3-twothird",
...
)
}
#' @export
#' @rdname responsive
w3_quarter <- function(...) {
tags$div(
class = "w3-quarter",
...
)
}
#' @export
#' @rdname responsive
w3_threequarter <- function(...) {
tags$div(
class = "w3-threequarter",
...
)
}
#' @export
#' @rdname responsive
w3_rest <- function(...) {
tags$div(
class = "w3-rest",
...
)
}
#' @export
#' @rdname responsive
w3_col <- function(...) {
tags$div(
class = "w3-col",
...
)
}