hasmin-0.3.2.1: "A CSS Minifier"

Copyright(c) 2017 Cristian Adrián Ontivero
LicenseBSD3
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Hasmin.Types.Class

Description

 

Synopsis

Documentation

class ToText a where Source #

Class for types that can be converted to Text. Used for priting the minified results.

Minimal complete definition

toText | toBuilder

Methods

toText :: a -> Text Source #

toBuilder :: a -> Builder Source #

Instances

ToText Int Source # 
ToText Word8 Source # 
ToText Text Source # 
ToText RSKeyword Source # 
ToText RepeatStyle Source # 
ToText Percentage Source # 
ToText Alphavalue Source # 
ToText Number Source # 
ToText Color Source # 
ToText ResolutionUnit Source # 
ToText FrequencyUnit Source # 
ToText DurationUnit Source # 
ToText AngleUnit Source # 
ToText DistanceUnit Source # 
ToText Resolution Source # 
ToText Frequency Source # 
ToText Duration Source # 
ToText Angle Source # 
ToText Distance Source # 
ToText BgSize Source # 
ToText Auto Source # 
ToText Position Source # 
ToText PosKeyword Source # 
ToText FilterFunction Source # 
ToText StepsSecondParam Source # 
ToText TimingFunction Source # 
ToText TransformFunction Source # 
ToText Separator Source # 
ToText Values Source # 
ToText Url Source # 
ToText TextV Source # 
ToText Value Source # 
ToText Declaration Source # 
ToText SupportsCondInParens Source # 
ToText SupportsCondition Source # 
ToText Rule Source # 
ToText KeyframeBlock Source # 
ToText KeyframeSelector Source # 
ToText Expression Source # 
ToText MediaQuery Source # 
(ToText a, ToText b) => ToText (Either a b) Source # 

Methods

toText :: Either a b -> Text Source #

toBuilder :: Either a b -> Builder Source #

class Minifiable a where Source #

Class for types that can be minified

Minimal complete definition

minifyWith

Methods

minifyWith :: a -> Reader Config a Source #

minify :: a -> a Source #

Instances

Minifiable RepeatStyle Source # 
Minifiable Color Source # 
Minifiable Resolution Source # 
Minifiable Frequency Source # 
Minifiable Duration Source # 
Minifiable Angle Source # 
Minifiable Distance Source # 
Minifiable BgSize Source # 
Minifiable Position Source # 
Minifiable FilterFunction Source # 
Minifiable TimingFunction Source # 
Minifiable TransformFunction Source #

There are a series of equivalences to keep in mind: translate(0), translate3d(0, 0, 0), translateX(0), translateY(0), translateZ(0), scale(1), scaleX(1), scaleY(1), scaleZ(1), rotate(0), rotate3d(1,1,1,0), rotateX(0), rotateY(0), rotateZ(0), perspective(infinity), matrix(1,0,0,1,0,0), matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1), skewX(0), skewY(0), and the shortest of them all: skew(0) All of these translate to the 4x4 identity matrix.

Minifiable Values Source # 
Minifiable Url Source # 
Minifiable Value Source # 
Minifiable Declaration Source # 
Minifiable SupportsCondInParens Source # 
Minifiable SupportsCondition Source # 
Minifiable Rule Source # 
Minifiable KeyframeBlock Source # 
Minifiable KeyframeSelector Source # 
Minifiable Expression Source # 
Minifiable MediaQuery Source #