Liking cljdoc? Tell your friends :D

day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.selectors

Macros and functions for working with CSS selectors.

Macros and functions for working with CSS selectors.
raw docstring

&clj/s

(& & selectors)

Parent selector.

Parent selector.
sourceraw docstring

+clj/s

(+ a b)

Adjacent sibling combinator.

Adjacent sibling combinator.
sourceraw docstring

-clj/s

(- a b)

General sibling combinator.

General sibling combinator.
sourceraw docstring

>clj/s

(> a)
(> a b)
(> a b & more)

Child combinator.

Child combinator.
sourceraw docstring

aclj/s

(a & selectors)

CSS a type selector.

CSS a type selector.
sourceraw docstring

abbrclj/s

(abbr & selectors)

CSS abbr type selector.

CSS abbr type selector.
sourceraw docstring

activeclj/s

(active & selectors)

CSS :active pseudo-class selector.

CSS :active pseudo-class selector.
sourceraw docstring

addressclj/s

(address & selectors)

CSS address type selector.

CSS address type selector.
sourceraw docstring

afterclj/s

(after & selectors)

CSS ::after pseudo element selector.

CSS ::after pseudo element selector.
sourceraw docstring

areaclj/s

(area & selectors)

CSS area type selector.

CSS area type selector.
sourceraw docstring

articleclj/s

(article & selectors)

CSS article type selector.

CSS article type selector.
sourceraw docstring

asideclj/s

(aside & selectors)

CSS aside type selector.

CSS aside type selector.
sourceraw docstring

attrclj/s

(attr attr-name)
(attr attr-name op attr-value)
source

attr-containsclj/s

(attr-contains attr-name attr-value)
source

attr-ends-withclj/s

(attr-ends-with attr-name attr-value)
source

attr-matchesclj/s

(attr-matches attr-name attr-value)
source

attr-starts-withclj/s

(attr-starts-with attr-name attr-value)
source

attr-starts-with*clj/s

(attr-starts-with* attr-name attr-value)
source

attr=clj/s

(attr= attr-name attr-value)
source

audioclj/s

(audio & selectors)

CSS audio type selector.

CSS audio type selector.
sourceraw docstring

bclj/s

(b & selectors)

CSS b type selector.

CSS b type selector.
sourceraw docstring

baseclj/s

(base & selectors)

CSS base type selector.

CSS base type selector.
sourceraw docstring

bdiclj/s

(bdi & selectors)

CSS bdi type selector.

CSS bdi type selector.
sourceraw docstring

bdoclj/s

(bdo & selectors)

CSS bdo type selector.

CSS bdo type selector.
sourceraw docstring

beforeclj/s

(before & selectors)

CSS ::before pseudo element selector.

CSS ::before pseudo element selector.
sourceraw docstring

blockquoteclj/s

(blockquote & selectors)

CSS blockquote type selector.

CSS blockquote type selector.
sourceraw docstring

bodyclj/s

(body & selectors)

CSS body type selector.

CSS body type selector.
sourceraw docstring

brclj/s

(br & selectors)

CSS br type selector.

CSS br type selector.
sourceraw docstring

buttonclj/s

(button & selectors)

CSS button type selector.

CSS button type selector.
sourceraw docstring

canvasclj/s

(canvas & selectors)

CSS canvas type selector.

CSS canvas type selector.
sourceraw docstring

captionclj/s

(caption & selectors)

CSS caption type selector.

CSS caption type selector.
sourceraw docstring

checkedclj/s

(checked & selectors)

CSS :checked pseudo-class selector.

CSS :checked pseudo-class selector.
sourceraw docstring

citeclj/s

(cite & selectors)

CSS cite type selector.

CSS cite type selector.
sourceraw docstring

codeclj/s

(code & selectors)

CSS code type selector.

CSS code type selector.
sourceraw docstring

colclj/s

(col & selectors)

CSS col type selector.

CSS col type selector.
sourceraw docstring

colgroupclj/s

(colgroup & selectors)

CSS colgroup type selector.

CSS colgroup type selector.
sourceraw docstring

commandclj/s

(command & selectors)

CSS command type selector.

