| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Stitch
Contents
Description
Importing this module should bring enough functions into scope to use the Stitch DSL for most purposes.
Core
Abstract representation of a CSS document. This can be transformed to an actual CSS document with renderCSS.
Constructors
| Selector | |
Fields
| |
Combinators
(?) :: Monad m => Selector -> StitchT m a -> StitchT m a infixr 6 Source #
Nest a selector under the current selector. For example, this:
"h1" ? do
"color" .= "red"
"a" ?
"text-decoration" .= "underline"| results in the following being added to the CSS output:
h1 {
color: red
}
h1 a {
text-decoration: underline
}