language-css-0.0.1: CSS 2.1 syntax

Language.Css.Syntax

Contents

Description

Css2.1 syntax

haskell translation of css 2.1 grammar.

See http://www.w3.org/TR/CSS2/grammar.html and http://www.w3.org/TR/CSS2/syndata.html

Synopsis

Stylesheet

AtRule

data AtCharSet Source

@charset

Constructors

AtCharSet String 

data AtImport Source

@import

Constructors

AtImport ImportHead [Ident] 

Instances

data AtMedia Source

@media

Constructors

AtMedia [Ident] [RuleSet] 

Instances

data AtPage Source

@page

Constructors

AtPage (Maybe Ident) (Maybe PseudoPage) [Decl] 

Instances

data AtFontFace Source

@font-face

Constructors

AtFontFace [Decl] 

RuleSet

data RuleSet Source

Constructors

RuleSet [Sel] [Decl] 

Instances

data Decl Source

Declaration

Constructors

Decl (Maybe Prio) Prop Expr 

Instances

type Prop = IdentSource

Property

data Prio Source

sets !important declaration

Constructors

Important 

Instances

data Expr Source

Constructors

EVal Value

single value

SlashSep Expr Expr

slash separated expressions

CommaSep Expr Expr

comma separated expressions

SpaceSep Expr Expr

space separated expressions

Selectors

data Sel Source

Selector

Constructors

SSel SimpleSel

single selector

DescendSel Sel Sel

' '

ChildSel Sel Sel

'>'

AdjSel Sel Sel

'+'

Instances

data SimpleSel Source

Simple selector

Constructors

UnivSel [SubSel]

Universal selector

TypeSel Element [SubSel]

Type selector

data SubSel Source

Constructors

AttrSel Attr

attribute selector

ClassSel Class

'.'

IdSel Id

'#'

PseudoSel PseudoVal

pseudo classes/elements

Instances

Values

Primitives

data Ident Source

Constructors

Ident String 

data Func Source

Constructors

Func Ident Expr 

Instances

data Deg Source

<angle>

Constructors

Deg Double 

Instances

data Rad Source

<angle>

Constructors

Rad Double 

Instances

data Grad Source

<angle>

Constructors

Grad Double 

Instances

data Color Source

<color>

Constructors

Cword String 
Crgb Int Int Int 

Instances

data Hz Source

<frequency>

Constructors

Hz Double 

Instances

data KHz Source

<frequency>

Constructors

KHz Double 

Instances

data Em Source

<length>

Constructors

Em Double 

Instances

data Ex Source

<length>

Constructors

Ex Double 

Instances

data Px Source

<length>

Constructors

Px Int 

Instances

data In Source

<length>

Constructors

In Double 

Instances

data Cm Source

<length>

Constructors

Cm Double 

Instances

data Mm Source

<length>

Constructors

Mm Double 

Instances

data Pc Source

<length>

Constructors

Pc Double 

Instances

data Pt Source

<length>

Constructors

Pt Int 

Instances

data Percentage Source

<percentage>

Constructors

Percentage Double 

data Ms Source

<time>

Constructors

Ms Double 

Instances

data S Source

<time>

Constructors

S Double 

Instances

data Uri Source

<uri>

Constructors

Uri String 

Instances