Module

CSS.Selector

#Path

data Path f

Constructors

Instances

#star

star :: Selector

The star selector applies to all elements. Maps to * in CSS.

#element

element :: String -> Selector

Select elements by name.

#deep

deep :: Selector -> Selector -> Selector

The deep selector composer. Maps to sel1 sel2 in CSS.

#(|*)

Operator alias for CSS.Selector.deep (non-associative / precedence 6)

#child

child :: Selector -> Selector -> Selector

The child selector composer. Maps to sel1 > sel2 in CSS.

#(|>)

Operator alias for CSS.Selector.child (non-associative / precedence 6)

#adjacent

adjacent :: Selector -> Selector -> Selector

The adjacent selector composer. Maps to sel1 + sel2 in CSS.

#(|+)

Operator alias for CSS.Selector.adjacent (non-associative / precedence 6)

#with

with :: Selector -> Refinement -> Selector

The filter selector composer, adds a filter to a selector. Maps to something like sel#filter, sel.filter or sel:filter in CSS, depending on the filter.

#(&)

Operator alias for CSS.Selector.with (non-associative / precedence 6)

#byId

byId :: String -> Refinement

Filter elements by id.

#byClass

byClass :: String -> Refinement

Filter elements by class.

#pseudo

pseudo :: String -> Refinement

Filter elements by pseudo selector or pseudo class. The preferred syntax is to use :pseudo-selector or use one of the predefined ones from CSS.Pseudo.

#func

func :: String -> Array String -> Refinement

Filter elements by pseudo selector functions. The preferred way is to use one of the predefined functions from CSS.Pseudo.

#attr

attr :: String -> Refinement

Filter elements based on the presence of a certain attribute.

#attrVal

attrVal :: String -> String -> Refinement

Filter elements based on the presence of a certain attribute with the specified value.

#(@=)

Operator alias for CSS.Selector.attrVal (non-associative / precedence 6)

#attrBegins

attrBegins :: String -> String -> Refinement

Filter elements based on the presence of a certain attribute that begins with the selected value.

#(^=)

Operator alias for CSS.Selector.attrBegins (non-associative / precedence 6)

#attrEnds

attrEnds :: String -> String -> Refinement

Filter elements based on the presence of a certain attribute that ends with the specified value.

#($=)

Operator alias for CSS.Selector.attrEnds (non-associative / precedence 6)

#attrContains

attrContains :: String -> String -> Refinement

Filter elements based on the presence of a certain attribute that contains the specified value as a substring.

#(*=)

Operator alias for CSS.Selector.attrContains (non-associative / precedence 6)

#attrSpace

attrSpace :: String -> String -> Refinement

Filter elements based on the presence of a certain attribute that have the specified value contained in a space separated list.

#(~=)

Operator alias for CSS.Selector.attrSpace (non-associative / precedence 6)

#attrHyph

attrHyph :: String -> String -> Refinement

Filter elements based on the presence of a certain attribute that have the specified value contained in a hyphen separated list.

#(|=)

Operator alias for CSS.Selector.attrHyph (non-associative / precedence 6)

Modules