Text.Cassius
- type Cassius url = (url -> [(String, String)] -> String) -> Css
- type Css = [Css']
- class ToCss a where
- renderCassius :: (url -> [(String, String)] -> String) -> Cassius url -> Text
- renderCss :: Css -> Text
- cassius :: QuasiQuoter
- cassiusFile :: FilePath -> Q Exp
- cassiusFileDebug :: 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
Datatypes
Type class
Rendering
Parsing
cassiusFile :: FilePath -> Q ExpSource
cassiusFileDebug :: FilePath -> Q ExpSource
ToCss instances
Color
Size
data AbsoluteUnit Source
Absolute size units.
Constructors
| Centimeter | |
| Inch | |
| Millimeter | |
| Pica | |
| Point |
Instances
data AbsoluteSize Source
Not intended for direct use, see mkSize.
Constructors
| AbsoluteSize | |
Fields
| |
absoluteSize :: AbsoluteUnit -> Rational -> AbsoluteSizeSource
Constructs AbsoluteSize. Not intended for direct use, see mkSize.
data PercentageSize Source
Not intended for direct use, see mkSize.
Constructors
| PercentageSize | |
Fields
| |
percentageSize :: Rational -> PercentageSizeSource
Constructs PercentageSize. Not intended for direct use, see mkSize.