cascading-0.1.0: DSL for HTML CSS (Cascading Style Sheets)

MaintainerErtugrul Soeylemez <es@ertes.de>
Safe HaskellNone

Data.CSS.Utils

Contents

Description

 

Synopsis

Builder utilities

commas :: [Builder] -> BuilderSource

Render the given list of builders separated by commas.

commasBS :: [ByteString] -> BuilderSource

Render the given list of builders separated by commas.

cssString :: Text -> BuilderSource

Renders the given CSS string in double-quotes, escaped as necessary.

showHexInt :: Integral a => Int -> a -> BuilderSource

showHexInt p n builds the hexadecimal representation of n with at least p digits. Prepends zeroes to fill.

showReal :: Real a => a -> BuilderSource

Lossily convert the given Real number into a decimal representation suitable for CSS.