module Data.Niagra.Properties.Box
(
bottom,
top,
right,
left,
width,
height,
margin,
marginTop,
marginBottom,
marginLeft,
marginRight,
padding,
paddingTop,
paddingBottom,
paddingLeft,
paddingRight,
maxHeight,
maxWidth,
minHeight,
minWidth,
zIndex,
verticalAlign,
display,
float,
position
)
where
import Data.Niagra.Monad
import Data.Niagra.DSL
import Data.Niagra.Value
import Data.Niagra.Builder
import Data.Niagra.Builder.Numbers
bottom :: (Monad m) => Builder -> NiagraT m ()
bottom = declaration "bottom"
top :: (Monad m) => Builder -> NiagraT m ()
top = declaration "top"
right :: (Monad m) => Builder -> NiagraT m ()
right = declaration "right"
left :: (Monad m) => Builder -> NiagraT m ()
left = declaration "left"
width :: (Monad m) => Builder -> NiagraT m ()
width = declaration "width"
height :: (Monad m) => Builder -> NiagraT m ()
height = declaration "height"
margin :: (Monad m, Value v) => v -> NiagraT m ()
margin = declaration "margin" . build
marginTop :: (Monad m) => Builder -> NiagraT m ()
marginTop = declaration "margin-top"
marginBottom :: (Monad m) => Builder -> NiagraT m ()
marginBottom = declaration "margin-bottom"
marginLeft :: (Monad m) => Builder -> NiagraT m ()
marginLeft = declaration "margin-left"
marginRight :: (Monad m) => Builder -> NiagraT m ()
marginRight = declaration "margin-right"
padding :: (Monad m, Value v) => v -> NiagraT m ()
padding = declaration "padding" . build
paddingTop :: (Monad m) => Builder -> NiagraT m ()
paddingTop = declaration "padding-top"
paddingBottom :: (Monad m) => Builder -> NiagraT m ()
paddingBottom = declaration "padding-bottom"
paddingLeft :: (Monad m) => Builder -> NiagraT m ()
paddingLeft = declaration "padding-left"
paddingRight :: (Monad m) => Builder -> NiagraT m ()
paddingRight = declaration "padding-right"
maxHeight :: (Monad m) => Builder -> NiagraT m ()
maxHeight = declaration "max-height"
maxWidth :: (Monad m) => Builder -> NiagraT m ()
maxWidth = declaration "max-width"
minHeight :: (Monad m) => Builder -> NiagraT m ()
minHeight = declaration "min-height"
minWidth :: (Monad m) => Builder -> NiagraT m ()
minWidth = declaration "min-width"
zIndex :: (Monad m) => Integer -> NiagraT m ()
zIndex = declaration "z-index" . decimal
verticalAlign :: (Monad m) => Builder -> NiagraT m ()
verticalAlign = declaration "vertical-align"
display :: (Monad m) => Builder -> NiagraT m ()
display = declaration "display"
float :: (Monad m) => Builder -> NiagraT m ()
float = declaration "float"
position :: (Monad m) => Builder -> NiagraT m ()
position = declaration "position"