Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Css
- type CssUrl url = (url -> [(Text, Text)] -> Text) -> Css
- class ToCss a where
- toCss :: a -> Builder
- 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
- cassiusMixin :: QuasiQuoter
- data Mixin
- 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
Type class
Rendering
renderCssUrl :: (url -> [(Text, Text)] -> Text) -> CssUrl url -> Text Source
Parsing
cassiusFile :: FilePath -> Q Exp Source
cassiusFileDebug :: FilePath -> Q Exp Source
cassiusFileReload :: FilePath -> Q Exp Source
Mixims
cassiusMixin :: QuasiQuoter Source
Create a mixin with Cassius syntax.
Since 2.0.3
ToCss instances
Color
Size
data AbsoluteUnit Source
Absolute size units.
data AbsoluteSize Source
Not intended for direct use, see mkSize
.
AbsoluteSize | |
|
absoluteSize :: AbsoluteUnit -> Rational -> AbsoluteSize Source
Constructs AbsoluteSize
. Not intended for direct use, see mkSize
.
data PercentageSize Source
Not intended for direct use, see mkSize
.
PercentageSize | |
|
percentageSize :: Rational -> PercentageSize Source
Constructs PercentageSize
. Not intended for direct use, see mkSize
.
Internal
cassiusUsedIdentifiers :: String -> [(Deref, VarType)] Source
Determine which identifiers are used by the given template, useful for creating systems like yesod devel.