clay-0.13.1: CSS preprocessor as embedded Haskell.

Safe HaskellNone
LanguageHaskell98

Clay

Contents

Synopsis

Rendering stylesheets to CSS.

render :: Css -> Text #

Render a stylesheet with the default configuration. The pretty printer is used by default.

renderWith :: Config -> [App] -> Css -> Text #

Render a stylesheet with a custom configuration and an optional outer scope.

putCss :: Css -> IO () #

Render to CSS using the default configuration (pretty) and directly print to the standard output.

pretty :: Config #

Configuration to print to a pretty human readable CSS output.

compact :: Config #

Configuration to print to a compacted unreadable CSS output.

renderSelector :: Selector -> Text #

Render a single CSS Selector.

The Css monad for collecting style rules.

type Css = StyleM () #

The Css context is used to collect style rules which are mappings from selectors to style properties. The Css type is a computation in the StyleM monad that just collects and doesn't return anything.

(?) :: Selector -> Css -> Css infixr 5 #

Assign a stylesheet to a selector. When the selector is nested inside an outer scope it will be composed with deep.

(<?) :: Selector -> Css -> Css infixr 5 #

Assign a stylesheet to a selector. When the selector is nested inside an outer scope it will be composed with |>.

(&) :: Refinement -> Css -> Css infixr 5 #

Assign a stylesheet to a filter selector. When the selector is nested inside an outer scope it will be composed with the with selector.

root :: Selector -> Css -> Css #

Root is used to add style rules to the top scope.

pop :: Int -> Css -> Css #

Pop is used to add style rules to selectors defined in an outer scope. The counter specifies how far up the scope stack we want to add the rules.

(-:) :: Key Text -> Text -> Css infix 4 #

The colon operator can be used to add style rules to the current context for which there is no embedded version available. Both the key and the value are plain text values and rendered as is to the output CSS.

Comments

It is occasionally useful to output comments in the generated css. commenting appends comments (surrounded by ' /* ' and ' */') to the values of the supplied Css as

key: value /* comment */;

Placing the comments before the semicolon ensures they are obviously grouped with the preceding value when rendered compactly.

Note that every generated line in the generated content will feature the comment.

An empty comment generates '* *'.

commenting :: CommentText -> Css -> Css infixl 3 #

Annotate the supplied Css with the supplied comment. Comments work with OverloadedStrings. This will annotate every non-nested value.

The selector language.

data Refinement #

Instances
Show Refinement # 
Instance details

Defined in Clay.Selector

IsString Refinement # 
Instance details

Defined in Clay.Selector

Semigroup Refinement # 
Instance details

Defined in Clay.Selector

Monoid Refinement # 
Instance details

Defined in Clay.Selector

Elements selectors.

star :: Selector #

The star selector applies to all elements. Maps to * in CSS.

element :: Text -> Selector #

Select elements by name. The preferred syntax is to enable OverloadedStrings and actually just use "element-name" or use one of the predefined elements from Clay.Elements.

(**) :: Selector -> Selector -> Selector #

The deep selector composer. Maps to sel1 sel2 in CSS.

(|>) :: Selector -> Selector -> Selector #

The child selector composer. Maps to sel1 > sel2 in CSS.

