backend-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Language.Ltml.HTML.CSS.Classes

Synopsis

CSS Class Defintions

data Class Source #

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 a

ButtonLink

Link a that looks not like a link but more like a button

Anchor

Class for elements that have HTML anchors (adds scroll-margin)

TableContainer

Wrapper around Table, which places it on the page

Table

Class for table element of in-text tables

TableOfContents

Class for table element of ToC

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

Instances

Instances details
Bounded Class Source # 
Instance details

Defined in Language.Ltml.HTML.CSS.Classes

Enum Class Source # 
Instance details

Defined in Language.Ltml.HTML.CSS.Classes

Show Class Source # 
Instance details

Defined in Language.Ltml.HTML.CSS.Classes

Methods

showsPrec :: Int -> Class -> ShowS #

show :: Class -> String #

showList :: [Class] -> ShowS #

Eq Class Source # 
Instance details

Defined in Language.Ltml.HTML.CSS.Classes

Methods

(==) :: Class -> Class -> Bool #

(/=) :: Class -> Class -> Bool #

className :: Class -> Text Source #

Returns the html class name of given Class

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

Instances details
ToCssClass FontSize Source # 
Instance details

Defined in Language.Ltml.HTML.CSS.Classes

ToCssClass FontStyle Source # 
Instance details

Defined in Language.Ltml.HTML.CSS.Classes

ToCssClass TextAlignment Source # 
Instance details

Defined in Language.Ltml.HTML.CSS.Classes

ToCssClass Void Source #

ToCssClass instance that can never be called, because there are no values of type Void

Instance details

Defined in Language.Ltml.HTML.CSS.Classes

class ToCssClasses a where Source #

Convert a into list of CSS classes that implement each feature

Methods

toCssClasses :: a -> [Class] Source #

Instances

Instances details
ToCssClasses Typography Source # 
Instance details

Defined in Language.Ltml.HTML.CSS.Classes

ToCssClasses BGColor Source # 
Instance details

Defined in Language.Ltml.HTML.CSS.Classes