CSS.Selector
- Package
- purescript-css
- Repository
- purescript-contrib/purescript-css
#Refinement Source
#with Source
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.
#byId Source
byId :: String -> Refinement
Filter elements by id.
#byClass Source
byClass :: String -> Refinement
Filter elements by class.
#pseudo Source
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 Source
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 Source
attr :: String -> Refinement
Filter elements based on the presence of a certain attribute.
#attrVal Source
attrVal :: String -> String -> Refinement
Filter elements based on the presence of a certain attribute with the specified value.
#attrBegins Source
attrBegins :: String -> String -> Refinement
Filter elements based on the presence of a certain attribute that begins with the selected value.
#attrEnds Source
attrEnds :: String -> String -> Refinement
Filter elements based on the presence of a certain attribute that ends with the specified value.
#attrContains Source
attrContains :: String -> String -> Refinement
Filter elements based on the presence of a certain attribute that contains the specified value as a substring.
#attrSpace Source
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.
- Modules
- CSS
- CSS.
Animation - CSS.
Background - CSS.
Border - CSS.
Box - CSS.
Color - CSS.
Common - CSS.
Cursor - CSS.
Display - CSS.
Elements - CSS.
Flexbox - CSS.
Font - CSS.
FontFace - CSS.
FontStyle - CSS.
Geometry - CSS.
Gradient - CSS.
ListStyle - CSS.
ListStyle. Image - CSS.
ListStyle. Position - CSS.
ListStyle. Type - CSS.
Media - CSS.
Overflow - CSS.
Property - CSS.
Pseudo - CSS.
Render - CSS.
Selector - CSS.
Size - CSS.
String - CSS.
Stylesheet - CSS.
Text - CSS.
Text. Direction - CSS.
Text. Overflow - CSS.
Text. Shadow - CSS.
Text. Transform - CSS.
Text. Whitespace - CSS.
TextAlign - CSS.
Time - CSS.
Transform - CSS.
Transition - CSS.
VerticalAlign