stitch-0.3.2.0: lightweight CSS DSL

Safe HaskellNone
LanguageHaskell2010

Stitch.Types

Description

Defines all the types needed for Stitch's internal CSS representation. You shouldn't need to import this module unless you're messing around with the Block representation before outputting CSS.

Synopsis

Documentation

newtype Selector Source

Represents a CSS selector. Can be combined with other Selectors using its Monoid instance.

Constructors

Selector 

Fields

unSelector :: [Text]
 

newtype Children Source

Children is a simple specialized wrapper around Map with a custom Monoid instance. Instead of simply unioning the two Maps, the Children instance mappends the two values together in case of a key clash.

data Property Source

Type for a CSS property or comment. The two are combined because we want to keep the ordering of comments and properties in the output CSS.

Constructors

Property Text Text 
Comment Text 

newtype Import Source

Basic newtype for handling css @import statements.

Constructors

Import Text 

data Block Source

Top-level representation of a CSS document.

Constructors

Block [Import] [Property] Children 

data InnerBlock Source

Representation of a CSS inner block. Similar to a top-level Block, but doesn't allow Imports.

Constructors

InnerBlock [Property] Children