Safe Haskell | None |
---|
Text.Cassius
- data Css
- type CssUrl url = (url -> [(Text, Text)] -> Text) -> Css
- class ToCss a where
- renderCss :: Css -> Text
- renderCssUrl :: (url -> [(Text, Text)] -> Text) -> CssUrl url -> Text
- cassius :: QuasiQuoter
- cassiusFile :: FilePath -> Q Exp
- cassiusFileDebug :: FilePath -> Q Exp
- cassiusFileReload :: FilePath -> Q Exp
- data Color = Color Word8 Word8 Word8
- colorRed :: Color
- colorBlack :: Color
- mkSize :: String -> ExpQ
- data AbsoluteUnit
- = Centimeter
- | Inch
- | Millimeter
- | Pica
- | Point
- data AbsoluteSize = AbsoluteSize {}
- absoluteSize :: AbsoluteUnit -> Rational -> AbsoluteSize
- data EmSize = EmSize Rational
- data ExSize = ExSize Rational
- data PercentageSize = PercentageSize {}
- percentageSize :: Rational -> PercentageSize
- data PixelSize = PixelSize Rational
- cassiusUsedIdentifiers :: String -> [(Deref, VarType)]
Datatypes
data Css
Type class
class ToCss a where
Rendering
Parsing
cassiusFile :: FilePath -> Q Exp
cassiusFileDebug :: FilePath -> Q Exp
cassiusFileReload :: FilePath -> Q Exp
ToCss instances
Color
colorBlack :: Color
Size
data AbsoluteSize
Not intended for direct use, see mkSize
.
Constructors
AbsoluteSize | |
Fields
|
absoluteSize :: AbsoluteUnit -> Rational -> AbsoluteSize
Constructs AbsoluteSize
. Not intended for direct use, see mkSize
.
data EmSize
data ExSize
data PercentageSize
Not intended for direct use, see mkSize
.
Constructors
PercentageSize | |
Fields
|
percentageSize :: Rational -> PercentageSize
Constructs PercentageSize
. Not intended for direct use, see mkSize
.
data PixelSize
Internal
cassiusUsedIdentifiers :: String -> [(Deref, VarType)]
Determine which identifiers are used by the given template, useful for creating systems like yesod devel.