(#) :: Selector -> Refinement -> Selector #

The filter selector composer, adds a filter to a selector. Maps to something like sel#filter or sel.filter in CSS, depending on the filter.

(|+) :: Selector -> Selector -> Selector #

The adjacent selector composer. Maps to sel1 + sel2 in CSS.

Refining selectors.

byId :: Text -> Refinement #

Filter elements by id. The preferred syntax is to enable OverloadedStrings and use "#id-name".

byClass :: Text -> Refinement #

Filter elements by class. The preferred syntax is to enable OverloadedStrings and use ".class-name".

pseudo :: Text -> Refinement #

Filter elements by pseudo selector or pseudo class. The preferred syntax is to enable OverloadedStrings and use ":pseudo-selector" or use one of the predefined ones from Clay.Pseudo.

func :: Text -> [Text] -> Refinement #

Filter elements by pseudo selector functions. The preferred way is to use one of the predefined functions from Clay.Pseudo.

Attribute based refining.

attr :: Text -> Refinement #

Filter elements based on the presence of a certain attribute. The preferred syntax is to enable OverloadedStrings and use "@attr" or use one of the predefined ones from Clay.Attributes.

(@=) :: Text -> Text -> Refinement #

Filter elements based on the presence of a certain attribute with the specified value.

(^=) :: Text -> Text -> Refinement #

Filter elements based on the presence of a certain attribute that begins with the selected value.

($=) :: Text -> Text -> Refinement #

Filter elements based on the presence of a certain attribute that ends with the specified value.

(*=) :: Text -> Text -> Refinement #

Filter elements based on the presence of a certain attribute that contains the specified value as a substring.

(~=) :: Text -> Text -> Refinement #

Filter elements based on the presence of a certain attribute that have the specified value contained in a space separated list.

(|=) :: Text -> Text -> Refinement #

Filter elements based on the presence of a certain attribute that have the specified value contained in a hyphen separated list.

Apply media queries.

Because a large part of the names export by Clay.Media clash with names export by other modules we don't re-export it here and recommend you to import the module qualified.

query :: MediaType -> [Feature] -> Css -> Css #

Apply a set of style rules when the media type and feature queries apply.

queryNot :: MediaType -> [Feature] -> Css -> Css #

Apply a set of style rules when the media type and feature queries do not apply.

queryOnly :: MediaType -> [Feature] -> Css -> Css #

Apply a set of style rules only when the media type and feature queries apply.

Apply key-frame animation.

keyframes :: Text -> [(Double, Css)] -> Css #

Define font-faces.

fontFace :: Css -> Css #

Define a new font-face.

!important

important :: Css -> Css #

Indicate the supplied css should override css declarations that would otherwise take precedence.

Use sparingly.

Import other CSS files

importUrl :: Text -> Css #

Import a CSS file from a URL

Pseudo elements and classes.

HTML5 attribute and element names.

abbr :: IsString a => a #

Special cases, these items occur both as an HTML tag and an HTML attribute. We keep them polymorph.

cite :: IsString a => a #

Special cases, these items occur both as an HTML tag and an HTML attribute. We keep them polymorph.

command :: IsString a => a #

Special cases, these items occur both as an HTML tag and an HTML attribute. We keep them polymorph.

data_ :: IsString a => a #

Special cases, these items occur both as an HTML tag and an HTML attribute. We keep them polymorph.

form :: IsString a => a #

Special cases, these items occur both as an HTML tag and an HTML attribute. We keep them polymorph.

label :: IsString a => a #

Special cases, these items occur both as an HTML tag and an HTML attribute. We keep them polymorph.

span :: IsString a => a #

Special cases, these items occur both as an HTML tag and an HTML attribute. We keep them polymorph.

style :: IsString a => a #

Special cases, these items occur both as an HTML tag and an HTML attribute. We keep them polymorph.

title :: IsString a => a #

Special cases, these items occur both as an HTML tag and an HTML attribute. We keep them polymorph.

Commonly used value types.

module Clay.Size

module Clay.Color

module Clay.Time

Values shared between multiple properties.

Embedded style properties.

module Clay.Box

class Val a => Cursor a where #

Methods

cursor :: a -> Css #

class Val a => VerticalAlign a where #

Methods

verticalAlign :: a -> Css #

Instances
VerticalAlign (Size a) # 
Instance details

Defined in Clay.Display

Methods

verticalAlign :: Size a -> Css #

data PointerEvents #

Instances
Val PointerEvents # 
Instance details

Defined in Clay.Display

Methods

value :: PointerEvents -> Value #

Other PointerEvents # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> PointerEvents #

Visible PointerEvents # 
Instance details

Defined in Clay.Display

None PointerEvents # 
Instance details

Defined in Clay.Display

Methods

none :: PointerEvents #

Inherit PointerEvents # 
Instance details

Defined in Clay.Display

Auto PointerEvents # 
Instance details

Defined in Clay.Display

Methods

auto :: PointerEvents #

data Clip #

Instances
Val Clip # 
Instance details

Defined in Clay.Display

Methods

value :: Clip -> Value #

Other Clip # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Clip #

Inherit Clip # 
Instance details

Defined in Clay.Display

Methods

inherit :: Clip #

Auto Clip # 
Instance details

Defined in Clay.Display

Methods

auto :: Clip #

data Visibility #

Instances
Val Visibility # 
Instance details

Defined in Clay.Display

Methods

value :: Visibility -> Value #

Other Visibility # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Visibility #

Hidden Visibility # 
Instance details

Defined in Clay.Display

Methods

hidden :: Visibility #

Visible Visibility # 
Instance details

Defined in Clay.Display

Methods

visible :: Visibility #

Inherit Visibility # 
Instance details

Defined in Clay.Display

Methods

inherit :: Visibility #

Auto Visibility # 
Instance details

Defined in Clay.Display

Methods

auto :: Visibility #

data Overflow #

Instances
Val Overflow # 
Instance details

Defined in Clay.Display

Methods

value :: Overflow -> Value #

Other Overflow # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Overflow #

Hidden Overflow # 
Instance details

Defined in Clay.Display

Methods

hidden :: Overflow #

Visible Overflow # 
Instance details

Defined in Clay.Display

Methods

visible :: Overflow #

Inherit Overflow # 
Instance details

Defined in Clay.Display

Methods

inherit :: Overflow #

Auto Overflow # 
Instance details

Defined in Clay.Display

Methods

auto :: Overflow #

data Display #

Instances
Val Display # 
Instance details

Defined in Clay.Display

Methods

value :: Display -> Value #

Other Display # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Display #

None Display # 
Instance details

Defined in Clay.Display

Methods

none :: Display #

Inherit Display # 
Instance details

Defined in Clay.Display

Methods

inherit :: Display #

data Position #

Instances
Val Position # 
Instance details

Defined in Clay.Display

Methods

value :: Position -> Value #

Other Position # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Position #

Inherit Position # 
Instance details

Defined in Clay.Display

Methods

inherit :: Position #

data Clear #

Instances
Val Clear # 
Instance details

Defined in Clay.Display

Methods

value :: Clear -> Value #

Other Clear # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Clear #

None Clear # 
Instance details

Defined in Clay.Display

Methods

none :: Clear #

Inherit Clear # 
Instance details

Defined in Clay.Display

Methods

inherit :: Clear #

data FloatStyle #

Instances
Val FloatStyle # 
Instance details

Defined in Clay.Display

Methods

value :: FloatStyle -> Value #

None FloatStyle # 
Instance details

Defined in Clay.Display

Methods

none :: FloatStyle #

Inherit FloatStyle # 
Instance details

Defined in Clay.Display

Methods

inherit :: FloatStyle #

clip :: Clip -> Css #

rect :: Size a -> Size a -> Size a -> Size a -> Clip #

middle :: VerticalAlignValue #

vAlignSub :: VerticalAlignValue #

vAlignBaseline :: VerticalAlignValue #

vAlignSuper :: VerticalAlignValue #

textTop :: VerticalAlignValue #

textBottom :: VerticalAlignValue #

vAlignTop :: VerticalAlignValue #

vAlignBottom :: VerticalAlignValue #

crosshair :: CursorValue Value #

cursorDefault :: CursorValue Value #

pointer :: CursorValue Value #

move :: CursorValue Value #

eResize :: CursorValue Value #

neResize :: CursorValue Value #

nwResize :: CursorValue Value #

nResize :: CursorValue Value #

seResize :: CursorValue Value #

swResize :: CursorValue Value #

sResize :: CursorValue Value #

wResize :: CursorValue Value #

cursorText :: CursorValue Value #

wait :: CursorValue Value #

cursorProgress :: CursorValue Value #

help :: CursorValue Value #

cursorUrl :: Text -> CursorValue Value #

newtype JustifyContentValue #

Instances
Val JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

Other JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

Inherit JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

Center JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

SpaceBetween JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

SpaceAround JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

FlexStart JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

FlexEnd JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

newtype FlexWrap #

Constructors

FlexWrap Value 
Instances
Val FlexWrap # 
Instance details

Defined in Clay.Flexbox

Methods

value :: FlexWrap -> Value #

Other FlexWrap # 
Instance details

Defined in Clay.Flexbox

Methods

other :: Value -> FlexWrap #

newtype FlexDirection #

Constructors

FlexDirection Value 
Instances
Val FlexDirection # 
Instance details

Defined in Clay.Flexbox

Methods

value :: FlexDirection -> Value #

Other FlexDirection # 
Instance details

Defined in Clay.Flexbox

Methods

other :: Value -> FlexDirection #

newtype AlignSelfValue #

Constructors

AlignSelfValue Value 
Instances
Val AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Other AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Inherit AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Center AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Baseline AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Auto AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Stretch AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

FlexStart AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

FlexEnd AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

newtype AlignItemsValue #

Constructors

AlignItemValue Value 
Instances
Val AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

Other AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

Inherit AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

Center AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

Baseline AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

Stretch AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

FlexStart AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

FlexEnd AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

newtype AlignContentValue #

Constructors

AlignContentValue Value 
Instances
Val AlignContentValue # 
Instance details

Defined in Clay.Flexbox

Other AlignContentValue # 
Instance details

Defined in Clay.Flexbox

Inherit AlignContentValue # 
Instance details

Defined in Clay.Flexbox

Center AlignContentValue # 
Instance details

Defined in Clay.Flexbox

Stretch AlignContentValue # 
Instance details

Defined in Clay.Flexbox

SpaceBetween AlignContentValue # 
Instance details

Defined in Clay.Flexbox

SpaceAround AlignContentValue # 
Instance details

Defined in Clay.Flexbox

FlexStart AlignContentValue # 
Instance details

Defined in Clay.Flexbox

FlexEnd AlignContentValue # 
Instance details

Defined in Clay.Flexbox

class Stretch a where #

Minimal complete definition

stretch

Methods

stretch :: a #

Instances
Stretch Value # 
Instance details

Defined in Clay.Flexbox

Methods

stretch :: Value #

Stretch AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Stretch AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

Stretch AlignContentValue # 
Instance details

Defined in Clay.Flexbox

class SpaceBetween a where #

Minimal complete definition

spaceBetween

Methods

spaceBetween :: a #

Instances
SpaceBetween Value # 
Instance details

Defined in Clay.Flexbox

Methods

spaceBetween :: Value #

SpaceBetween JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

SpaceBetween AlignContentValue # 
Instance details

Defined in Clay.Flexbox

class SpaceAround a where #

Minimal complete definition

spaceAround

Methods

spaceAround :: a #

Instances
SpaceAround Value # 
Instance details

Defined in Clay.Flexbox

Methods

spaceAround :: Value #

SpaceAround JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

SpaceAround AlignContentValue # 
Instance details

Defined in Clay.Flexbox

class FlexStart a where #

Minimal complete definition

flexStart

Methods

flexStart :: a #

Instances
FlexStart Value # 
Instance details

Defined in Clay.Flexbox

Methods

flexStart :: Value #

FlexStart JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

FlexStart AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

FlexStart AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

FlexStart AlignContentValue # 
Instance details

Defined in Clay.Flexbox

class FlexEnd a where #

Minimal complete definition

flexEnd

Methods

flexEnd :: a #

Instances
FlexEnd Value # 
Instance details

Defined in Clay.Flexbox

Methods

flexEnd :: Value #

FlexEnd JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

FlexEnd AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

FlexEnd AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

FlexEnd AlignContentValue # 
Instance details

Defined in Clay.Flexbox

order :: Int -> Css #

data NamedFont #

Instances
Val NamedFont # 
Instance details

Defined in Clay.Font

Methods

value :: NamedFont -> Value #

Other NamedFont # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> NamedFont #

data FontWeight #

Instances
Val FontWeight # 
Instance details

Defined in Clay.Font

Methods

value :: FontWeight -> Value #

Other FontWeight # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontWeight #

Normal FontWeight # 
Instance details

Defined in Clay.Font

Methods

normal :: FontWeight #

Inherit FontWeight # 
Instance details

Defined in Clay.Font

Methods

inherit :: FontWeight #

data FontVariant #

Instances
Val FontVariant # 
Instance details

Defined in Clay.Font

Methods

value :: FontVariant -> Value #

Other FontVariant # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontVariant #

Normal FontVariant # 
Instance details

Defined in Clay.Font

Methods

normal :: FontVariant #

Inherit FontVariant # 
Instance details

Defined in Clay.Font

data FontStyle #

Instances
Val FontStyle # 
Instance details

Defined in Clay.Font

Methods

value :: FontStyle -> Value #

Other FontStyle # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontStyle #

Normal FontStyle # 
Instance details

Defined in Clay.Font

Methods

normal :: FontStyle #

Inherit FontStyle # 
Instance details

Defined in Clay.Font

Methods

inherit :: FontStyle #

data FontSize #

Instances
Val FontSize # 
Instance details

Defined in Clay.Font

Methods

value :: FontSize -> Value #

Other FontSize # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontSize #

Inherit FontSize # 
Instance details

Defined in Clay.Font

Methods

inherit :: FontSize #

Auto FontSize # 
Instance details

Defined in Clay.Font

Methods

auto :: FontSize #

data Required a #

Constructors

Required (Size a) (Maybe (Size a)) [Text] [GenericFontFamily] 
Instances
Val (Required a) # 
Instance details

Defined in Clay.Font

Methods

value :: Required a -> Value #

Font (Required a) # 
Instance details

Defined in Clay.Font

Methods

font :: Required a -> Css #

Font (Optional, Required a) # 
Instance details

Defined in Clay.Font

Methods

font :: (Optional, Required a) -> Css #

data Optional #

Instances
Val Optional # 
Instance details

Defined in Clay.Font

Methods

value :: Optional -> Value #

Font (Optional, Required a) # 
Instance details

Defined in Clay.Font

Methods

font :: (Optional, Required a) -> Css #

class Val a => Font a where #

We implement the generic font property as a type class that accepts multiple value types. This allows us to combine different font aspects into a shorthand syntax. Fonts require a mandatory part and have a optional a part.

http://www.w3.org/TR/css3-fonts/#font-prop

Methods

font :: a -> Css #

Instances
Font (Required a) # 
Instance details

Defined in Clay.Font

Methods

font :: Required a -> Css #

Font (Optional, Required a) # 
Instance details

Defined in Clay.Font

Methods

font :: (Optional, Required a) -> Css #

fontColor :: Color -> Css #

An alias for color.

sansSerif :: GenericFontFamily #

serif :: GenericFontFamily #

monospace :: GenericFontFamily #

cursive :: GenericFontFamily #

fantasy :: GenericFontFamily #

fontFamily :: [Text] -> [GenericFontFamily] -> Css #

The fontFamily style rules takes to lists of font families: zero or more custom font-families and preferably one or more generic font families.

fontSize :: Size a -> Css #

module Clay.List

data Content #

Instances
Val Content # 
Instance details

Defined in Clay.Text

Methods

value :: Content -> Value #

Initial Content # 
Instance details

Defined in Clay.Text

Methods

initial :: Content #

Normal Content # 
Instance details

Defined in Clay.Text

Methods

normal :: Content #

None Content # 
Instance details

Defined in Clay.Text

Methods

none :: Content #

Inherit Content # 
Instance details

Defined in Clay.Text

Methods

inherit :: Content #

data TextOverflow #

Instances
Val TextOverflow # 
Instance details

Defined in Clay.Text

Methods

value :: TextOverflow -> Value #

Initial TextOverflow # 
Instance details

Defined in Clay.Text

None TextOverflow # 
Instance details

Defined in Clay.Text

Methods

none :: TextOverflow #

Inherit TextOverflow # 
Instance details

Defined in Clay.Text

data OverflowWrap #

Instances
Val OverflowWrap # 
Instance details

Defined in Clay.Text

Methods

value :: OverflowWrap -> Value #

Unset OverflowWrap # 
Instance details

Defined in Clay.Text

Methods

unset :: OverflowWrap #

Initial OverflowWrap # 
Instance details

Defined in Clay.Text

Normal OverflowWrap # 
Instance details

Defined in Clay.Text

Inherit OverflowWrap # 
Instance details

Defined in Clay.Text

data WordBreak #

Instances
Val WordBreak # 
Instance details

Defined in Clay.Text

Methods

value :: WordBreak -> Value #

Unset WordBreak # 
Instance details

Defined in Clay.Text

Methods

unset :: WordBreak #

Initial WordBreak # 
Instance details

Defined in Clay.Text

Methods

initial :: WordBreak #

Normal WordBreak # 
Instance details

Defined in Clay.Text

Methods

normal :: WordBreak #

Inherit WordBreak # 
Instance details

Defined in Clay.Text

Methods

inherit :: WordBreak #

data TextTransform #

Instances
Val TextTransform # 
Instance details

Defined in Clay.Text

Methods

value :: TextTransform -> Value #

None TextTransform # 
Instance details

Defined in Clay.Text

Methods

none :: TextTransform #

Inherit TextTransform # 
Instance details

Defined in Clay.Text

data TextDecoration #

Instances
Val TextDecoration # 
Instance details

Defined in Clay.Text

Other TextDecoration # 
Instance details

Defined in Clay.Text

None TextDecoration # 
Instance details

Defined in Clay.Text

Inherit TextDecoration # 
Instance details

Defined in Clay.Text

data WhiteSpace #

Instances
Val WhiteSpace # 
Instance details

Defined in Clay.Text

Methods

value :: WhiteSpace -> Value #

Other WhiteSpace # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> WhiteSpace #

Normal WhiteSpace # 
Instance details

Defined in Clay.Text

Methods

normal :: WhiteSpace #

Inherit WhiteSpace # 
Instance details

Defined in Clay.Text

Methods

inherit :: WhiteSpace #

data TextAlign #

Instances
Val TextAlign # 
Instance details

Defined in Clay.Text

Methods

value :: TextAlign -> Value #

Other TextAlign # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> TextAlign #

Normal TextAlign # 
Instance details

Defined in Clay.Text

Methods

normal :: TextAlign #

Inherit TextAlign # 
Instance details

Defined in Clay.Text

Methods

inherit :: TextAlign #

Center TextAlign # 
Instance details

Defined in Clay.Text

Methods

center :: TextAlign #

data TextDirection #

Instances
Val TextDirection # 
Instance details

Defined in Clay.Text

Methods

value :: TextDirection -> Value #

Other TextDirection # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> TextDirection #

Normal TextDirection # 
Instance details

Defined in Clay.Text

Inherit TextDirection # 
Instance details

Defined in Clay.Text

data TextIndent #

Instances
Val TextIndent # 
Instance details

Defined in Clay.Text

Methods

value :: TextIndent -> Value #

Other TextIndent # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> TextIndent #

Unset TextIndent # 
Instance details

Defined in Clay.Text

Methods

unset :: TextIndent #

Initial TextIndent # 
Instance details

Defined in Clay.Text

Methods

initial :: TextIndent #

Inherit TextIndent # 
Instance details

Defined in Clay.Text

Methods

inherit :: TextIndent #

data TextRendering #

Instances
Val TextRendering # 
Instance details

Defined in Clay.Text

Methods

value :: TextRendering -> Value #

Other TextRendering # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> TextRendering #

Inherit TextRendering # 
Instance details

Defined in Clay.Text

Auto TextRendering # 
Instance details

Defined in Clay.Text

Methods

auto :: TextRendering #

textShadow :: Size a -> Size a -> Size a -> Color -> Css #

eachLine :: TextIndent -> TextIndent #

Annotate the supplied TextIndent with each-line or hanging or both.

eachLine . hanging . indent $ px 3 :: TextIndent

hanging :: TextIndent -> TextIndent #

Annotate the supplied TextIndent with each-line or hanging or both.

eachLine . hanging . indent $ px 3 :: TextIndent

data MaskComposite #

Instances
Val MaskComposite # 
Instance details

Defined in Clay.Mask

Methods

value :: MaskComposite -> Value #

Other MaskComposite # 
Instance details

Defined in Clay.Mask

Methods

other :: Value -> MaskComposite #

None MaskComposite # 
Instance details

Defined in Clay.Mask

Methods

none :: MaskComposite #

Inherit MaskComposite # 
Instance details

Defined in Clay.Mask

Mask MaskComposite # 
Instance details

Defined in Clay.Mask

Methods

mask :: MaskComposite -> Css #

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.

Methods

mask :: a -> Css #

Instances
Mask BackgroundAttachment # 
Instance details

Defined in Clay.Mask

Mask BackgroundClip # 
Instance details

Defined in Clay.Mask

Methods

mask :: BackgroundClip -> Css #

Mask BackgroundOrigin # 
Instance details

Defined in Clay.Mask

Methods

mask :: BackgroundOrigin -> Css #

Mask BackgroundImage # 
Instance details

Defined in Clay.Mask

Methods

mask :: BackgroundImage -> 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 BackgroundPosition # 
Instance details

Defined in Clay.Mask

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 #

data Filter #

Instances
Val Filter # 
Instance details

Defined in Clay.Filter

Methods

value :: Filter -> Value #

None Filter # 
Instance details

Defined in Clay.Filter

Methods

none :: Filter #

Inherit Filter # 
Instance details

Defined in Clay.Filter

Methods

inherit :: Filter #

Writing your own properties.