CSS command type selector.
sourceraw docstring

datalistclj/s

(datalist & selectors)

CSS datalist type selector.

CSS datalist type selector.
sourceraw docstring

ddclj/s

(dd & selectors)

CSS dd type selector.

CSS dd type selector.
sourceraw docstring

defaultclj/s

(default & selectors)

CSS :default pseudo-class selector.

CSS :default pseudo-class selector.
sourceraw docstring

defclassclj/smacro

(defclass sym)
source

defidclj/smacro

(defid sym)
source

defpseudoclassclj/smacro

(defpseudoclass sym & fn-tail)

Define an instance of a CSSSelector named sym for creating a CSS pseudo class. This instance doubles as both a function and a literal (when passed to the css-selector). When the function is called it will return a new instance that possesses the same properties. All arguments to the function must satisfy ICSSSelector.

Optionally fn-tail may be passed to create a structual pseudo class. The return value of the function constructed from fn-tail will be cast to a string via css-selector or str.

Example:

(defselector a) ;; => #'user/a (defpseudoclass hover) ;; => #'user/hover (hover) ;; => #<CssSelector day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.selectors.CssSelector@2a0ca6e1> (p/selector (a hover)) ;; => "a:hover"

Example:

(defpseudoclass not [x] (p/selector x)) ;; => #'user/not (p/selector (a hover (not "span")) ;; => a:hover:not(span)

;; Where p/selector is garden.protocols/selector

Define an instance of a CSSSelector named sym for creating a CSS
pseudo class. This instance doubles as both a function and a
literal (when passed to the css-selector). When the function is called
it will return a new instance that possesses the same properties. All
arguments to the function must satisfy ICSSSelector.

Optionally fn-tail may be passed to create a structual pseudo class.
The return value of the function constructed from fn-tail will be
cast to a string via css-selector or str.

Example:

  (defselector a)
  ;; => #'user/a
  (defpseudoclass hover)
  ;; => #'user/hover
  (hover)
  ;; => #<CssSelector day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.selectors.CssSelector@2a0ca6e1>
  (p/selector (a hover))
  ;; => "a:hover"

