| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Clay.Text
Synopsis
- letterSpacing :: Size a -> Css
- wordSpacing :: Size a -> Css
- data TextRendering
- textRendering :: TextRendering -> Css
- optimizeSpeed :: TextRendering
- optimizeLegibility :: TextRendering
- geometricPrecision :: TextRendering
- textShadow :: Size a -> Size a -> Size a -> Color -> Css
- data TextIndent
- textIndent :: TextIndent -> Css
- eachLine :: TextIndent -> TextIndent
- hanging :: TextIndent -> TextIndent
- indent :: Size a -> TextIndent
- data TextDirection
- direction :: TextDirection -> Css
- ltr :: TextDirection
- rtl :: TextDirection
- data TextAlign
- textAlign :: TextAlign -> Css
- textAlignLast :: TextAlign -> Css
- justify :: TextAlign
- matchParent :: TextAlign
- start :: TextAlign
- end :: TextAlign
- alignSide :: Side -> TextAlign
- alignString :: Char -> TextAlign
- data WhiteSpace
- whiteSpace :: WhiteSpace -> Css
- pre :: WhiteSpace
- nowrap :: WhiteSpace
- preWrap :: WhiteSpace
- preLine :: WhiteSpace
- data TextDecoration
- textDecoration :: TextDecoration -> Css
- textDecorationStyle :: Stroke -> Css
- textDecorationLine :: TextDecoration -> Css
- textDecorationColor :: Color -> Css
- underline :: TextDecoration
- overline :: TextDecoration
- lineThrough :: TextDecoration
- blink :: TextDecoration
- data TextTransform
- textTransform :: TextTransform -> Css
- capitalize :: TextTransform
- uppercase :: TextTransform
- lowercase :: TextTransform
- fullWidth :: TextTransform
- data TextOverflow
- textOverflow :: TextOverflow -> Css
- overflowClip :: TextOverflow
- overflowEllipsis :: TextOverflow
- data WordBreak
- wordBreak :: WordBreak -> Css
- breakAll :: WordBreak
- keepAll :: WordBreak
- data OverflowWrap
- overflowWrap :: OverflowWrap -> Css
- wordWrap :: OverflowWrap -> Css
- breakWord :: OverflowWrap
- hyphens :: Hyphens -> Css
- hyphenateCharacter :: HyphenateCharacter -> Css
- hyphenateLimitChars :: HyphenateLimit -> HyphenateLimit -> HyphenateLimit -> Css
- manual :: Hyphens
- data Hyphens
- data HyphenateCharacter
- data HyphenateLimit
- data Content
- content :: Content -> Css
- contents :: [Content] -> Css
- attrContent :: Text -> Content
- stringContent :: Text -> Content
- uriContent :: Text -> Content
- urlContent :: Text -> Content
- openQuote :: Content
- closeQuote :: Content
- noOpenQuote :: Content
- noCloseQuote :: Content
Letter and word-spacing.
letterSpacing :: Size a -> Css #
wordSpacing :: Size a -> Css #
Text-rendering.
data TextRendering #
Instances
| Auto TextRendering # | |
Defined in Clay.Text Methods auto :: TextRendering # | |
| Inherit TextRendering # | |
Defined in Clay.Text Methods | |
| Other TextRendering # | |
Defined in Clay.Text Methods other :: Value -> TextRendering # | |
| Val TextRendering # | |
Defined in Clay.Text Methods value :: TextRendering -> Value # | |
textRendering :: TextRendering -> Css #
Text-shadow.
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 #
Instances
| Inherit TextIndent # | |
Defined in Clay.Text Methods inherit :: TextIndent # | |
| Initial TextIndent # | |
Defined in Clay.Text Methods initial :: TextIndent # | |
| Other TextIndent # | |
Defined in Clay.Text Methods other :: Value -> TextIndent # | |
| Unset TextIndent # | |
Defined in Clay.Text Methods unset :: TextIndent # | |
| Val TextIndent # | |
Defined in Clay.Text Methods value :: TextIndent -> Value # | |
textIndent :: TextIndent -> 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
indent :: Size a -> TextIndent #
Text-direction.
data TextDirection #
Instances
| Inherit TextDirection # | |
Defined in Clay.Text Methods | |
| Normal TextDirection # | |
Defined in Clay.Text Methods normal :: TextDirection # | |
| Other TextDirection # | |
Defined in Clay.Text Methods other :: Value -> TextDirection # | |
| Val TextDirection # | |
Defined in Clay.Text Methods value :: TextDirection -> Value # | |
direction :: TextDirection -> Css #
ltr :: TextDirection #
rtl :: TextDirection #
Text-align.
textAlignLast :: TextAlign -> Css #
alignString :: Char -> TextAlign #
White-space.
data WhiteSpace #
Instances
| Inherit WhiteSpace # | |
Defined in Clay.Text Methods inherit :: WhiteSpace # | |
| Normal WhiteSpace # | |
Defined in Clay.Text Methods normal :: WhiteSpace # | |
| Other WhiteSpace # | |
Defined in Clay.Text Methods other :: Value -> WhiteSpace # | |
| Val WhiteSpace # | |
Defined in Clay.Text Methods value :: WhiteSpace -> Value # | |
whiteSpace :: WhiteSpace -> Css #
pre :: WhiteSpace #
nowrap :: WhiteSpace #
preWrap :: WhiteSpace #
preLine :: WhiteSpace #
Text-decoration.
data TextDecoration #
Instances
| Inherit TextDecoration # | |
Defined in Clay.Text Methods | |
| None TextDecoration # | |
Defined in Clay.Text Methods none :: TextDecoration # | |
| Other TextDecoration # | |
Defined in Clay.Text Methods other :: Value -> TextDecoration # | |
| Val TextDecoration # | |
Defined in Clay.Text Methods value :: TextDecoration -> Value # | |
textDecoration :: TextDecoration -> Css #
textDecorationStyle :: Stroke -> Css #
textDecorationLine :: TextDecoration -> Css #
textDecorationColor :: Color -> Css #
blink :: TextDecoration #
Text-transform.
data TextTransform #
Instances
| Inherit TextTransform # | |
Defined in Clay.Text Methods | |
| None TextTransform # | |
Defined in Clay.Text Methods none :: TextTransform # | |
| Val TextTransform # | |
Defined in Clay.Text Methods value :: TextTransform -> Value # | |
textTransform :: TextTransform -> Css #
Text-overflow.
data TextOverflow #
Instances
| Inherit TextOverflow # | |
Defined in Clay.Text Methods inherit :: TextOverflow # | |
| Initial TextOverflow # | |
Defined in Clay.Text Methods initial :: TextOverflow # | |
| None TextOverflow # | |
Defined in Clay.Text Methods none :: TextOverflow # | |
| Val TextOverflow # | |
Defined in Clay.Text Methods value :: TextOverflow -> Value # | |
textOverflow :: TextOverflow -> Css #
Word-break.
Overflow-wrap (and Word-wrap).
data OverflowWrap #
Instances
| Inherit OverflowWrap # | |
Defined in Clay.Text Methods inherit :: OverflowWrap # | |
| Initial OverflowWrap # | |
Defined in Clay.Text Methods initial :: OverflowWrap # | |
| Normal OverflowWrap # | |
Defined in Clay.Text Methods normal :: OverflowWrap # | |
| Unset OverflowWrap # | |
Defined in Clay.Text Methods unset :: OverflowWrap # | |
| Val OverflowWrap # | |
Defined in Clay.Text Methods value :: OverflowWrap -> Value # | |
overflowWrap :: OverflowWrap -> Css #
wordWrap :: OverflowWrap -> Css #
Hyphenation.
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
­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 #
Customizes the character used for hyphenation.
For example,
>>>hyphenateCharacter "~"
For reference, see
hyphenate-character.
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.
Type for values which can be provided to hyphens.
data HyphenateCharacter #
Type for values which can be provided to hyphenateCharacter.
Instances
| Auto HyphenateCharacter # | |
Defined in Clay.Text Methods | |
| Inherit HyphenateCharacter # | |
Defined in Clay.Text Methods | |
| Initial HyphenateCharacter # | |
Defined in Clay.Text Methods | |
| Other HyphenateCharacter # | |
Defined in Clay.Text Methods other :: Value -> HyphenateCharacter # | |
| Unset HyphenateCharacter # | |
Defined in Clay.Text Methods | |
| Val HyphenateCharacter # | |
Defined in Clay.Text Methods value :: HyphenateCharacter -> Value # | |
| IsString HyphenateCharacter # | |
Defined in Clay.Text Methods fromString :: String -> HyphenateCharacter # | |
data HyphenateLimit #
Type for values which can be provded to hyphenateLimitChars.
Instances
| Auto HyphenateLimit # | |
Defined in Clay.Text Methods auto :: HyphenateLimit # | |
| Inherit HyphenateLimit # | |
Defined in Clay.Text Methods | |
| Initial HyphenateLimit # | |
Defined in Clay.Text Methods | |
| Other HyphenateLimit # | |
Defined in Clay.Text Methods other :: Value -> HyphenateLimit # | |
| Unset HyphenateLimit # | |
Defined in Clay.Text Methods unset :: HyphenateLimit # | |
| Val HyphenateLimit # | |
Defined in Clay.Text Methods value :: HyphenateLimit -> Value # | |
| Num HyphenateLimit # | |
Defined in Clay.Text Methods (+) :: HyphenateLimit -> HyphenateLimit -> HyphenateLimit # (-) :: HyphenateLimit -> HyphenateLimit -> HyphenateLimit # (*) :: HyphenateLimit -> HyphenateLimit -> HyphenateLimit # negate :: HyphenateLimit -> HyphenateLimit # abs :: HyphenateLimit -> HyphenateLimit # signum :: HyphenateLimit -> HyphenateLimit # fromInteger :: Integer -> HyphenateLimit # | |
Content.
attrContent :: Text -> Content #
stringContent :: Text -> Content #
uriContent :: Text -> Content #
urlContent :: Text -> Content #
closeQuote :: Content #
noOpenQuote :: Content #
noCloseQuote :: Content #