clay-0.15.0: CSS preprocessor as embedded Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Clay.Text

Synopsis

Letter and word-spacing.

Text-rendering.

data TextRendering Source #

Instances

Instances details
Auto TextRendering Source # 
Instance details

Defined in Clay.Text

Inherit TextRendering Source # 
Instance details

Defined in Clay.Text

Other TextRendering Source # 
Instance details

Defined in Clay.Text

Val TextRendering Source # 
Instance details

Defined in Clay.Text

Text-shadow.

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

Text-indent.

Supply a length — optionally annotated with each-line or hanging or both, or a global value. It is possible to apply the same annotation multiple times, but it has no defined effect.

Note browser support is currently (March 2018) non-existent, but the Prince typesetting system supports the syntax.

Formal argument syntax

<length-percentage> && hanging? && each-line?
where
<length-percentage> = <length> | <percentage>

data TextIndent Source #

Instances

Instances details
Inherit TextIndent Source # 
Instance details

Defined in Clay.Text

Initial TextIndent Source # 
Instance details

Defined in Clay.Text

Other TextIndent Source # 
Instance details

Defined in Clay.Text

Unset TextIndent Source # 
Instance details

Defined in Clay.Text

Val TextIndent Source # 
Instance details

Defined in Clay.Text

eachLine :: TextIndent -> TextIndent Source #

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

eachLine . hanging . indent $ px 3 :: TextIndent

hanging :: TextIndent -> TextIndent Source #

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

eachLine . hanging . indent $ px 3 :: TextIndent

Text-direction.

data TextDirection Source #

Instances

Instances details
Inherit TextDirection Source # 
Instance details

Defined in Clay.Text

Normal TextDirection Source # 
Instance details

Defined in Clay.Text

Other TextDirection Source # 
Instance details

Defined in Clay.Text

Val TextDirection Source # 
Instance details

Defined in Clay.Text

Text-align.

data TextAlign Source #

Instances

Instances details
Center TextAlign Source # 
Instance details

Defined in Clay.Text

Inherit TextAlign Source # 
Instance details

Defined in Clay.Text

Normal TextAlign Source # 
Instance details

Defined in Clay.Text

Other TextAlign Source # 
Instance details

Defined in Clay.Text

Val TextAlign Source # 
Instance details

Defined in Clay.Text

White-space.

data WhiteSpace Source #

Instances

Instances details
Inherit WhiteSpace Source # 
Instance details

Defined in Clay.Text

Normal WhiteSpace Source # 
Instance details

Defined in Clay.Text

Other WhiteSpace Source # 
Instance details

Defined in Clay.Text

Val WhiteSpace Source # 
Instance details

Defined in Clay.Text

Text-decoration.

data TextDecoration Source #

Instances

Instances details
Inherit TextDecoration Source # 
Instance details

Defined in Clay.Text

None TextDecoration Source # 
Instance details

Defined in Clay.Text

Other TextDecoration Source # 
Instance details

Defined in Clay.Text

Val TextDecoration Source # 
Instance details

Defined in Clay.Text

Text-transform.

data TextTransform Source #

Instances

Instances details
Inherit TextTransform Source # 
Instance details

Defined in Clay.Text

None TextTransform Source # 
Instance details

Defined in Clay.Text

Val TextTransform Source # 
Instance details

Defined in Clay.Text

Text-overflow.

data TextOverflow Source #

Instances

Instances details
Inherit TextOverflow Source # 
Instance details

Defined in Clay.Text

Initial TextOverflow Source # 
Instance details

Defined in Clay.Text

None TextOverflow Source # 
Instance details

Defined in Clay.Text

Val TextOverflow Source # 
Instance details

Defined in Clay.Text

Word-break.

data WordBreak Source #

Instances

Instances details
Inherit WordBreak Source # 
Instance details

Defined in Clay.Text

Initial WordBreak Source # 
Instance details

Defined in Clay.Text

Normal WordBreak Source # 
Instance details

