Liking cljdoc? Tell your friends :D

hyperfiddle.electric-css3

Dom3 compatible electric-css

  • Experimental — Use it at your own risk.
  • Partial at-rules support (only @keyframes ATM)
Dom3 compatible electric-css
- Experimental — Use it at your own risk.
- Partial at-rules support (only @keyframes ATM)
raw docstring

concat-selectorsclj

(concat-selectors selectorA selectorB)
source

css-compatible-valueclj

(css-compatible-value x)
source

grid-templateclj

(grid-template rows)
(grid-template rows columns)

Convenient way to build a string compatible with CSS grid-template rule. Takes a collection of rows definition [dimention1 … dimentionN] or [[[area1 … areaN] dimention] …] And an optional collection of columns dimentions [dimention1 … dimentionN].

E.g. (grid-template [[[:logo :title :user-info] :auto] [[:menu :content :content ] :auto] [[:footer :footer :footer ] "1fr"]] ["20rem" :auto]) := ""logo title user-info" auto "menu content content" auto "footer footer footer" 1fr / 20rem auto"

Convenient way to build a string compatible with CSS grid-template rule.
Takes a collection of rows definition [dimention1 … dimentionN] or [[[area1 … areaN] dimention] …]
And an optional collection of columns dimentions [dimention1 … dimentionN].

E.g. (grid-template [[[:logo   :title   :user-info] :auto]
                     [[:menu   :content :content  ] :auto]
                     [[:footer :footer  :footer   ] "1fr"]]
      ["20rem" :auto])
 := ""logo title user-info" auto "menu content content" auto "footer footer footer" 1fr / 20rem auto"
sourceraw docstring

keyframecljmacro

(keyframe stop declarations)

Take a stop string (e.g. "from", "to", "0%", "50%", etc...) and a map of css declarations to apply at the given stop. Will add the animation stop to the current keyframes. Can only be used in a keyframes block. Note that adding or removing a keyframe at runtime resets running animations, but changing a keyframe's content doesn't.

Take a `stop` string (e.g. "from", "to", "0%", "50%", etc...) and a map of css declarations to apply at the given `stop`.
 Will add the animation stop to the current `keyframes`. Can only be used in a `keyframes` block.
Note that adding or removing a `keyframe` at runtime resets running animations, but changing a keyframe's content doesn't. 
sourceraw docstring

keyframescljmacro

(keyframes animation-name & keyframes)

Create an @keyframes <animation-name> rule group. Note @keyframes are always global, even if defined in a scoped style. Can only contain keyframe rules.

Create an @keyframes <animation-name> rule group. Note @keyframes are always
global, even if defined in a scoped style. Can only contain `keyframe` rules.
sourceraw docstring

rulecljmacro

(rule selector & declarations)
source

rule*clj

(rule* styled-element selector declarations)
source

rule-indexclj

(rule-index styled-element target-rule)

Find the rule index in the node sheet's CSSRuleList

Find the rule index in the node sheet's CSSRuleList
sourceraw docstring

scoped-classclj

(scoped-class)
source

scoped-stylecljmacro

(scoped-style & body)
source

selectorclj

source

Styleclj

(Style styled property value)

Set a style property name to value on a styled object (e.g. DOM node, CSS Stylesheet, CSS Rule etc.).

Set a style `property` name to `value` on a `styled` object (e.g. DOM node, CSS Stylesheet, CSS Rule etc.).
sourceraw docstring

stylecljmacro

(style & body)

Usage: (dom/div (dom/props {:class "my-div"}) (css/style (css/rule ".my-div" {:color :red}) (css/rule ".my-div:hover" {:color :blue})))

Usage:
(dom/div
  (dom/props {:class "my-div"})
  (css/style
    (css/rule ".my-div" {:color :red})
    (css/rule ".my-div:hover" {:color :blue})))
sourceraw docstring

StyledElementcljprotocol

Define an object containing CSS rules

Define an object containing CSS rules

add-ruleclj

(add-rule this rule)
(add-rule this rule index)

css-rulesclj

(css-rules this)

delete-ruleclj

(delete-rule this rule)

find-ruleclj

(find-rule this rule)

sheetclj

(sheet this)
sourceraw docstring

StyleRulecljprotocol

Interface over a CSS rule

Interface over a CSS rule

set-propertyclj

(set-property this key value)
sourceraw docstring

stylesheet<clj

source

to-strclj

(to-str x)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close