Liking cljdoc? Tell your friends :D

charm.style.layout

Layout utilities: padding, margin, alignment, and joining.

Layout utilities: padding, margin, alignment, and joining.
raw docstring

align-horizontalclj

(align-horizontal text width position & {:keys [bg]})

Align text horizontally within a given width.

Position can be :left, :center, or :right.

Options: :bg - Background color for fill

Align text horizontally within a given width.

Position can be :left, :center, or :right.

Options:
  :bg - Background color for fill
sourceraw docstring

align-verticalclj

(align-vertical text height position)

Align text vertically within a given height.

Position can be :top, :center, or :bottom.

Align text vertically within a given height.

Position can be :top, :center, or :bottom.
sourceraw docstring

bottomclj

source

centerclj

source

expand-box-valuesclj

(expand-box-values values)

Expand 1-4 values to [top right bottom left] (CSS box model).

1 value: [a] -> [a a a a] 2 values: [a b] -> [a b a b] 3 values: [a b c] -> [a b c b] 4 values: [a b c d] -> [a b c d]

Expand 1-4 values to [top right bottom left] (CSS box model).

1 value:  [a]       -> [a a a a]
2 values: [a b]     -> [a b a b]
3 values: [a b c]   -> [a b c b]
4 values: [a b c d] -> [a b c d]
sourceraw docstring

join-horizontalclj

(join-horizontal position & texts)

Join multiple text blocks horizontally.

Position specifies vertical alignment: :top, :center, or :bottom.

Join multiple text blocks horizontally.

Position specifies vertical alignment: :top, :center, or :bottom.
sourceraw docstring

join-verticalclj

(join-vertical position & texts)

Join multiple text blocks vertically.

Position specifies horizontal alignment: :left, :center, or :right.

Join multiple text blocks vertically.

Position specifies horizontal alignment: :left, :center, or :right.
sourceraw docstring

leftclj

source

marginclj

(margin text values)
(margin text top-margin right-margin bottom-margin left-margin & {:keys [bg]})

Add margin around text.

Accepts either:

  • (margin text [top right bottom left])
  • (margin text top right bottom left)

Options: :bg - Background color for margin

Add margin around text.

Accepts either:
- (margin text [top right bottom left])
- (margin text top right bottom left)

Options:
  :bg - Background color for margin
sourceraw docstring

padclj

(pad text values)
(pad text top-pad right-pad bottom-pad left-pad & {:keys [bg]})

Add padding around text.

Accepts either:

  • (pad text [top right bottom left])
  • (pad text top right bottom left)

Options: :bg - Background color for padding

Add padding around text.

Accepts either:
- (pad text [top right bottom left])
- (pad text top right bottom left)

Options:
  :bg - Background color for padding
sourceraw docstring

source

topclj

source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close