Defined in Clay.Text

Unset WordBreak Source # 
Instance details

Defined in Clay.Text

Val WordBreak Source # 
Instance details

Defined in Clay.Text

Overflow-wrap (and Word-wrap).

data OverflowWrap Source #

Instances

Instances details
Inherit OverflowWrap Source # 
Instance details

Defined in Clay.Text

Initial OverflowWrap Source # 
Instance details

Defined in Clay.Text

Normal OverflowWrap Source # 
Instance details

Defined in Clay.Text

Unset OverflowWrap Source # 
Instance details

Defined in Clay.Text

Val OverflowWrap Source # 
Instance details

Defined in Clay.Text

Hyphenation.

hyphens :: Hyphens -> Css Source #

Specifies how words should be hyphenated.

Possible values are:

none
No hyphenation. Words will not be hyphenated even if it is explicitly suggested for a word.
manual
Manual hyphenation. Specific characters such as &shy; in a word will suggest break points. This is the default.
auto
Automatic hyphenation. The browser is free to hyphenate words as it sees fit. However, explicitly suggested break points will take precedence.

For example,

>>> hyphens auto

The hyphenation rules depend on the language, which must be specified by the lang attribute.

For reference, see hyphens.

hyphenateCharacter :: HyphenateCharacter -> Css Source #

Customizes the character used for hyphenation.

For example,

>>> hyphenateCharacter "~"

For reference, see hyphenate-character.

hyphenateLimitChars Source #

Arguments

:: HyphenateLimit

Minimum length of a word which can be hyphenated.

-> HyphenateLimit

Minimum number of characters allowed before a break point.

-> HyphenateLimit

Minimum number of characters allowed after a break point.

-> Css 

Adjusts the minumum number of characters involved in hyphenation.

I.e., specifies the minumum number of characters allowed in a breakable word, before a break point, and after a break point when hyphenating a word.

For example,

>>> hyphenateLimitChars 14 auto auto

For reference, see hyphenate-limit-chars.

manual :: Hyphens Source #

Value for hyphens specifying that hyphenation be manual.

data Hyphens Source #

Type for values which can be provided to hyphens.

Instances

Instances details
Auto Hyphens Source # 
Instance details

Defined in Clay.Text

Methods

auto :: Hyphens Source #

Inherit Hyphens Source # 
Instance details

Defined in Clay.Text

Initial Hyphens Source # 
Instance details

Defined in Clay.Text

None Hyphens Source # 
Instance details

Defined in Clay.Text

Methods

none :: Hyphens Source #

Other Hyphens Source # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> Hyphens Source #

Unset Hyphens Source # 
Instance details

Defined in Clay.Text

Methods

unset :: Hyphens Source #

Val Hyphens Source # 
Instance details

Defined in Clay.Text

Methods

value :: Hyphens -> Value Source #

data HyphenateCharacter Source #

Type for values which can be provided to hyphenateCharacter.

Instances

Instances details
IsString HyphenateCharacter Source # 
Instance details

Defined in Clay.Text

Auto HyphenateCharacter Source # 
Instance details

Defined in Clay.Text

Inherit HyphenateCharacter Source # 
Instance details

Defined in Clay.Text

Initial HyphenateCharacter Source # 
Instance details

Defined in Clay.Text

Other HyphenateCharacter Source # 
Instance details

Defined in Clay.Text

Unset HyphenateCharacter Source # 
Instance details

Defined in Clay.Text

Val HyphenateCharacter Source # 
Instance details

Defined in Clay.Text

Content.

data Content Source #

Instances

Instances details
Inherit Content Source # 
Instance details

Defined in Clay.Text

Initial Content Source # 
Instance details

Defined in Clay.Text

None Content Source # 
Instance details

Defined in Clay.Text

Methods

none :: Content Source #

Normal Content Source # 
Instance details

Defined in Clay.Text

Val Content Source # 
Instance details

Defined in Clay.Text

Methods

value :: Content -> Value Source #