| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Ltml.HTML.CSS.Classes
Synopsis
- data Class
- = Body
- | AppendixSection
- | Document
- | DocumentTitle
- | SuperSection
- | Section
- | Heading
- | Paragraph
- | ParagraphID
- | TextContainer
- | Enumeration
- | FootnoteContainer
- | Footnote
- | FootnoteID
- | LeftAligned
- | Centered
- | RightAligned
- | SmallFontSize
- | MediumFontSize
- | LargeFontSize
- | Bold
- | Italic
- | Underlined
- | InlineError
- | CenteredBox
- | ErrorBox
- | AnchorLink
- | ButtonLink
- | Anchor
- | TableContainer
- | Table
- | TableOfContents
- | MinSizeColumn
- | MaxSizeColumn
- | TableCentered
- | TableDarkCell
- className :: Class -> Text
- classStyle :: Class -> Css
- enumCounter :: Text -> Counter -> Css
- class ToCssClass a where
- toCssClass :: a -> Class
- class ToCssClasses a where
- toCssClasses :: a -> [Class]
CSS Class Defintions
Constructors
| Body | Class for styling that should be applied to the whole document (HTML body) |
| AppendixSection | Class for spacing and alignment of and inside of an appendix section |
| Document | Class for alignment inside of a document |
| DocumentTitle | Class for styling and aligning document title h1 |
| SuperSection | Class for spacing and alignment of and inside of a super-section |
| Section | Class for spacing and alignment of and inside of a section |
| Heading | Class for spacing and alignment of a heading h2 |
| Paragraph | Class for spacing and alignment of a paragraph div |
| ParagraphID | Class for aligning a paragraph id div inside of a paragraph div |
| TextContainer | Text container which spaces text with elements in it (e.g. enumerations) |
| Enumeration | General class for all enumerations |
| FootnoteContainer | Class for spacing and alignment of multiple footnotes |
| Footnote | Class for spacing and alignment of a single footnote |
| FootnoteID | Class for sup element when rendering footnotes (not refs) |
| LeftAligned | Class for containers which left align text |
| Centered | Class for containers which centers text |
| RightAligned | Class for containers which right align text |
| SmallFontSize | Class for containers with a smaller font size |
| MediumFontSize | Class for containers with a standard/medium font size |
| LargeFontSize | Class for containers with a larger font size |
| Bold | Bold inlined basic text |
| Italic | Italic inlined basic text |
| Underlined | Underlined inlined basic text |
| InlineError | Class which inlines a red bold error text |
| CenteredBox | Class for centering blocks |
| ErrorBox | Class for a centered, boxed for parsing errors |
| AnchorLink | Styling of anchor links |
| ButtonLink | Link |
| Anchor | Class for elements that have HTML anchors (adds scroll-margin) |
| TableContainer | Wrapper around |
| Table | Class for |
| TableOfContents | Class for |
| MinSizeColumn | Table column thats only as wide as needed |
| MaxSizeColumn | Table column that consumes maximum space possible |
| TableCentered | Center entries in table columns |
| TableDarkCell | Highlight table cells with darker background color |
classStyle :: Class -> Css Source #
Maps Class to its css style definition
Enumeration Counter
enumCounter :: Text -> Counter -> Css Source #
Builds CSS class with specfied counter for ordered list items
LTML AST to CSS Class Mapping
class ToCssClass a where Source #
Methods
toCssClass :: a -> Class Source #
Instances
| ToCssClass FontSize Source # | |
Defined in Language.Ltml.HTML.CSS.Classes Methods toCssClass :: FontSize -> Class Source # | |
| ToCssClass FontStyle Source # | |
Defined in Language.Ltml.HTML.CSS.Classes Methods toCssClass :: FontStyle -> Class Source # | |
| ToCssClass TextAlignment Source # | |
Defined in Language.Ltml.HTML.CSS.Classes Methods toCssClass :: TextAlignment -> Class Source # | |
| ToCssClass Void Source # | ToCssClass instance that can never be called, because there are no values of type Void |
Defined in Language.Ltml.HTML.CSS.Classes Methods toCssClass :: Void -> Class Source # | |
class ToCssClasses a where Source #
Convert a into list of CSS classes that implement each feature
Methods
toCssClasses :: a -> [Class] Source #
Instances
| ToCssClasses Typography Source # | |
Defined in Language.Ltml.HTML.CSS.Classes Methods toCssClasses :: Typography -> [Class] Source # | |
| ToCssClasses BGColor Source # | |
Defined in Language.Ltml.HTML.CSS.Classes Methods toCssClasses :: BGColor -> [Class] Source # | |