hasmin-1.0: CSS Minifier

Copyright(c) 2017 Cristian Adrián Ontivero
LicenseBSD3
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Hasmin.Types.Stylesheet

Description

 

Synopsis

Documentation

data MediaQuery Source #

Data type for media queries. For the syntax, see media query syntax.

Constructors

MediaQuery1 Text Text [Expression]

First possibility in the grammar

MediaQuery2 [Expression]

Second possibility in the grammar

data Rule Source #

A CSS rule, either a normal style rule, or one of the many possible at-rules.

collapse :: [Declaration] -> [Declaration] Source #

Given a list of declarations, gathers the longhands, and if every longhand of a given shorthand is present, "collapses" them into the shorthand (i.e. replaces all the declarations for an equivalent shorthand).