소스 검색

Update modifiers documentation

master
Garrick Aden-Buie 7 년 전
부모
커밋
cbc43ac8af
9개의 변경된 파일67개의 추가작업 그리고 26개의 파일을 삭제
  1. +14
    -13
      R/modifiers.R
  2. +8
    -2
      man/bulma_color.Rd
  3. +9
    -2
      man/bulma_helper.Rd
  4. +8
    -2
      man/bulma_modifier.Rd
  5. +7
    -2
      man/bulma_responsive.Rd
  6. +7
    -2
      man/bulma_responsive_alignment.Rd
  7. +6
    -1
      man/bulma_responsive_size.Rd
  8. +7
    -2
      man/bulma_typography.Rd
  9. +1
    -0
      tests/manual/example/bulma-test.Rmd

+ 14
- 13
R/modifiers.R 파일 보기

#' @return String of modifer classes #' @return String of modifer classes
#' @examples #' @examples
#' bulma_modifier(color = "primary", size = "large", state = "outlined") #' bulma_modifier(color = "primary", size = "large", state = "outlined")
#' @references https://bulma.io/documentation/modifiers/syntax/
#' @seealso Bulma modifiers
#' @references <https://bulma.io/documentation/modifiers/syntax/>
#' @family Bulma modifiers
#' @return String of modifier classes #' @return String of modifier classes
#' @export #' @export
bulma_modifier <- function(color = NULL, size = NULL, state = NULL) { bulma_modifier <- function(color = NULL, size = NULL, state = NULL) {
#' #'
#' `paddingless` Removes any padding #' `paddingless` Removes any padding
#' @param other `overlay` Completely covers the first positioned parent #' @param other `overlay` Completely covers the first positioned parent
#'
#' `clipped` Adds overflow hidden #' `clipped` Adds overflow hidden
#' #'
#' `radiusless` Removes any radius #' `radiusless` Removes any radius
#' bulma_helper(float = "pulled-left") #' bulma_helper(float = "pulled-left")
#' bulma_helper(spacing = c("marginless", "paddingless")) #' bulma_helper(spacing = c("marginless", "paddingless"))
#' bulma_helper(other = "clipped", float = "pulled-right") #' bulma_helper(other = "clipped", float = "pulled-right")
#' @references https://bulma.io/documentation/modifiers/helpers
#' @seealso Bulma modifiers
#' @references <https://bulma.io/documentation/modifiers/helpers>
#' @family Bulma modifiers
#' @return String of modifier classes #' @return String of modifier classes
#' @export #' @export
bulma_helper <- function(float = NULL, spacing = NULL, other = NULL) { bulma_helper <- function(float = NULL, spacing = NULL, other = NULL) {
#' @examples #' @examples
#' bulma_responsive("flex", "tablet") #' bulma_responsive("flex", "tablet")
#' bulma_responsive("flex", "widescreen", only = TRUE) #' bulma_responsive("flex", "widescreen", only = TRUE)
#' @references https://bulma.io/documentation/modifiers/responsive-helpers/
#' @references <https://bulma.io/documentation/modifiers/responsive-helpers/>
#' @return A string of helper classes #' @return A string of helper classes
#' @seealso Bulma modifiers
#' @family Bulma modifiers
#' @export #' @export
bulma_responsive <- function(display = NULL, viewport = NULL, only = FALSE) { bulma_responsive <- function(display = NULL, viewport = NULL, only = FALSE) {
display <- validate_value(display, c( display <- validate_value(display, c(
#' bulma_color("white", "black") #' bulma_color("white", "black")
#' bulma_color("white", "primary") #' bulma_color("white", "primary")
#' #'
#' @references https://bulma.io/documentation/modifiers/color-helpers
#' @references <https://bulma.io/documentation/modifiers/color-helpers>
#' @return String of modifer classes #' @return String of modifer classes
#' @seealso Bulma modifiers
#' @family Bulma modifiers
#' @export #' @export
bulma_color <- function(text = NULL, background = NULL) { bulma_color <- function(text = NULL, background = NULL) {
text <- validate_color(text, "text") text <- validate_color(text, "text")
#' bulma_color("white", "black") #' bulma_color("white", "black")
#' bulma_color("white", "primary") #' bulma_color("white", "primary")
#' #'
#' @references https://bulma.io/documentation/modifiers/typography-helpers/
#' @references <https://bulma.io/documentation/modifiers/typography-helpers/>
#' @return String of modifer classes #' @return String of modifer classes
#' @seealso Bulma modifiers
#' @family Bulma modifiers
#' @export #' @export
bulma_typography <- function( bulma_typography <- function(
size = NULL, size = NULL,
#' bulma_responsive_size(2, "tablet") #' bulma_responsive_size(2, "tablet")
#' bulma_responsive_size(viewport = "widescreen") #' bulma_responsive_size(viewport = "widescreen")
#' @return String of modifier classes #' @return String of modifier classes
#' @seealso Bulma modifiers
#' @family Bulma modifiers
#' @export #' @export
bulma_responsive_size <- function(size = "1", viewport = "desktop") { bulma_responsive_size <- function(size = "1", viewport = "desktop") {
# TODO: Needs to be vectorized, matching size/viewport arguments # TODO: Needs to be vectorized, matching size/viewport arguments
#' bulma_responsive_alignment("centered", "tablet") #' bulma_responsive_alignment("centered", "tablet")
#' bulma_responsive_alignment(viewport = "widescreen") #' bulma_responsive_alignment(viewport = "widescreen")
#' @return String of modifier classes #' @return String of modifier classes
#' @references https://bulma.io/documentation/modifiers/typography-helpers/#responsive-alignment
#' @seealso Bulma modifiers
#' @references <https://bulma.io/documentation/modifiers/typography-helpers/#responsive-alignment>
#' @family Bulma modifiers
#' @export #' @export
bulma_responsive_alignment <- function(alignment = "left", viewport = "desktop") { bulma_responsive_alignment <- function(alignment = "left", viewport = "desktop") {
# TODO: Needs to be vectorized, matching alignment/viewport arguments # TODO: Needs to be vectorized, matching alignment/viewport arguments

+ 8
- 2
man/bulma_color.Rd 파일 보기



} }
\references{ \references{
https://bulma.io/documentation/modifiers/color-helpers
\url{https://bulma.io/documentation/modifiers/color-helpers}
} }
\seealso{ \seealso{
Bulma modifiers
Other Bulma modifiers: \code{\link{bulma_helper}},
\code{\link{bulma_modifier}},
\code{\link{bulma_responsive_alignment}},
\code{\link{bulma_responsive_size}},
\code{\link{bulma_responsive}},
\code{\link{bulma_typography}}
} }
\concept{Bulma modifiers}

+ 9
- 2
man/bulma_helper.Rd 파일 보기

\code{paddingless} Removes any padding} \code{paddingless} Removes any padding}


\item{other}{\code{overlay} Completely covers the first positioned parent \item{other}{\code{overlay} Completely covers the first positioned parent

\code{clipped} Adds overflow hidden \code{clipped} Adds overflow hidden


\code{radiusless} Removes any radius \code{radiusless} Removes any radius
bulma_helper(other = "clipped", float = "pulled-right") bulma_helper(other = "clipped", float = "pulled-right")
} }
\references{ \references{
https://bulma.io/documentation/modifiers/helpers
\url{https://bulma.io/documentation/modifiers/helpers}
} }
\seealso{ \seealso{
Bulma modifiers
Other Bulma modifiers: \code{\link{bulma_color}},
\code{\link{bulma_modifier}},
\code{\link{bulma_responsive_alignment}},
\code{\link{bulma_responsive_size}},
\code{\link{bulma_responsive}},
\code{\link{bulma_typography}}
} }
\concept{Bulma modifiers}

+ 8
- 2
man/bulma_modifier.Rd 파일 보기

bulma_modifier(color = "primary", size = "large", state = "outlined") bulma_modifier(color = "primary", size = "large", state = "outlined")
} }
\references{ \references{
https://bulma.io/documentation/modifiers/syntax/
\url{https://bulma.io/documentation/modifiers/syntax/}
} }
\seealso{ \seealso{
Bulma modifiers
Other Bulma modifiers: \code{\link{bulma_color}},
\code{\link{bulma_helper}},
\code{\link{bulma_responsive_alignment}},
\code{\link{bulma_responsive_size}},
\code{\link{bulma_responsive}},
\code{\link{bulma_typography}}
} }
\concept{Bulma modifiers}

+ 7
- 2
man/bulma_responsive.Rd 파일 보기

bulma_responsive("flex", "widescreen", only = TRUE) bulma_responsive("flex", "widescreen", only = TRUE)
} }
\references{ \references{
https://bulma.io/documentation/modifiers/responsive-helpers/
\url{https://bulma.io/documentation/modifiers/responsive-helpers/}
} }
\seealso{ \seealso{
Bulma modifiers
Other Bulma modifiers: \code{\link{bulma_color}},
\code{\link{bulma_helper}}, \code{\link{bulma_modifier}},
\code{\link{bulma_responsive_alignment}},
\code{\link{bulma_responsive_size}},
\code{\link{bulma_typography}}
} }
\concept{Bulma modifiers}

+ 7
- 2
man/bulma_responsive_alignment.Rd 파일 보기

bulma_responsive_alignment(viewport = "widescreen") bulma_responsive_alignment(viewport = "widescreen")
} }
\references{ \references{
https://bulma.io/documentation/modifiers/typography-helpers/#responsive-alignment
\url{https://bulma.io/documentation/modifiers/typography-helpers/#responsive-alignment}
} }
\seealso{ \seealso{
Bulma modifiers
Other Bulma modifiers: \code{\link{bulma_color}},
\code{\link{bulma_helper}}, \code{\link{bulma_modifier}},
\code{\link{bulma_responsive_size}},
\code{\link{bulma_responsive}},
\code{\link{bulma_typography}}
} }
\concept{Bulma modifiers}

+ 6
- 1
man/bulma_responsive_size.Rd 파일 보기

bulma_responsive_size(viewport = "widescreen") bulma_responsive_size(viewport = "widescreen")
} }
\seealso{ \seealso{
Bulma modifiers
Other Bulma modifiers: \code{\link{bulma_color}},
\code{\link{bulma_helper}}, \code{\link{bulma_modifier}},
\code{\link{bulma_responsive_alignment}},
\code{\link{bulma_responsive}},
\code{\link{bulma_typography}}
} }
\concept{Bulma modifiers}

+ 7
- 2
man/bulma_typography.Rd 파일 보기



} }
\references{ \references{
https://bulma.io/documentation/modifiers/typography-helpers/
\url{https://bulma.io/documentation/modifiers/typography-helpers/}
} }
\seealso{ \seealso{
Bulma modifiers
Other Bulma modifiers: \code{\link{bulma_color}},
\code{\link{bulma_helper}}, \code{\link{bulma_modifier}},
\code{\link{bulma_responsive_alignment}},
\code{\link{bulma_responsive_size}},
\code{\link{bulma_responsive}}
} }
\concept{Bulma modifiers}

+ 1
- 0
tests/manual/example/bulma-test.Rmd 파일 보기

toc: yes toc: yes
toc_depth: 2 toc_depth: 2
# css: custom.css # css: custom.css
rmarkdown::html_document: default
html_document_base: html_document_base:
pandoc_args: ["--template", "/Users/4468739/work/bulmaRmd/inst/bulma/bulma-min.html" ] pandoc_args: ["--template", "/Users/4468739/work/bulmaRmd/inst/bulma/bulma-min.html" ]
md_document: default md_document: default

Loading…
취소
저장