module Data.Niagra.Selector.Combinators
(
active,
checked,
disabled,
empty,
enabled,
firstChild,
firstOfType,
focus,
hover,
inRange,
invalid,
lang,
lastChild,
lastOfType,
link,
not,
nthChild,
nthLastOfType,
nthOfType,
onlyOfType,
onlyChild,
optional,
outOfRange,
readOnly,
readWrite,
required,
root,
target,
valid,
visited,
before,
after,
firstLetter,
firstLine,
selection
)
where
import Data.Niagra.Selector
import Data.String
import Data.Text.Lazy (Text)
import Prelude hiding (not)
active :: Selector
active = pseudoClass' "active"
checked :: Selector
checked = pseudoClass' "checked"
disabled :: Selector
disabled = pseudoClass' "disabled"
empty :: Selector
empty = pseudoClass' "empty"
enabled :: Selector
enabled = pseudoClass' "enabled"
firstChild :: Selector
firstChild = pseudoClass' "first-child"
firstOfType :: Selector
firstOfType = pseudoClass' "first-of-type"
focus :: Selector
focus = pseudoClass' "focus"
hover :: Selector
hover = pseudoClass' "hover"
inRange :: Selector
inRange = pseudoClass' "in-range"
invalid :: Selector
invalid = pseudoClass' "invalid"
lang :: Text
-> Selector
lang = pseudoClass "lang" . Just . Raw
lastChild :: Selector
lastChild = pseudoClass' "last-child"
lastOfType :: Selector
lastOfType = pseudoClass' "last-of-type"
link :: Selector
link = pseudoClass' "link"
not :: Selector
-> Selector
not = pseudoClass "not" . Just
nthChild :: Integer
-> Selector
nthChild = pseudoClass "nth-child" . Just . Raw . fromString . show
nthLastChild :: Integer
-> Selector
nthLastChild = pseudoClass "nth-last-child" . Just . Raw . fromString . show
nthLastOfType :: Integer
-> Selector
nthLastOfType = pseudoClass "nth-last-of-type" . Just . Raw . fromString . show
nthOfType :: Integer
-> Selector
nthOfType = pseudoClass "nth-of-type" . Just . Raw . fromString . show
onlyOfType :: Selector
onlyOfType = pseudoClass' "only-of-type"
onlyChild :: Selector
onlyChild = pseudoClass' "only-child"
optional :: Selector
optional = pseudoClass' "optional"
outOfRange :: Selector
outOfRange = pseudoClass' "out-of-range"
readOnly :: Selector
readOnly = pseudoClass' "read-only"
readWrite :: Selector
readWrite = pseudoClass' "read-write"
required :: Selector
required = pseudoClass' "required"
root :: Selector
root = pseudoClass' "root"
target :: Selector
target = pseudoClass' "target"
valid :: Selector
valid = pseudoClass' "valid"
visited :: Selector
visited = pseudoClass' "visited"
after :: Selector
after = pseudoType' "after"
before :: Selector
before = pseudoType' "before"
firstLetter :: Selector
firstLetter = pseudoType' "first-letter"
firstLine :: Selector
firstLine = pseudoType' "first-line"
selection :: Selector
selection = pseudoType' "selection"