Copyright | (c) Nathaniel Symer, 2015 |
---|---|
License | MIT |
Maintainer | nate@symer.io |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Provides a basic interface for defining CSS and rendering those blocks into strings.
Niagra produces "minified" CSS.
- css :: Monad m => NiagraT m () -> m Text
- css' :: NiagraT Identity () -> Text
- cssBuilder :: Monad m => NiagraT m () -> m Builder
- cssBuilder' :: NiagraT Identity () -> Builder
- block :: Monad m => Selector -> NiagraT (NiagraT m) () -> NiagraT m ()
- (?) :: Monad m => Selector -> NiagraT (NiagraT m) () -> NiagraT m ()
- declaration :: Monad m => Text -> Text -> NiagraT (NiagraT m) ()
- (.=) :: Monad m => Text -> Text -> NiagraT (NiagraT m) ()
- module Data.Niagra.At
- module Data.Niagra.Monad
- module Data.Niagra.Block
- module Data.Niagra.Selector
- module Data.Niagra.Selector.Tags
DSL
Start a CSS declaration in monad m
.
Start a CSS declaration in monad m
that returns a Builder
.
cssBuilder' :: NiagraT Identity () -> Builder Source
Non-monadic version of cssBuilder
.
General function for defining a CSS block.
(?) :: Monad m => Selector -> NiagraT (NiagraT m) () -> NiagraT m () infix 2 Source
Operator equivalent of block
.
Make a declaration.
(.=) :: Monad m => Text -> Text -> NiagraT (NiagraT m) () infix 2 Source
Operator equivalent of declaration
.
Modules
module Data.Niagra.At
module Data.Niagra.Monad
module Data.Niagra.Block
module Data.Niagra.Selector
module Data.Niagra.Selector.Tags