Clay.Mask

clay-0.15.0: CSS preprocessor as embedded Haskell.

Safe Haskell | None
Language | Haskell2010

Clay.Mask

Contents

- Generic mask property.
- The mask-composite.
- The mask-position.
- The mask-size.
- The mask-repeat.
- The mask-origin.
- The mask-clip.
- The mask-attachment.
- The mask-image.

Synopsis

- class Val a => Mask a where
  - mask :: a -> Css
- data MaskComposite
- clear :: MaskComposite
- copy :: MaskComposite
- sourceOver :: MaskComposite
- sourceIn :: MaskComposite
- sourceOut :: MaskComposite
- sourceAtop :: MaskComposite
- destinationOver :: MaskComposite
- destinationIn :: MaskComposite
- destinationOut :: MaskComposite
- destinationAtop :: MaskComposite
- xor :: MaskComposite
- maskComposite :: MaskComposite -> Css
- maskComposites :: [MaskComposite] -> Css
- maskPosition :: BackgroundPosition -> Css
- maskPositions :: [BackgroundPosition] -> Css
- maskSize :: BackgroundSize -> Css
- maskSizes :: [BackgroundSize] -> Css
- maskRepeat :: BackgroundRepeat -> Css
- maskRepeats :: [BackgroundRepeat] -> Css
- maskOrigin :: BackgroundOrigin -> Css
- maskOrigins :: [BackgroundOrigin] -> Css
- maskClip :: BackgroundClip -> Css
- maskClips :: [BackgroundClip] -> Css
- maskAttachment :: BackgroundAttachment -> Css
- maskAttachments :: [BackgroundAttachment] -> Css
- maskImage :: BackgroundImage -> Css
- maskImages :: [BackgroundImage] -> Css

# Generic mask property.

class Val a => Mask a where #

We implement the generic mask property as a type class that accepts multiple value types. This allows us to combine different mask aspects into a shorthand syntax.

Minimal complete definition

Nothing

Methods

mask :: a -> Css #

#### Instances

Instances details

Mask BackgroundAttachment # |
Instance details Defined in Clay.Mask Methods mask :: BackgroundAttachment -> Css #
Mask BackgroundClip # |
Instance details Defined in Clay.Mask Methods mask :: BackgroundClip -> Css #
Mask BackgroundImage # |
Instance details Defined in Clay.Mask Methods mask :: BackgroundImage -> Css #
Mask BackgroundOrigin # |
Instance details Defined in Clay.Mask Methods mask :: BackgroundOrigin -> Css #
Mask BackgroundPosition # |
Instance details Defined in Clay.Mask Methods mask :: BackgroundPosition -> Css #
Mask BackgroundRepeat # |
Instance details Defined in Clay.Mask Methods mask :: BackgroundRepeat -> Css #
Mask BackgroundSize # |
Instance details Defined in Clay.Mask Methods mask :: BackgroundSize -> Css #
Mask MaskComposite # |
Instance details Defined in Clay.Mask Methods mask :: MaskComposite -> Css #
Mask a => Mask [a] # |
Instance details Defined in Clay.Mask Methods mask :: [a] -> Css #
(Mask a, Mask b) => Mask (a, b) # |
Instance details Defined in Clay.Mask Methods mask :: (a, b) -> Css #

# The mask-composite.

data MaskComposite #

#### Instances

Instances details

Inherit MaskComposite # |
Instance details Defined in Clay.Mask Methods inherit :: MaskComposite #
None MaskComposite # |
Instance details Defined in Clay.Mask Methods none :: MaskComposite #
Other MaskComposite # |
Instance details Defined in Clay.Mask Methods other :: Value -> MaskComposite #
Mask MaskComposite # |
Instance details Defined in Clay.Mask Methods mask :: MaskComposite -> Css #
Val MaskComposite # |
Instance details Defined in Clay.Mask Methods value :: MaskComposite -> Value #

clear :: MaskComposite #

copy :: MaskComposite #

sourceOver :: MaskComposite #

sourceIn :: MaskComposite #

sourceOut :: MaskComposite #

sourceAtop :: MaskComposite #

destinationOver :: MaskComposite #

destinationIn :: MaskComposite #

destinationOut :: MaskComposite #

destinationAtop :: MaskComposite #

xor :: MaskComposite #

maskComposite :: MaskComposite -> Css #

maskComposites :: [MaskComposite] -> Css #

# The mask-position.

maskPosition :: BackgroundPosition -> Css #

maskPositions :: [BackgroundPosition] -> Css #

# The mask-size.

maskSize :: BackgroundSize -> Css #

maskSizes :: [BackgroundSize] -> Css #

# The mask-repeat.

maskRepeat :: BackgroundRepeat -> Css #

maskRepeats :: [BackgroundRepeat] -> Css #

# The mask-origin.

maskOrigin :: BackgroundOrigin -> Css #

maskOrigins :: [BackgroundOrigin] -> Css #

# The mask-clip.

maskClip :: BackgroundClip -> Css #

maskClips :: [BackgroundClip] -> Css #

# The mask-attachment.

maskAttachment :: BackgroundAttachment -> Css #

maskAttachments :: [BackgroundAttachment] -> Css #

# The mask-image.

maskImage :: BackgroundImage -> Css #

maskImages :: [BackgroundImage] -> Css #