Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | Safe |
Language | Haskell98 |
- Container Classes
- Table Classes
- Card Classes
- Responsive Classes
- Layout Classes
- Bar Classes - Navigation
- Dropdown Classes
- Button Classes
- Input Classes
- Modal Classes
- Animation Classes
- Font and Text Classes
- Display Classes
- Effect Classes
- Background Color Classes
- Text Color Classes
- Hover Classes
- Round Classes
- Padding Classes
- Margin Classes
- Border Classes
- Color themes
A minimal interface for using W3.CSS, a modern CSS framework with built-in responsiveness. See https://www.w3schools.com/w3css/
- w3css :: HTMLPage -> HTMLPage
- w3class :: BuildXML a => String -> a -> a
- w3classIf :: BuildXML a => Bool -> String -> a -> a
- data Color
- data Size
- data Position
- = TopLeft
- | Top
- | TopRight
- | CenterLeft
- | Center
- | CenterRight
- | BottomLeft
- | Bottom
- | BottomRight
- onTop :: Position -> Bool
- onLeft :: Position -> Bool
- onRight :: Position -> Bool
- onBottom :: Position -> Bool
- uncamel :: String -> String
- container :: BuildXML a => a -> a
- panel :: BuildXML a => a -> a
- badge :: BuildXML a => a -> a
- tag :: BuildXML a => a -> a
- ul :: BuildXML a => [a] -> a
- ulWith :: BuildXML a => (a -> a) -> [a] -> a
- code :: BuildXML a => a -> a
- codespan :: BuildXML a => a -> a
- table :: BuildXML a => a -> a
- tableAll :: BuildXML a => a -> a
- striped :: BuildXML a => a -> a
- bordered :: BuildXML a => a -> a
- centered :: BuildXML a => a -> a
- hoverable :: BuildXML a => a -> a
- responsive :: BuildXML a => a -> a
- card :: BuildXML a => a -> a
- card2 :: BuildXML a => a -> a
- card4 :: BuildXML a => a -> a
- row :: BuildXML a => a -> a
- rowPadding :: BuildXML a => a -> a
- content :: BuildXML a => a -> a
- half :: BuildXML a => a -> a
- third :: BuildXML a => a -> a
- twothird :: BuildXML a => a -> a
- quarter :: BuildXML a => a -> a
- threequarter :: BuildXML a => a -> a
- col :: BuildXML a => a -> a
- rest :: BuildXML a => a -> a
- hideSmall :: BuildXML a => a -> a
- hideMedium :: BuildXML a => a -> a
- hideLarge :: BuildXML a => a -> a
- image :: BuildXML a => a -> a
- mobile :: BuildXML a => a -> a
- cellRow :: BuildXML a => a -> a
- cell :: BuildXML a => a -> a
- cellTop :: BuildXML a => a -> a
- cellMiddle :: BuildXML a => a -> a
- cellBottom :: BuildXML a => a -> a
- bar :: BuildXML a => a -> a
- barBlock :: BuildXML a => a -> a
- barItem :: BuildXML a => a -> a
- sidebar :: BuildXML a => a -> a
- collapse :: BuildXML a => a -> a
- mainPage :: BuildXML a => a -> a
- dropdownClick :: BuildXML a => a -> a
- dropdownHover :: BuildXML a => a -> a
- button :: BuildXML a => String -> a -> a
- btn :: BuildXML a => String -> a -> a
- ripple :: BuildXML a => String -> a -> a
- input :: BuildXML a => a -> a
- check :: BuildXML a => a -> a
- radio :: BuildXML a => a -> a
- select :: BuildXML a => a -> a
- modal :: BuildXML a => a -> a
- modalContent :: BuildXML a => a -> a
- tooltip :: BuildXML a => a -> a
- tooltipText :: BuildXML a => a -> a
- animate :: BuildXML a => Position -> a -> a
- animateOpacity :: BuildXML a => a -> a
- animateZoom :: BuildXML a => a -> a
- animateFading :: BuildXML a => a -> a
- spin :: BuildXML a => a -> a
- animateInput :: BuildXML a => a -> a
- fontSize :: BuildXML a => Size -> a -> a
- wide :: BuildXML a => a -> a
- serif :: BuildXML a => a -> a
- center :: BuildXML a => a -> a
- left :: BuildXML a => a -> a
- right :: BuildXML a => a -> a
- leftAlign :: BuildXML a => a -> a
- rightAlign :: BuildXML a => a -> a
- justify :: BuildXML a => a -> a
- circle :: BuildXML a => a -> a
- hide :: BuildXML a => a -> a
- showBlock :: BuildXML a => a -> a
- showInlineBlock :: BuildXML a => a -> a
- top :: BuildXML a => a -> a
- bottom :: BuildXML a => a -> a
- display :: BuildXML a => Position -> a -> a
- displayHover :: BuildXML a => a -> a
- opacity :: BuildXML a => a -> a
- opacityOff :: BuildXML a => a -> a
- opacityMin :: BuildXML a => a -> a
- opacityMax :: BuildXML a => a -> a
- grayscaleMin :: BuildXML a => a -> a
- grayscale :: BuildXML a => a -> a
- grayscaleMax :: BuildXML a => a -> a
- sepiaMin :: BuildXML a => a -> a
- sepia :: BuildXML a => a -> a
- sepiaMax :: BuildXML a => a -> a
- overlay :: BuildXML a => a -> a
- background :: BuildXML a => Color -> a -> a
- transparent :: BuildXML a => a -> a
- hover :: BuildXML a => Color -> a -> a
- textColor :: BuildXML a => Color -> a -> a
- hoverColor :: BuildXML a => Color -> a -> a
- hoverOpacity :: BuildXML a => a -> a
- hoverOpacityOff :: BuildXML a => a -> a
- hoverShadow :: BuildXML a => a -> a
- hoverGrayscale :: BuildXML a => a -> a
- hoverSepia :: BuildXML a => a -> a
- hoverNone :: BuildXML a => a -> a
- rounded :: BuildXML a => Size -> a -> a
- padding :: BuildXML a => Size -> a -> a
- vpadding :: BuildXML a => Size -> a -> a
- margin :: BuildXML a => a -> a
- marginPos :: BuildXML a => Position -> a -> a
- section :: BuildXML a => a -> a
- border :: BuildXML a => a -> a
- borderPos :: BuildXML a => Position -> a -> a
- noBorder :: BuildXML a => a -> a
- borderColor :: BuildXML a => Color -> a -> a
- barPos :: BuildXML a => Position -> a -> a
- data ColorTheme
- theme_ :: BuildXML a => a -> a
- textTheme :: BuildXML a => a -> a
- borderTheme :: BuildXML a => a -> a
- theme :: BuildXML a => ColorTheme -> a -> a
Documentation
Container Classes
panel :: BuildXML a => a -> a Source #
HTML container with 16px left and right padding and 16px top and bottom margin
Table Classes
responsive :: BuildXML a => a -> a Source #
Creates a responsive table
Card Classes
Responsive Classes
rowPadding :: BuildXML a => a -> a Source #
Row where all columns have a default padding
threequarter :: BuildXML a => a -> a Source #
Three quarters (3/4) screen column container
hideMedium :: BuildXML a => a -> a Source #
Hide content on medium screens
mobile :: BuildXML a => a -> a Source #
Adds mobile-first responsiveness to any element. Displays elements as block elements on mobile devices.
Layout Classes
cellMiddle :: BuildXML a => a -> a Source #
Aligns content at the vertical middle of a column (cell).
cellBottom :: BuildXML a => a -> a Source #
Aligns content at the bottom of a column (cell).
Bar Classes - Navigation
collapse :: BuildXML a => a -> a Source #
Used together with w3-sidebar to create a fully automatic responsive side navigation. For this class to work, the page content must be within a "w3-main" class
mainPage :: BuildXML a => a -> a Source #
Container for page content when using the w3-collapse class for responsive side navigations
Dropdown Classes
dropdownClick :: BuildXML a => a -> a Source #
Clickable dropdown element
dropdownHover :: BuildXML a => a -> a Source #
Hoverable dropdown element
Button Classes
button :: BuildXML a => String -> a -> a Source #
Rectangular button with grey background color on hover
Input Classes
Modal Classes
modalContent :: BuildXML a => a -> a Source #
Modal pop-up element
tooltipText :: BuildXML a => a -> a Source #
Tooltip text
Animation Classes
animateOpacity :: BuildXML a => a -> a Source #
Animates an element's opacity from 0 to 1
animateZoom :: BuildXML a => a -> a Source #
Animates an element from 0 to 100% in size
animateFading :: BuildXML a => a -> a Source #
Animates an element's opacity from 0 to 1 and 1 to 0 (fades in AND out)
animateInput :: BuildXML a => a -> a Source #
Animates the width of an input field to 100%
Font and Text Classes
fontSize :: BuildXML a => Size -> a -> a Source #
Specifies a font size: tiny 10px, small 12px, large 18px, xlarge 24px, xxlarge 32px, xxxlarge 48px, jumbo 64px
Display Classes
rightAlign :: BuildXML a => a -> a Source #
Right aligned text
showInlineBlock :: BuildXML a => a -> a Source #
Show content as inline-block (display:inline-block)
display :: BuildXML a => Position -> a -> a Source #
Container for w3-display-classes (position: relative)
displayHover :: BuildXML a => a -> a Source #
Displays content on hover inside the w3-display-container
Effect Classes
opacityOff :: BuildXML a => a -> a Source #
Turns off opacity/transparency (opacity: 1)
opacityMin :: BuildXML a => a -> a Source #
Adds opacity/transparency to an element (opacity: 0.75)
opacityMax :: BuildXML a => a -> a Source #
Adds opacity/transparency to an element (opacity: 0.25)
grayscaleMin :: BuildXML a => a -> a Source #
Adds a grayscale effect to an element (grayscale: 50%)
grayscaleMax :: BuildXML a => a -> a Source #
Adds a grayscale effect to an element (grayscale: 100%)
Background Color Classes
background :: BuildXML a => Color -> a -> a Source #
Background color
transparent :: BuildXML a => a -> a Source #
Transparent background-color
Text Color Classes
Hover Classes
hoverColor :: BuildXML a => Color -> a -> a Source #
Hover text color
hoverOpacity :: BuildXML a => a -> a Source #
Adds transparency to an element on hover (opacity: 0.6)
hoverOpacityOff :: BuildXML a => a -> a Source #
Removes transparency from an element on hover (100% opacity)
hoverShadow :: BuildXML a => a -> a Source #
Adds shadow to an element on hover
hoverGrayscale :: BuildXML a => a -> a Source #
Adds a black and white (100% grayscale) effect to an element
hoverSepia :: BuildXML a => a -> a Source #
Adds a sepia effect to an element on hover
Round Classes
rounded :: BuildXML a => Size -> a -> a Source #
Element rounded (border-radius): small 2px, medium 4px, large 8px, xlarge 16px, xxlarge 32px
Padding Classes
padding :: BuildXML a => Size -> a -> a Source #
Small: Padding 4px top and bottom, and 8px left and right, Medium: Padding 8px top and bottom, and 16px left and right, Large: Padding 12px top and bottom, and 24px left and right.
vpadding :: BuildXML a => Size -> a -> a Source #
Padding top and bottom: medium 16px, large 24px, xlarge 32px, xxlarge 48px, xxxlarge 64px
Margin Classes
Border Classes
borderColor :: BuildXML a => Color -> a -> a Source #
Border color
Color themes
borderTheme :: BuildXML a => a -> a Source #
theme :: BuildXML a => ColorTheme -> a -> a Source #