Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Val a => Background a where
- background :: a -> Css
- backgroundColor :: Color -> Css
- data BackgroundPosition
- backgroundPosition :: BackgroundPosition -> Css
- backgroundPositions :: [BackgroundPosition] -> Css
- placed :: Side -> Side -> BackgroundPosition
- positioned :: Size a -> Size a -> BackgroundPosition
- data BackgroundSize
- backgroundSize :: BackgroundSize -> Css
- backgroundSizes :: [BackgroundSize] -> Css
- contain :: BackgroundSize
- cover :: BackgroundSize
- by :: Size a -> Size b -> BackgroundSize
- data BackgroundRepeat
- backgroundRepeat :: BackgroundRepeat -> Css
- backgroundRepeats :: [BackgroundRepeat] -> Css
- repeat :: BackgroundRepeat
- space :: BackgroundRepeat
- round :: BackgroundRepeat
- noRepeat :: BackgroundRepeat
- xyRepeat :: BackgroundRepeat -> BackgroundRepeat -> BackgroundRepeat
- repeatX :: BackgroundRepeat
- repeatY :: BackgroundRepeat
- data BackgroundOrigin
- backgroundOrigin :: BackgroundOrigin -> Css
- backgroundOrigins :: [BackgroundOrigin] -> Css
- origin :: BoxType -> BackgroundOrigin
- data BackgroundClip
- backgroundClip :: BackgroundClip -> Css
- backgroundClips :: [BackgroundClip] -> Css
- boxClip :: BoxType -> BackgroundClip
- data BackgroundAttachment
- backgroundAttachment :: BackgroundAttachment -> Css
- backgroundAttachments :: [BackgroundAttachment] -> Css
- attachFixed :: BackgroundAttachment
- attachScroll :: BackgroundAttachment
- data BackgroundImage
- backgroundImage :: BackgroundImage -> Css
- backgroundImages :: [BackgroundImage] -> Css
- url :: Text -> BackgroundImage
- data Side
- sideTop :: Side
- sideLeft :: Side
- sideRight :: Side
- sideBottom :: Side
- sideCenter :: Side
- sideMiddle :: Side
- data Direction
- straight :: Side -> Direction
- angular :: Angle a -> Direction
- data Location
- class Val a => Loc a
- class Val a
- location :: Loc a => a -> Location
Generic background property.
class Val a => Background a where Source #
We implement the generic background property as a type class that accepts multiple value types. This allows us to combine different background aspects into a shorthand syntax.
Nothing
background :: a -> Css Source #
Instances
The background-color.
backgroundColor :: Color -> Css Source #
The background-position.
data BackgroundPosition Source #
Instances
Val BackgroundPosition Source # | |
Defined in Clay.Background value :: BackgroundPosition -> Value Source # | |
Other BackgroundPosition Source # | |
Defined in Clay.Background other :: Value -> BackgroundPosition Source # | |
Inherit BackgroundPosition Source # | |
Defined in Clay.Background | |
Background BackgroundPosition Source # | |
Defined in Clay.Background background :: BackgroundPosition -> Css Source # | |
Mask BackgroundPosition Source # | |
backgroundPositions :: [BackgroundPosition] -> Css Source #
positioned :: Size a -> Size a -> BackgroundPosition Source #
The background-size.
data BackgroundSize Source #
Instances
Val BackgroundSize Source # | |
Defined in Clay.Background value :: BackgroundSize -> Value Source # | |
Other BackgroundSize Source # | |
Defined in Clay.Background other :: Value -> BackgroundSize Source # | |
Inherit BackgroundSize Source # | |
Defined in Clay.Background | |
Auto BackgroundSize Source # | |
Defined in Clay.Background | |
Background BackgroundSize Source # | |
Defined in Clay.Background background :: BackgroundSize -> Css Source # | |
Mask BackgroundSize Source # | |
backgroundSize :: BackgroundSize -> Css Source #
backgroundSizes :: [BackgroundSize] -> Css Source #
The background-repeat.
data BackgroundRepeat Source #
Instances
Val BackgroundRepeat Source # | |
Defined in Clay.Background value :: BackgroundRepeat -> Value Source # | |
Other BackgroundRepeat Source # | |
Defined in Clay.Background other :: Value -> BackgroundRepeat Source # | |
None BackgroundRepeat Source # | |
Defined in Clay.Background | |
Inherit BackgroundRepeat Source # | |
Defined in Clay.Background | |
Background BackgroundRepeat Source # | |
Defined in Clay.Background background :: BackgroundRepeat -> Css Source # | |
Mask BackgroundRepeat Source # | |
backgroundRepeats :: [BackgroundRepeat] -> Css Source #
The background-origin.
data BackgroundOrigin Source #
Instances
Val BackgroundOrigin Source # | |
Defined in Clay.Background value :: BackgroundOrigin -> Value Source # | |
Other BackgroundOrigin Source # | |
Defined in Clay.Background other :: Value -> BackgroundOrigin Source # | |
Inherit BackgroundOrigin Source # | |
Defined in Clay.Background | |
Background BackgroundOrigin Source # | |
Defined in Clay.Background background :: BackgroundOrigin -> Css Source # | |
Mask BackgroundOrigin Source # | |
backgroundOrigins :: [BackgroundOrigin] -> Css Source #
origin :: BoxType -> BackgroundOrigin Source #
The background-clip.
data BackgroundClip Source #
Instances
Val BackgroundClip Source # | |
Defined in Clay.Background value :: BackgroundClip -> Value Source # | |
Other BackgroundClip Source # | |
Defined in Clay.Background other :: Value -> BackgroundClip Source # | |
Inherit BackgroundClip Source # | |
Defined in Clay.Background | |
Background BackgroundClip Source # | |
Defined in Clay.Background background :: BackgroundClip -> Css Source # | |
Mask BackgroundClip Source # | |
backgroundClip :: BackgroundClip -> Css Source #
backgroundClips :: [BackgroundClip] -> Css Source #
boxClip :: BoxType -> BackgroundClip Source #
The background-attachment.
data BackgroundAttachment Source #
Instances
Val BackgroundAttachment Source # | |
Defined in Clay.Background value :: BackgroundAttachment -> Value Source # | |
Other BackgroundAttachment Source # | |
Defined in Clay.Background other :: Value -> BackgroundAttachment Source # | |
Inherit BackgroundAttachment Source # | |
Defined in Clay.Background | |
Background BackgroundAttachment Source # | |
Defined in Clay.Background background :: BackgroundAttachment -> Css Source # | |
Mask BackgroundAttachment Source # | |
The background-image.
data BackgroundImage Source #
Instances
Val BackgroundImage Source # | |
Defined in Clay.Background value :: BackgroundImage -> Value Source # | |
Other BackgroundImage Source # | |
Defined in Clay.Background other :: Value -> BackgroundImage Source # | |
None BackgroundImage Source # | |
Defined in Clay.Background | |
Inherit BackgroundImage Source # | |
Defined in Clay.Background | |
Background BackgroundImage Source # | |
Defined in Clay.Background background :: BackgroundImage -> Css Source # | |
Mask BackgroundImage Source # | |
backgroundImage :: BackgroundImage -> Css Source #
backgroundImages :: [BackgroundImage] -> Css Source #
url :: Text -> BackgroundImage Source #
Specifying sides.
We have to prefix these values to avoid conflict with existing property names.
We have to prefix these values to avoid conflict with existing property names.
We have to prefix these values to avoid conflict with existing property names.
sideBottom :: Side Source #
We have to prefix these values to avoid conflict with existing property names.
sideCenter :: Side Source #
We have to prefix these values to avoid conflict with existing property names.
sideMiddle :: Side Source #
We have to prefix these values to avoid conflict with existing property names.