Example:

  (defpseudoclass not [x]
    (p/selector x))
  ;; => #'user/not
  (p/selector (a hover (not "span"))
  ;; => a:hover:not(span)

  ;; Where p/selector is garden.protocols/selector
sourceraw docstring

defpseudoelementclj/smacro

(defpseudoelement sym)

Define an instance of a CSSSelector named sym for creating a CSS pseudo element. This instance doubles as both a function and a literal (when passed to the css-selector). When the function is called it will return a new instance that possesses the same properties. All arguments to the function must satisfy ICSSSelector.

Example:

(defselector p) ;; => #'user/p (defpseudoelement first-letter) ;; => #'user/first-letter (first-letter) ;; => #<CssSelector day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.selectors.CssSelector@20aef718> (p/selector (p first-letter)) ;; => "p::first-letter"

;; Where p/selector is garden.protocols/selector

Define an instance of a CSSSelector named sym for creating a CSS
pseudo element. This instance doubles as both a function and a
literal (when passed to the css-selector). When the function is called
it will return a new instance that possesses the same properties. All
arguments to the function must satisfy ICSSSelector.

Example:

  (defselector p)
  ;; => #'user/p
  (defpseudoelement first-letter)
  ;; => #'user/first-letter
  (first-letter)
  ;; => #<CssSelector day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.selectors.CssSelector@20aef718>
  (p/selector (p first-letter))
  ;; => "p::first-letter"

  ;; Where p/selector is garden.protocols/selector
sourceraw docstring

defselectorclj/smacro

(defselector sym)
(defselector sym strval)

Define an instance of a CSSSelector named sym for creating a CSS selector. This instance doubles as both a function and a literal (when passed to the css-selector). When the function is called it will return a new instance that possesses the same properties. All arguments to the function must satisfy ICSSSelector.

Example:

(defselector a) ;; => #'user/a (a ":hover") ;; => #<CSSSelector day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.selectors.CSSSelector@7c42c2a9> (css-selector a) ;; => "a" (css-selector (a ":hover")) ;; => "a:hover"

Define an instance of a CSSSelector named sym for creating a
CSS selector. This instance doubles as both a function and a
literal (when passed to the css-selector). When the function is called
it will return a new instance that possesses the same properties. All
arguments to the function must satisfy ICSSSelector.

Example:

  (defselector a)
  ;; => #'user/a
  (a ":hover")
  ;; => #<CSSSelector day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.selectors.CSSSelector@7c42c2a9>
  (css-selector a)
  ;; => "a"
  (css-selector (a ":hover"))
  ;; => "a:hover"
sourceraw docstring

delclj/s

(del & selectors)

CSS del type selector.

CSS del type selector.
sourceraw docstring

descendantclj/s

(descendant a b)
(descendant a b & more)

Descendant combinator.

Descendant combinator.
sourceraw docstring

detailsclj/s

(details & selectors)

CSS details type selector.

CSS details type selector.
sourceraw docstring

dfnclj/s

(dfn & selectors)

CSS dfn type selector.

CSS dfn type selector.
sourceraw docstring

disabledclj/s

(disabled & selectors)

CSS :disabled pseudo-class selector.

CSS :disabled pseudo-class selector.
sourceraw docstring

divclj/s

(div & selectors)

CSS div type selector.

CSS div type selector.
sourceraw docstring

dlclj/s

(dl & selectors)

CSS dl type selector.

CSS dl type selector.
sourceraw docstring

dtclj/s

(dt & selectors)

CSS dt type selector.

CSS dt type selector.
sourceraw docstring

emclj/s

(em & selectors)

CSS em type selector.

CSS em type selector.
sourceraw docstring

embedclj/s

(embed & selectors)

CSS embed type selector.

CSS embed type selector.
sourceraw docstring

emptyclj/s

(empty & selectors)

CSS :empty pseudo-class selector.

CSS :empty pseudo-class selector.
sourceraw docstring

enabledclj/s

(enabled & selectors)

CSS :enabled pseudo-class selector.

CSS :enabled pseudo-class selector.
sourceraw docstring

fieldsetclj/s

(fieldset & selectors)

CSS fieldset type selector.

CSS fieldset type selector.
sourceraw docstring

figcaptionclj/s

(figcaption & selectors)

CSS figcaption type selector.

CSS figcaption type selector.
sourceraw docstring

figureclj/s

(figure & selectors)

CSS figure type selector.

CSS figure type selector.
sourceraw docstring

firstclj/s

(first & selectors)

CSS :first pseudo-class selector.

CSS :first pseudo-class selector.
sourceraw docstring

first-childclj/s

(first-child & selectors)

CSS :first-child pseudo-class selector.

CSS :first-child pseudo-class selector.
sourceraw docstring

first-letterclj/s

(first-letter & selectors)

CSS ::first-letter pseudo element selector.

CSS ::first-letter pseudo element selector.
sourceraw docstring

first-lineclj/s

(first-line & selectors)

CSS ::first-line pseudo element selector.

CSS ::first-line pseudo element selector.
sourceraw docstring

first-of-typeclj/s

(first-of-type & selectors)

CSS :first-of-type pseudo-class selector.

CSS :first-of-type pseudo-class selector.
sourceraw docstring

focusclj/s

(focus & selectors)

CSS :focus pseudo-class selector.

CSS :focus pseudo-class selector.
sourceraw docstring

(footer & selectors)

CSS footer type selector.

CSS footer type selector.
sourceraw docstring

formclj/s

(form & selectors)

CSS form type selector.

CSS form type selector.
sourceraw docstring

fullscreenclj/s

(fullscreen & selectors)

CSS :fullscreen pseudo-class selector.

CSS :fullscreen pseudo-class selector.
sourceraw docstring

h1clj/s

(h1 & selectors)

CSS h1 type selector.

CSS h1 type selector.
sourceraw docstring

h2clj/s

(h2 & selectors)

CSS h2 type selector.

CSS h2 type selector.
sourceraw docstring

h3clj/s

(h3 & selectors)

CSS h3 type selector.

CSS h3 type selector.
sourceraw docstring

h4clj/s

(h4 & selectors)

CSS h4 type selector.

CSS h4 type selector.
sourceraw docstring

h5clj/s

(h5 & selectors)

CSS h5 type selector.

CSS h5 type selector.
sourceraw docstring

h6clj/s

(h6 & selectors)

CSS h6 type selector.

CSS h6 type selector.
sourceraw docstring

(head & selectors)

CSS head type selector.

CSS head type selector.
sourceraw docstring

(header & selectors)

CSS header type selector.

CSS header type selector.
sourceraw docstring

hgroupclj/s

(hgroup & selectors)

CSS hgroup type selector.

CSS hgroup type selector.
sourceraw docstring

hoverclj/s

(hover & selectors)

CSS :hover pseudo-class selector.

CSS :hover pseudo-class selector.
sourceraw docstring

hrclj/s

(hr & selectors)

CSS hr type selector.

CSS hr type selector.
sourceraw docstring

htmlclj/s

(html & selectors)

CSS html type selector.

CSS html type selector.
sourceraw docstring

iclj/s

(i & selectors)

CSS i type selector.

CSS i type selector.
sourceraw docstring

ICSSSelectorclj/sprotocol

css-selectorclj/s

(css-selector this)
source

iframeclj/s

(iframe & selectors)

CSS iframe type selector.

CSS iframe type selector.
sourceraw docstring

imgclj/s

(img & selectors)

CSS img type selector.

CSS img type selector.
sourceraw docstring

in-rangeclj/s

(in-range & selectors)

CSS :in-range pseudo-class selector.

CSS :in-range pseudo-class selector.
sourceraw docstring

indeterminateclj/s

(indeterminate & selectors)

CSS :indeterminate pseudo-class selector.

CSS :indeterminate pseudo-class selector.
sourceraw docstring

inputclj/s

(input & selectors)

CSS input type selector.

CSS input type selector.
sourceraw docstring

insclj/s

(ins & selectors)

CSS ins type selector.

CSS ins type selector.
sourceraw docstring

invalidclj/s

(invalid & selectors)

CSS :invalid pseudo-class selector.

CSS :invalid pseudo-class selector.
sourceraw docstring

kbdclj/s

(kbd & selectors)

CSS kbd type selector.

CSS kbd type selector.
sourceraw docstring

keygenclj/s

(keygen & selectors)

CSS keygen type selector.

CSS keygen type selector.
sourceraw docstring

labelclj/s

(label & selectors)

CSS label type selector.

CSS label type selector.
sourceraw docstring

langclj/s

(lang language)
source

last-childclj/s

(last-child & selectors)

CSS :last-child pseudo-class selector.

CSS :last-child pseudo-class selector.
sourceraw docstring

last-of-typeclj/s

(last-of-type & selectors)

CSS :last-of-type pseudo-class selector.

CSS :last-of-type pseudo-class selector.
sourceraw docstring

leftclj/s

(left & selectors)

CSS :left pseudo-class selector.

CSS :left pseudo-class selector.
sourceraw docstring

legendclj/s

(legend & selectors)

CSS legend type selector.

CSS legend type selector.
sourceraw docstring

liclj/s

(li & selectors)

CSS li type selector.

CSS li type selector.
sourceraw docstring

(link & selectors)

CSS link type selector.

CSS link type selector.
sourceraw docstring

(links & selectors)

CSS :links pseudo-class selector.

CSS :links pseudo-class selector.
sourceraw docstring

mapclj/s

(map & selectors)

CSS map type selector.

CSS map type selector.
sourceraw docstring

markclj/s

(mark & selectors)

CSS mark type selector.

CSS mark type selector.
sourceraw docstring

mathclj/s

(math & selectors)

CSS math type selector.

CSS math type selector.
sourceraw docstring

(menu & selectors)

CSS menu type selector.

CSS menu type selector.
sourceraw docstring

metaclj/s

(meta & selectors)

CSS meta type selector.

CSS meta type selector.
sourceraw docstring

meterclj/s

(meter & selectors)

CSS meter type selector.

CSS meter type selector.
sourceraw docstring

(nav & selectors)

CSS nav type selector.

CSS nav type selector.
sourceraw docstring

noscriptclj/s

(noscript & selectors)

CSS noscript type selector.

CSS noscript type selector.
sourceraw docstring

notclj/s

(not selector)
source

nth-childclj/s

(nth-child x)

CSS :nth-child pseudo class selector.

CSS :nth-child pseudo class selector.
sourceraw docstring

nth-child-reclj/s

source

nth-last-childclj/s

(nth-last-child x)

CSS :nth-last-child pseudo class selector.

CSS :nth-last-child pseudo class selector.
sourceraw docstring

nth-last-of-typeclj/s

(nth-last-of-type x)

CSS :nth-last-of-type pseudo class selector.

CSS :nth-last-of-type pseudo class selector.
sourceraw docstring

nth-of-typeclj/s

(nth-of-type x)

CSS :nth-of-type pseudo class selector.

CSS :nth-of-type pseudo class selector.
sourceraw docstring

nth-xclj/s

(nth-x x)

nth-child helper.

nth-child helper.
sourceraw docstring

objectclj/s

(object & selectors)

CSS object type selector.

CSS object type selector.
sourceraw docstring

olclj/s

(ol & selectors)

CSS ol type selector.

CSS ol type selector.
sourceraw docstring

only-childclj/s

(only-child & selectors)

CSS :only-child pseudo-class selector.

CSS :only-child pseudo-class selector.
sourceraw docstring

only-of-typeclj/s

(only-of-type & selectors)

CSS :only-of-type pseudo-class selector.

CSS :only-of-type pseudo-class selector.
sourceraw docstring

optgroupclj/s

(optgroup & selectors)

CSS optgroup type selector.

CSS optgroup type selector.
sourceraw docstring

optionclj/s

(option & selectors)

CSS option type selector.

CSS option type selector.
sourceraw docstring

optionalclj/s

(optional & selectors)

CSS :optional pseudo-class selector.

CSS :optional pseudo-class selector.
sourceraw docstring

out-of-rangeclj/s

(out-of-range & selectors)

CSS :out-of-range pseudo-class selector.

CSS :out-of-range pseudo-class selector.
sourceraw docstring

outputclj/s

(output & selectors)

CSS output type selector.

CSS output type selector.
sourceraw docstring

pclj/s

(p & selectors)

CSS p type selector.

CSS p type selector.
sourceraw docstring

paramclj/s

(param & selectors)

CSS param type selector.

CSS param type selector.
sourceraw docstring

preclj/s

(pre & selectors)

CSS pre type selector.

CSS pre type selector.
sourceraw docstring

progressclj/s

(progress & selectors)

CSS progress type selector.

CSS progress type selector.
sourceraw docstring

qclj/s

(q & selectors)

CSS q type selector.

CSS q type selector.
sourceraw docstring

read-onlyclj/s

(read-only & selectors)

CSS :read-only pseudo-class selector.

CSS :read-only pseudo-class selector.
sourceraw docstring

read-writeclj/s

(read-write & selectors)

CSS :read-write pseudo-class selector.

CSS :read-write pseudo-class selector.
sourceraw docstring

requiredclj/s

(required & selectors)

CSS :required pseudo-class selector.

CSS :required pseudo-class selector.
sourceraw docstring

(right & selectors)

CSS :right pseudo-class selector.

CSS :right pseudo-class selector.
sourceraw docstring

rootclj/s

(root & selectors)

CSS :root pseudo-class selector.

CSS :root pseudo-class selector.
sourceraw docstring

rpclj/s

(rp & selectors)

CSS rp type selector.

CSS rp type selector.
sourceraw docstring

rtclj/s

(rt & selectors)

CSS rt type selector.

CSS rt type selector.
sourceraw docstring

rubyclj/s

(ruby & selectors)

CSS ruby type selector.

CSS ruby type selector.
sourceraw docstring

sclj/s

(s & selectors)

CSS s type selector.

CSS s type selector.
sourceraw docstring

sampclj/s

(samp & selectors)

CSS samp type selector.

CSS samp type selector.
sourceraw docstring

scopeclj/s

(scope & selectors)

CSS :scope pseudo-class selector.

CSS :scope pseudo-class selector.
sourceraw docstring

scriptclj/s

(script & selectors)

CSS script type selector.

CSS script type selector.
sourceraw docstring

sectionclj/s

(section & selectors)

CSS section type selector.

CSS section type selector.
sourceraw docstring

selectclj/s

(select & selectors)

CSS select type selector.

CSS select type selector.
sourceraw docstring

selectorclj/s

(selector x)
source

selector?clj/s

(selector? x)
source

smallclj/s

(small & selectors)

CSS small type selector.

CSS small type selector.
sourceraw docstring

sourceclj/s

(source & selectors)

CSS source type selector.

CSS source type selector.
sourceraw docstring

spanclj/s

(span & selectors)

CSS span type selector.

CSS span type selector.
sourceraw docstring

specificityclj/s

(specificity selector)

Calculate a CSS3 selector's specificity.

Example:

(specificity "#s12:not(FOO)") ;; => 101 (specificity (a hover)) ;; => 10

Calculate a CSS3 selector's specificity.

Example:

  (specificity "#s12:not(FOO)")
  ;; => 101
  (specificity (a hover))
  ;; => 10
sourceraw docstring

strongclj/s

(strong & selectors)

CSS strong type selector.

CSS strong type selector.
sourceraw docstring

styleclj/s

(style & selectors)

CSS style type selector.

CSS style type selector.
sourceraw docstring

subclj/s

(sub & selectors)

CSS sub type selector.

CSS sub type selector.
sourceraw docstring

summaryclj/s

(summary & selectors)

CSS summary type selector.

CSS summary type selector.
sourceraw docstring

supclj/s

(sup & selectors)

CSS sup type selector.

CSS sup type selector.
sourceraw docstring

svgclj/s

(svg & selectors)

CSS svg type selector.

CSS svg type selector.
sourceraw docstring

tableclj/s

(table & selectors)

CSS table type selector.

CSS table type selector.
sourceraw docstring

targetclj/s

(target & selectors)

CSS :target pseudo-class selector.

CSS :target pseudo-class selector.
sourceraw docstring

tbodyclj/s

(tbody & selectors)

CSS tbody type selector.

CSS tbody type selector.
sourceraw docstring

tdclj/s

(td & selectors)

CSS td type selector.

CSS td type selector.
sourceraw docstring

textareaclj/s

(textarea & selectors)

CSS textarea type selector.

CSS textarea type selector.
sourceraw docstring

tfootclj/s

(tfoot & selectors)

CSS tfoot type selector.

CSS tfoot type selector.
sourceraw docstring

thclj/s

(th & selectors)

CSS th type selector.

CSS th type selector.
sourceraw docstring

theadclj/s

(thead & selectors)

CSS thead type selector.

CSS thead type selector.
sourceraw docstring

timeclj/s

(time & selectors)

CSS time type selector.

CSS time type selector.
sourceraw docstring

titleclj/s

(title & selectors)

CSS title type selector.

CSS title type selector.
sourceraw docstring

trclj/s

(tr & selectors)

CSS tr type selector.

CSS tr type selector.
sourceraw docstring

trackclj/s

(track & selectors)

CSS track type selector.

CSS track type selector.
sourceraw docstring

uclj/s

(u & selectors)

CSS u type selector.

CSS u type selector.
sourceraw docstring

ulclj/s

(ul & selectors)

CSS ul type selector.

CSS ul type selector.
sourceraw docstring

validclj/s

(valid & selectors)

CSS :valid pseudo-class selector.

CSS :valid pseudo-class selector.
sourceraw docstring

varclj/s

(var & selectors)

CSS var type selector.

CSS var type selector.
sourceraw docstring

videoclj/s

(video & selectors)

CSS video type selector.

CSS video type selector.
sourceraw docstring

visitedclj/s

(visited & selectors)

CSS :visited pseudo-class selector.

CSS :visited pseudo-class selector.
sourceraw docstring

wbrclj/s

(wbr & selectors)

CSS wbr type selector.

CSS wbr type selector.
sourceraw docstring

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

× close