The content value for the
flex-basis property.
Functions for building stylesheets.
Take a list of mixins and return a list of key-value pairs that
can then be passed to a style attribute.
styles = asPairs >> Html.Attributes.style
button
[ styles [ position absolute, left (px 5) ] ]
[ text "Whee!" ]The middle vertical-align value.
verticalAlign baselineSets border
border (px 10)
border2 (px 10) dashed
border3 (px 10) dashed (rgb 11 14 17)Sets border
border (px 10)
border2 (px 10) dashed
border3 (px 10) dashed (rgb 11 14 17)Sets border
border (px 10)
border2 (px 10) dashed
border3 (px 10) dashed (rgb 11 14 17)Sets border-block-end
borderBlockEnd (px 5)
borderBlockEnd2 (px 5) dashed
borderBlockEnd3 (px 5) dashed (rgb 11 14 17)Sets border-block-end
borderBlockEnd (px 5)
borderBlockEnd2 (px 5) dashed
borderBlockEnd3 (px 5) dashed (rgb 11 14 17)Sets border-block-end
borderBlockEnd (px 5)
borderBlockEnd2 (px 5) dashed
borderBlockEnd3 (px 5) dashed (rgb 11 14 17)borderBlockEndColor (rgb 101 202 0)borderBlockEndStyle dashedSets border-block-start
borderBlockStart (px 5)
borderBlockStart2 (px 5) dashed
borderBlockStart3 (px 5) dashed (rgb 11 14 17)Sets border-block-start
borderBlockStart (px 5)
borderBlockStart2 (px 5) dashed
borderBlockStart3 (px 5) dashed (rgb 11 14 17)Sets border-block-start
borderBlockStart (px 5)
borderBlockStart2 (px 5) dashed
borderBlockStart3 (px 5) dashed (rgb 11 14 17)borderBlockStartColor (rgb 101 202 0)borderBlockStartStyle dashedSets border-bottom
borderBottom (px 5)
borderBottom2 (px 5) dashed
borderBottom3 (px 5) dashed (rgb 11 14 17)Sets border-bottom
borderBottom (px 5)
borderBottom2 (px 5) dashed
borderBottom3 (px 5) dashed (rgb 11 14 17)Sets border-bottom
borderBottom (px 5)
borderBottom2 (px 5) dashed
borderBottom3 (px 5) dashed (rgb 11 14 17)Sets border-bottom-color
borderBottomColor (rgb 101 202 0)Sets border-bottom-left-radius
borderBottomLeftRadius (em 4)
borderBottomLeftRadius2 (em 4) (px 2)Sets border-bottom-left-radius
borderBottomLeftRadius (em 4)
borderBottomLeftRadius2 (em 4) (px 2)Sets border-bottom-right-radius
borderBottomRightRadius (em 4)
borderBottomRightRadius2 (em 4) (px 2)Sets border-bottom-right-radius
borderBottomRightRadius (em 4)
borderBottomRightRadius2 (em 4) (px 2)Sets border-bottom-style
borderBottomStyle dashedSets border-bottom-width
borderBottomWidth (em 4)The border-box value for the box-sizing property.
Sets border-color
borderColor (rgb 12 11 10)
borderColor2 (rgb 12 11 10) (hex "FFBBCC")
borderColor3 (rgb 12 11 10) (hex "FFBBCC") inherit
borderColor4 (rgb 12 11 10) (hex "FFBBCC") inherit (rgb 1 2 3)Sets border-color
borderColor (rgb 12 11 10)
borderColor2 (rgb 12 11 10) (hex "FFBBCC")
borderColor3 (rgb 12 11 10) (hex "FFBBCC") inherit
borderColor4 (rgb 12 11 10) (hex "FFBBCC") inherit (rgb 1 2 3)Sets border-color
borderColor (rgb 12 11 10)
borderColor2 (rgb 12 11 10) (hex "FFBBCC")
borderColor3 (rgb 12 11 10) (hex "FFBBCC") inherit
borderColor4 (rgb 12 11 10) (hex "FFBBCC") inherit (rgb 1 2 3)Sets border-color
borderColor (rgb 12 11 10)
borderColor2 (rgb 12 11 10) (hex "FFBBCC")
borderColor3 (rgb 12 11 10) (hex "FFBBCC") inherit
borderColor4 (rgb 12 11 10) (hex "FFBBCC") inherit (rgb 1 2 3)Sets border-image-outset
borderImageOutset (int 2)
borderImageOutset2 (int 2) (px 15)
borderImageOutset3 (int 2) (px 15) (int 1.5)
borderImageOutset4 (int 2) (px 15) (int 14) (em 3)Sets border-image-outset
borderImageOutset (int 2)
borderImageOutset2 (int 2) (px 15)
borderImageOutset3 (int 2) (px 15) (int 1.5)
borderImageOutset4 (int 2) (px 15) (int 14) (em 3)Sets border-image-outset
borderImageOutset (int 2)
borderImageOutset2 (int 2) (px 15)
borderImageOutset3 (int 2) (px 15) (int 1.5)
borderImageOutset4 (int 2) (px 15) (int 14) (em 3)Sets border-image-outset
borderImageOutset (int 2)
borderImageOutset2 (int 2) (px 15)
borderImageOutset3 (int 2) (px 15) (int 1.5)
borderImageOutset4 (int 2) (px 15) (int 14) (em 3)Sets border-image-width
borderImageWidth (int 3)
borderImageWidth2 (int 3) (px 15)
borderImageWidth3 (int 3) (px 15) auto
borderImageWidth4 (int 3) (px 15) auto (int 2)Sets border-image-width
borderImageWidth (int 3)
borderImageWidth2 (int 3) (px 15)
borderImageWidth3 (int 3) (px 15) auto
borderImageWidth4 (int 3) (px 15) auto (int 2)Sets border-image-width
borderImageWidth (int 3)
borderImageWidth2 (int 3) (px 15)
borderImageWidth3 (int 3) (px 15) auto
borderImageWidth4 (int 3) (px 15) auto (int 2)Sets border-image-width
borderImageWidth (int 3)
borderImageWidth2 (int 3) (px 15)
borderImageWidth3 (int 3) (px 15) auto
borderImageWidth4 (int 3) (px 15) auto (int 2)Sets border-block-end
borderInlineEnd (px 5)
borderInlineEnd2 (px 5) dashed
borderInlineEnd3 (px 5) dashed (rgb 11 14 17)Sets border-block-end
borderInlineEnd (px 5)
borderInlineEnd2 (px 5) dashed
borderInlineEnd3 (px 5) dashed (rgb 11 14 17)Sets border-block-end
borderInlineEnd (px 5)
borderInlineEnd2 (px 5) dashed
borderInlineEnd3 (px 5) dashed (rgb 11 14 17)borderInlineEndColor (rgb 101 202 0)borderInlineEndStyle dashedborderInlineEndWidth (em 4)Sets border-block-start
borderInlineStart (px 5)
borderInlineStart2 (px 5) dashed
borderInlineStart3 (px 5) dashed (rgb 11 14 17)Sets border-block-start
borderInlineStart (px 5)
borderInlineStart2 (px 5) dashed
borderInlineStart3 (px 5) dashed (rgb 11 14 17)Sets border-block-start
borderInlineStart (px 5)
borderInlineStart2 (px 5) dashed
borderInlineStart3 (px 5) dashed (rgb 11 14 17)Sets border-inline-start-color
borderInlineStartColor (rgb 101 202 0)Sets border-inline-start-style
borderInlineStartStyle dashedSets border-left
borderLeft (px 5)
borderLeft2 (px 5) dashed
borderLeft3 (px 5) dashed (rgb 11 14 17)Sets border-left
borderLeft (px 5)
borderLeft2 (px 5) dashed
borderLeft3 (px 5) dashed (rgb 11 14 17)Sets border-left
borderLeft (px 5)
borderLeft2 (px 5) dashed
borderLeft3 (px 5) dashed (rgb 11 14 17)Sets border-left-color
borderLeftColor (rgb 101 202 0)Sets border-left-style
borderLeftStyle dashedSets border-left-width
borderLeftWidth (em 4)Sets border-radius
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-radius
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-radius
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-radius
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-right
borderRight (px 5)
borderRight2 (px 5) dashed
borderRight3 (px 5) dashed (rgb 11 14 17)Sets border-right
borderRight (px 5)
borderRight2 (px 5) dashed
borderRight3 (px 5) dashed (rgb 11 14 17)Sets border-right
borderRight (px 5)
borderRight2 (px 5) dashed
borderRight3 (px 5) dashed (rgb 11 14 17)Sets border-right-color
borderRightColor (rgb 101 202 0)Sets border-right-style
borderRightStyle dashedSets border-right-width
borderRightWidth (em 4)Sets border-style
borderStyle dashedSets border-top
borderTop (px 5)
borderTop2 (px 5) dashed
borderTop3 (px 5) dashed (rgb 11 14 17)Sets border-top
borderTop (px 5)
borderTop2 (px 5) dashed
borderTop3 (px 5) dashed (rgb 11 14 17)Sets border-top
borderTop (px 5)
borderTop2 (px 5) dashed
borderTop3 (px 5) dashed (rgb 11 14 17)Sets border-top-color
borderTopColor (rgb 101 202 0)borderTopLeftRadius (em 4)
borderTopLeftRadius2 (em 4) (px 2)borderTopLeftRadius (em 4)
borderTopLeftRadius2 (em 4) (px 2)borderTopRightRadius (em 4)
borderTopRightRadius2 (em 4) (px 2)borderTopRightRadius (em 4)
borderTopRightRadius2 (em 4) (px 2)Sets border-top-style
borderTopStyle dashedSets border-top-width
borderTopWidth (em 4)
borderTopWidth2 (em 4) (px 2)The bottom property.
position absolute
bottom (px 5)This can also be used as a bottom vertical-align value:
verticalAlign bottomThe[column](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction #Values) value for the
flex-direction property.
The[column-reverse](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction #Values) value for the
flex-direction property.
The content value for the
flex-basis property.
The content-box value for the box-sizing property.
A dashed border style.
A dotted border style.
A double border style.
The fill-box value for the transform-box property.
The flat value for the transform-style property.
display: flex. This works around the fact that
flex is already taken.
Theflex-start value for the
align-items property.
A groove border style.
[RGB color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb())
in hexadecimal notation. You can optionally include # as the first character,
for benefits like syntax highlighting in editors, ease of copy/pasting from
tools which express these as e.g. #abcdef0, etc.
[HSL color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#hsl())
s and l values are expressed as a number between 0 and 1 and are converted
to the appropriate percentage at compile-time
[HSLA color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#hsla())
s and l values are expressed as a number between 0 and 1 and are converted
to the appropriate percentage at compile-time
Transforms the given property by adding !important to the end of its declaration.
An inset border style.
The [matrix()](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#matrix()) transform-function.
transform (matrix 0.5 1 1.5 2 2.5 3)The [matrix3d()](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#matrix3d()) transform-function.
transform (matrix3d 0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3)The middle vertical-align value.
verticalAlign middleAn outset border style.
The [perspective()](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#perspective()) transform-function.
transform (perspective 0.5)The preserve-3d value for the transform-style property.
[RGB color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()) in functional notation.
[RGBA color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgba()).
A ridge border style.
The [rotate](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#rotate()) transform-function.
transform (rotate (deg 90))The [rotate3d](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#rotate3d()) transform-function.
transform (rotate3d 1 1 1 (deg 90))The [rotateX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#rotateX()) transform-function.
transform (rotateX (deg 90))The [rotateY](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#rotateY()) transform-function.
transform (rotateY (deg 90))The [rotateZ](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#rotateZ()) transform-function.
transform (rotateZ (deg 90))The[row](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction #Values) value for the
flex-direction property.
The[row-reverse](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction #Values) value for the
flex-direction property.
The [scale](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#scale()) transform-function.
transform (scale 0.5)
transform (scale2 0.5 0.7)The [scale](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#scale()) transform-function.
transform (scale 0.5)
transform (scale2 0.5 0.7)The [scale3d](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#scale3d()) transform-function.
transform (scale3d 0.5 0.5 1)The [scaleX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#scaleX()) transform-function.
transform (scaleX 0.5)The [scaleY](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#scaleY()) transform-function.
transform (scaleY 0.5)The [skew](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#skew()) transform-function.
transform (skew (deg 90))
transform (skew2 (deg 90) (deg 45))The [skew](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#skew()) transform-function.
transform (skew (deg 90))
transform (skew2 (deg 90) (deg 45))The [skewX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#skewX()) transform-function.
transform (skewX (deg 90))The [skewY](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#skewY()) transform-function.
transform (skewY (deg 90))A solid border style.
The middle vertical-align value.
verticalAlign subThe middle vertical-align value.
verticalAlign superThe middle vertical-align value.
verticalAlign textBottomThe middle vertical-align value.
verticalAlign textTopThe top property.
position absolute
top (px 5)This can also be used as a top vertical-align value:
verticalAlign topThe [translate](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translate()) transform-function.
transform (translate (px 100))
transform (translate2 (px 100) (pct -45))The [translate](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translate()) transform-function.
transform (translate (px 100))
transform (translate2 (px 100) (pct -45))The [translateX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translateX()) transform-function.
transform (translate3d (px 100) (px 100) (px 100))The [translateX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translateX()) transform-function.
transform (translateX (px 100))The [translateY](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translateY()) transform-function.
transform (translateY (px 100))The [translateZ](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translateZ()) transform-function.
transform (translateZ (px 100))A transparent color.
The view-box value for the transform-box property.
A wavy text decoration style.
Thewrap-reverse value for the
flex-wrap property.
A Mixin allowing you to modularly reuse common styles in other styles.
The return value of mixin can be used like any other property, since all
properties in elm-css are implemented as mixins.
underlineOnHover =
mixin "underlineOnHover"
[ textDecoration none
, hover
[ textDecoration underline ]
]
stylesheet
[ (.) FancyLink
[ color (rgb 128 64 32)
, underlineOnHover
]
]...has the same result as:
stylesheet
[ (.) FancyLink
[ color (rgb 128 64 32)
, textDecoration none
, hover
[ textDecoration underline ]
]
]A stylesheet.
stylesheet
[ body
[ width (px 960)
, color (rgb 7 7 7)
]
]Compile the given stylesheet to a CSS string, or to an error message if it could not be compiled.
An id selector.
stylesheet
[ (#) NavBar
[ width 960 px
, backgroundColor (rgb 123 42 208)
]
]stylesheet
[ (.) LoginFormButton
[ fontWeight normal
, color (rgb 128 64 32)
]
]A custom selector. Use this for things like attribute selectors and universal selectors.
stylesheet "homepage"
[ selector "* [lang^=en]"
[ textDecoration underline
, color (rgb 7 7 7)
]
]A * selector.
(.) Foo
[ children
[ everything
[ color (rgb 14 15 16)
, borderRadius (px 5)
]
]
]...compiles to:
.Foo > * {
color: rgb(14, 15, 16);
border-radius: 5px;
}Define a custom property.
stylesheet
[ body
[ property "-webkit-font-smoothing" "none" ]
]...outputs
body {
-webkit-font-smoothing: none;
}Sets flex property.}
flex (none | content | auto | (int 1) | (px 10)) flex2 (int 1) ((int 1) | (px 10 )) flex3 (int 1) (int 1) ((int 1) | (px 10))
Sets flex property.}
flex (none | content | auto | (int 1) | (px 10)) flex2 (int 1) ((int 1) | (px 10 )) flex3 (int 1) (int 1) ((int 1) | (px 10))
Sets flex property.}
flex (none | content | auto | (int 1) | (px 10)) flex2 (int 1) ((int 1) | (px 10 )) flex3 (int 1) (int 1) ((int 1) | (px 10))
Sets align-self.
Note: auto is not currently supported here. If you need to set this property to auto,
use this workaround:
property "align-self" "auto"
If this is annoying, please file an issue, so adding support for "auto" can be prioritized!
Sets align-items.
Note: auto is not currently supported here. If you need to set this property to auto,
use this workaround:
property "align-items" "auto"
If this is annoying, please file an issue, so adding support for "auto" can be prioritized!
Sets flex-direction property.}
Sets flex-flow property.}
flexFlow1 (wrap | wrapReverse | noWrap) flexFlow2 (wrap | wrapReverse | noWrap) (row | column | rowReverse | columnReverse)
Or vice versa, order is not important for flex-flow
Sets flex-flow property.}
flexFlow1 (wrap | wrapReverse | noWrap) flexFlow2 (wrap | wrapReverse | noWrap) (row | column | rowReverse | columnReverse)
Or vice versa, order is not important for flex-flow
Sets flex-basis property.}
flex (none | content | auto | (int 1) | (px 10)) flex2 (int 1) ((int 1) | (px 10 )) flex3 (int 1) (int 1) ((int 1) | (px 10))
Sets flex-shrink property.}
The transform-style property.
The transform-box property.
Sets transform
with a single explicit transform value. If you need to set the transform
property to none, use the transforms function with an empty list. See
transforms for more details.
transform (scaleX 1.4)Sets transform
with a series of transform-functions. If an empty list is provided, the CSS
output will be none, as if to state directly that the set of transforms
applied to the current selector is empty:
transforms [] -- transform: none;In the case that only one transform is needed, the transform function may be
used instead for convenience. transform expects exactly one transform-function
and cannot be passed none:
transform (matrix 1 2 3 4 5 6) -- transform: matrix(1, 2, 3, 4, 5, 6);If a collection of transforms is needed, use the transforms function with a
populated list:
transforms [ perspective 1, scale2 1 1.4 ]The currentColor
value.
A line-through
text decoration line.
Sets text-decoration
textDecoration underline
textDecoration2 underline wavy
textDecoration3 underline wavy (rgb 128 64 32)You can specify multiple line decorations with textDecorations.
textDecorations [ underline, overline ]
textDecorations2 [ underline, overline ] wavy
textDecorations3 [ underline, overline ] wavy (rgb 128 64 32)Sets text-decoration
textDecoration underline
textDecoration2 underline wavy
textDecoration3 underline wavy (rgb 128 64 32)You can specify multiple line decorations with textDecorations.
textDecorations [ underline, overline ]
textDecorations2 [ underline, overline ] wavy
textDecorations3 [ underline, overline ] wavy (rgb 128 64 32)Sets text-decoration
textDecoration underline
textDecoration2 underline wavy
textDecoration3 underline wavy (rgb 128 64 32)You can specify multiple line decorations with textDecorations.
textDecorations [ underline, overline ]
textDecorations2 [ underline, overline ] wavy
textDecorations3 [ underline, overline ] wavy (rgb 128 64 32)Sets text-decoration-line
textDecorationLine underlineYou can specify multiple line decorations with textDecorationLines.
textDecorationLines [ underline, overline ]Sets text-decoration
textDecorations [ underline, overline ]
textDecorations2 [ underline, overline ] wavy
textDecorations3 [ underline, overline ] wavy (rgb 128 64 32)Sets text-decoration
textDecorations [ underline, overline ]
textDecorations2 [ underline, overline ] wavy
textDecorations3 [ underline, overline ] wavy (rgb 128 64 32)Sets text-decoration
textDecorations [ underline, overline ]
textDecorations2 [ underline, overline ] wavy
textDecorations3 [ underline, overline ] wavy (rgb 128 64 32)Sets text-decoration-line
textDecorationLine underlineYou can specify multiple line decorations with textDecorationLines.
textDecorationLines [ underline, overline ]Sets text-decoration-line
textDecorationLines [ underline, overline ]textDecorationStyle dottedcapitalize text-transform value
uppercase text-transform value
lowercase text-transform value
full-width text-transform value
each-line text-indent value
Sets text-indent.
textIndent (px 40)
textIndent2 (px 40) hanging
textIndent3 (px 40) hanging eachLineSets text-indent.
textIndent (px 40)
textIndent2 (px 40) hanging
textIndent3 (px 40) hanging eachLineSets text-indent.
textIndent (px 40)
textIndent2 (px 40) hanging
textIndent3 (px 40) hanging eachLineclip text-overflow value
ellipsis text-overflow value
Sets text-overflow.
textOverflow ellipsisoptimizeSpeed text-rendering value
optimizeLegibility text-rendering value
geometricPrecision text-rendering value
Sets text-rendering.
Sets text-transform.
Sets text-align.
Sets text-align-last.
Note: auto is not currently supported here. If you need to set this property to auto,
use this workaround:
property "text-align-last" "auto"
If this is annoying, please file an issue, so adding support for "auto"
can be prioritized!The left property.
position absolute
left (px 5)This can also be used as a left text alignment value:
textAlign leftcenter alignment.
Can also be used with flex-box's align-items property to apply the value of center
text-justify alignment.
justify-all alignment.
match-parent alignment.
Sets vertical-align.
For display: flex, use displayFlex.
The min-content value for
[min-width]https://developer.mozilla.org/en-US/docs/Web/CSS/min-width#Values),
[max-width]https://developer.mozilla.org/en-US/docs/Web/CSS/max-width#Values),
[min-height]https://developer.mozilla.org/en-US/docs/Web/CSS/min-height#Values), and
[max-height]https://developer.mozilla.org/en-US/docs/Web/CSS/max-height#Values)
The max-content value for
[min-width]https://developer.mozilla.org/en-US/docs/Web/CSS/min-width#Values),
[max-width]https://developer.mozilla.org/en-US/docs/Web/CSS/max-width#Values),
[min-height]https://developer.mozilla.org/en-US/docs/Web/CSS/min-height#Values), and
[max-height]https://developer.mozilla.org/en-US/docs/Web/CSS/max-height#Values)
The fit-content value for
[min-width]https://developer.mozilla.org/en-US/docs/Web/CSS/min-width#Values),
[max-width]https://developer.mozilla.org/en-US/docs/Web/CSS/max-width#Values),
[min-height]https://developer.mozilla.org/en-US/docs/Web/CSS/min-height#Values), and
[max-height]https://developer.mozilla.org/en-US/docs/Web/CSS/max-height#Values)
The fill-available value for
[min-width]https://developer.mozilla.org/en-US/docs/Web/CSS/min-width#Values),
[max-width]https://developer.mozilla.org/en-US/docs/Web/CSS/max-width#Values),
[min-height]https://developer.mozilla.org/en-US/docs/Web/CSS/min-height#Values), and
[max-height]https://developer.mozilla.org/en-US/docs/Web/CSS/max-height#Values)
Sets min-height
minHeight (px 100)Sets max-height
maxHeight (px 1024)Sets padding
padding (px 10)
padding2 (px 10) (px 10)
padding3 (px 10) (px 10) (px 10)
padding4 (px 10) (px 10) (px 10) (px 10)Sets padding
padding (px 10)
padding2 (px 10) (px 10)
padding3 (px 10) (px 10) (px 10)
padding4 (px 10) (px 10) (px 10) (px 10)Sets padding
padding (px 10)
padding2 (px 10) (px 10)
padding3 (px 10) (px 10) (px 10)
padding4 (px 10) (px 10) (px 10) (px 10)Sets padding
padding (px 10)
padding2 (px 10) (px 10)
padding3 (px 10) (px 10) (px 10)
padding4 (px 10) (px 10) (px 10) (px 10)Sets padding-top
paddingTop (px 10)Sets padding-bottom
paddingBottom (px 10)Sets padding-right
paddingRight (px 10)Sets padding-left
paddingLeft (px 10)Sets padding-block-start
paddingBlockStart (px 10)Sets padding-block-end
paddingBlockEnd (px 10)Sets padding-inline-start
paddingInlineStart (px 10)Sets padding-inline-end
paddingInlineEnd (px 10)Sets margin
margin (px 10)
margin2 (px 10) (px 10)
margin3 (px 10) (px 10) (px 10)
margin4 (px 10) (px 10) (px 10) (px 10)Sets margin
margin (px 10)
margin2 (px 10) (px 10)
margin3 (px 10) (px 10) (px 10)
margin4 (px 10) (px 10) (px 10) (px 10)Sets margin
margin (px 10)
margin2 (px 10) (px 10)
margin3 (px 10) (px 10) (px 10)
margin4 (px 10) (px 10) (px 10) (px 10)Sets margin
margin (px 10)
margin2 (px 10) (px 10)
margin3 (px 10) (px 10) (px 10)
margin4 (px 10) (px 10) (px 10) (px 10)Sets margin-top
marginTop (px 10)Sets margin-bottom
marginBottom (px 10)Sets margin-right
marginRight (px 10)Sets margin-left
marginLeft (px 10)Sets margin-block-start
marginBlockStart (px 10)Sets margin-block-end
marginBlockEnd (px 10)Sets margin-inline-start
marginInlineStart (px 10)Sets margin-inline-end
marginInlineEnd (px 10)Sets box-sizing
boxSizing borderBoxSets text-shadow.
textShadow none
textShadow2 (px 1) (px 2)
textShadow3 (px 1) (px 2) (rgb 211 121 112)
textShadow4 (px 1) (px 2) (px 3) (rgb 211 121 112)Sets text-shadow.
textShadow none
textShadow2 (px 1) (px 2)
textShadow3 (px 1) (px 2) (rgb 211 121 112)
textShadow4 (px 1) (px 2) (px 3) (rgb 211 121 112)Sets text-shadow.
textShadow none
textShadow2 (px 1) (px 2)
textShadow3 (px 1) (px 2) (rgb 211 121 112)
textShadow4 (px 1) (px 2) (px 3) (rgb 211 121 112)Sets text-shadow.
textShadow none
textShadow2 (px 1) (px 2)
textShadow3 (px 1) (px 2) (rgb 211 121 112)
textShadow4 (px 1) (px 2) (px 3) (rgb 211 121 112)Sets line-height
lineHeight (px 10)Sets letter-spacing
letterSpacing (px 10)Sets font-style
fontStyle italicSets font-weight
fontWeight bold
fontWeight (int 300)Sets font-variant
fontVariant smallCaps
fontVariant2 commonLigatures smallCaps
fontVariant3 commonLigatures smallCaps slashedZero
fontVariants [ oldstyleNums tabularNums stackedFractions ordinal slashedZero ]fontFeatureSettings (featureTag "hist")
fontFeatureSettings (featureTag2 "smcp" on)
fontFeatureSettings (featureTag2 "swsh" 2)fontFeatureSettingsList [featureTag "c2sc", featureTag "smcp"]all, important, custom, solid, transparent, rgb, rgba, hsl, hsla, hex
Creates a feature-tag-value
with the default value of 1
fontFeatureSettings (featureTag "hist")Creates a feature-tag-value
with a particular integer value
fontFeatureSettings (featureTag2 "smcp" on)
fontFeatureSettings (featureTag2 "swsh" 2)Alias for on value of font-feature-settings
Alias for off value of font-feature-settings
Sets border-color
borderColor (rgb 12 11 10)
borderColor2 (rgb 12 11 10) (hex "FFBBCC")
borderColor3 (rgb 12 11 10) (hex "FFBBCC") inherit
borderColor4 (rgb 12 11 10) (hex "FFBBCC") inherit (rgb 1 2 3)Sets border-color
borderColor (rgb 12 11 10)
borderColor2 (rgb 12 11 10) (hex "FFBBCC")
borderColor3 (rgb 12 11 10) (hex "FFBBCC") inherit
borderColor4 (rgb 12 11 10) (hex "FFBBCC") inherit (rgb 1 2 3)Sets border-color
borderColor (rgb 12 11 10)
borderColor2 (rgb 12 11 10) (hex "FFBBCC")
borderColor3 (rgb 12 11 10) (hex "FFBBCC") inherit
borderColor4 (rgb 12 11 10) (hex "FFBBCC") inherit (rgb 1 2 3)Sets border-color
borderColor (rgb 12 11 10)
borderColor2 (rgb 12 11 10) (hex "FFBBCC")
borderColor3 (rgb 12 11 10) (hex "FFBBCC") inherit
borderColor4 (rgb 12 11 10) (hex "FFBBCC") inherit (rgb 1 2 3)Sets border-bottom-left-radius
borderBottomLeftRadius (em 4)
borderBottomLeftRadius2 (em 4) (px 2)Sets border-bottom-left-radius
borderBottomLeftRadius (em 4)
borderBottomLeftRadius2 (em 4) (px 2)Sets border-bottom-right-radius
borderBottomRightRadius (em 4)
borderBottomRightRadius2 (em 4) (px 2)Sets border-bottom-right-radius
borderBottomRightRadius (em 4)
borderBottomRightRadius2 (em 4) (px 2)borderTopLeftRadius (em 4)
borderTopLeftRadius2 (em 4) (px 2)borderTopLeftRadius (em 4)
borderTopLeftRadius2 (em 4) (px 2)borderTopRightRadius (em 4)
borderTopRightRadius2 (em 4) (px 2)borderTopRightRadius (em 4)
borderTopRightRadius2 (em 4) (px 2)Sets border-radius
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-radius
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-radius
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-radius
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-bottom-width
borderBottomWidth (em 4)borderInlineEndWidth (em 4)Sets border-left-width
borderLeftWidth (em 4)Sets border-right-width
borderRightWidth (em 4)Sets border-top-width
borderTopWidth (em 4)
borderTopWidth2 (em 4) (px 2)borderBlockEndStyle dashedborderBlockStartStyle dashedborderInlineEndStyle dashedSets border-bottom-style
borderBottomStyle dashedSets border-inline-start-style
borderInlineStartStyle dashedSets border-left-style
borderLeftStyle dashedSets border-right-style
borderRightStyle dashedSets border-top-style
borderTopStyle dashedSets border-style
borderStyle dashedborderBlockStartColor (rgb 101 202 0)borderBlockEndColor (rgb 101 202 0)Sets border-bottom-color
borderBottomColor (rgb 101 202 0)Sets border-inline-start-color
borderInlineStartColor (rgb 101 202 0)borderInlineEndColor (rgb 101 202 0)Sets border-left-color
borderLeftColor (rgb 101 202 0)Sets border-right-color
borderRightColor (rgb 101 202 0)Sets border-top-color
borderTopColor (rgb 101 202 0)The border-box value for the box-sizing property.
The content-box value for the box-sizing property.
Sets border
border (px 10)
border2 (px 10) dashed
border3 (px 10) dashed (rgb 11 14 17)Sets border
border (px 10)
border2 (px 10) dashed
border3 (px 10) dashed (rgb 11 14 17)Sets border
border (px 10)
border2 (px 10) dashed
border3 (px 10) dashed (rgb 11 14 17)Sets border-top
borderTop (px 5)
borderTop2 (px 5) dashed
borderTop3 (px 5) dashed (rgb 11 14 17)Sets border-top
borderTop (px 5)
borderTop2 (px 5) dashed
borderTop3 (px 5) dashed (rgb 11 14 17)Sets border-top
borderTop (px 5)
borderTop2 (px 5) dashed
borderTop3 (px 5) dashed (rgb 11 14 17)Sets border-bottom
borderBottom (px 5)
borderBottom2 (px 5) dashed
borderBottom3 (px 5) dashed (rgb 11 14 17)Sets border-bottom
borderBottom (px 5)
borderBottom2 (px 5) dashed
borderBottom3 (px 5) dashed (rgb 11 14 17)Sets border-bottom
borderBottom (px 5)
borderBottom2 (px 5) dashed
borderBottom3 (px 5) dashed (rgb 11 14 17)Sets border-left
borderLeft (px 5)
borderLeft2 (px 5) dashed
borderLeft3 (px 5) dashed (rgb 11 14 17)Sets border-left
borderLeft (px 5)
borderLeft2 (px 5) dashed
borderLeft3 (px 5) dashed (rgb 11 14 17)Sets border-left
borderLeft (px 5)
borderLeft2 (px 5) dashed
borderLeft3 (px 5) dashed (rgb 11 14 17)Sets border-right
borderRight (px 5)
borderRight2 (px 5) dashed
borderRight3 (px 5) dashed (rgb 11 14 17)Sets border-right
borderRight (px 5)
borderRight2 (px 5) dashed
borderRight3 (px 5) dashed (rgb 11 14 17)Sets border-right
borderRight (px 5)
borderRight2 (px 5) dashed
borderRight3 (px 5) dashed (rgb 11 14 17)Sets border-block-end
borderBlockEnd (px 5)
borderBlockEnd2 (px 5) dashed
borderBlockEnd3 (px 5) dashed (rgb 11 14 17)Sets border-block-end
borderBlockEnd (px 5)
borderBlockEnd2 (px 5) dashed
borderBlockEnd3 (px 5) dashed (rgb 11 14 17)Sets border-block-end
borderBlockEnd (px 5)
borderBlockEnd2 (px 5) dashed
borderBlockEnd3 (px 5) dashed (rgb 11 14 17)Sets border-block-start
borderBlockStart (px 5)
borderBlockStart2 (px 5) dashed
borderBlockStart3 (px 5) dashed (rgb 11 14 17)Sets border-block-start
borderBlockStart (px 5)
borderBlockStart2 (px 5) dashed
borderBlockStart3 (px 5) dashed (rgb 11 14 17)Sets border-block-start
borderBlockStart (px 5)
borderBlockStart2 (px 5) dashed
borderBlockStart3 (px 5) dashed (rgb 11 14 17)Sets border-block-end
borderInlineEnd (px 5)
borderInlineEnd2 (px 5) dashed
borderInlineEnd3 (px 5) dashed (rgb 11 14 17)Sets border-block-end
borderInlineEnd (px 5)
borderInlineEnd2 (px 5) dashed
borderInlineEnd3 (px 5) dashed (rgb 11 14 17)Sets border-block-end
borderInlineEnd (px 5)
borderInlineEnd2 (px 5) dashed
borderInlineEnd3 (px 5) dashed (rgb 11 14 17)Sets border-block-start
borderInlineStart (px 5)
borderInlineStart2 (px 5) dashed
borderInlineStart3 (px 5) dashed (rgb 11 14 17)Sets border-block-start
borderInlineStart (px 5)
borderInlineStart2 (px 5) dashed
borderInlineStart3 (px 5) dashed (rgb 11 14 17)Sets border-block-start
borderInlineStart (px 5)
borderInlineStart2 (px 5) dashed
borderInlineStart3 (px 5) dashed (rgb 11 14 17)Sets border-image-outset
borderImageOutset (int 2)
borderImageOutset2 (int 2) (px 15)
borderImageOutset3 (int 2) (px 15) (int 1.5)
borderImageOutset4 (int 2) (px 15) (int 14) (em 3)Sets border-image-outset
borderImageOutset (int 2)
borderImageOutset2 (int 2) (px 15)
borderImageOutset3 (int 2) (px 15) (int 1.5)
borderImageOutset4 (int 2) (px 15) (int 14) (em 3)Sets border-image-outset
borderImageOutset (int 2)
borderImageOutset2 (int 2) (px 15)
borderImageOutset3 (int 2) (px 15) (int 1.5)
borderImageOutset4 (int 2) (px 15) (int 14) (em 3)Sets border-image-outset
borderImageOutset (int 2)
borderImageOutset2 (int 2) (px 15)
borderImageOutset3 (int 2) (px 15) (int 1.5)
borderImageOutset4 (int 2) (px 15) (int 14) (em 3)Sets border-image-width
borderImageWidth (int 3)
borderImageWidth2 (int 3) (px 15)
borderImageWidth3 (int 3) (px 15) auto
borderImageWidth4 (int 3) (px 15) auto (int 2)Sets border-image-width
borderImageWidth (int 3)
borderImageWidth2 (int 3) (px 15)
borderImageWidth3 (int 3) (px 15) auto
borderImageWidth4 (int 3) (px 15) auto (int 2)Sets border-image-width
borderImageWidth (int 3)
borderImageWidth2 (int 3) (px 15)
borderImageWidth3 (int 3) (px 15) auto
borderImageWidth4 (int 3) (px 15) auto (int 2)Sets border-image-width
borderImageWidth (int 3)
borderImageWidth2 (int 3) (px 15)
borderImageWidth3 (int 3) (px 15) auto
borderImageWidth4 (int 3) (px 15) auto (int 2)The top property.
position absolute
top (px 5)This can also be used as a top vertical-align value:
verticalAlign topThe bottom property.
position absolute
bottom (px 5)This can also be used as a bottom vertical-align value:
verticalAlign bottomThe middle vertical-align value.
verticalAlign middleThe middle vertical-align value.
verticalAlign baselineThe middle vertical-align value.
verticalAlign subThe middle vertical-align value.
verticalAlign superThe middle vertical-align value.
verticalAlign textTopThe middle vertical-align value.
verticalAlign textBottomA wavy text decoration style.
A dotted border style.
A dashed border style.
A solid border style.
A double border style.
A groove border style.
A ridge border style.
An inset border style.
An outset border style.
The [matrix()](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#matrix()) transform-function.
transform (matrix 0.5 1 1.5 2 2.5 3)The [matrix3d()](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#matrix3d()) transform-function.
transform (matrix3d 0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3)The [perspective()](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#perspective()) transform-function.
transform (perspective 0.5)The [rotate3d](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#rotate3d()) transform-function.
transform (rotate3d 1 1 1 (deg 90))The [rotateX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#rotateX()) transform-function.
transform (rotateX (deg 90))The [rotateY](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#rotateY()) transform-function.
transform (rotateY (deg 90))The [rotateZ](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#rotateZ()) transform-function.
transform (rotateZ (deg 90))The [scale](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#scale()) transform-function.
transform (scale 0.5)
transform (scale2 0.5 0.7)The [scale](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#scale()) transform-function.
transform (scale 0.5)
transform (scale2 0.5 0.7)The [scale3d](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#scale3d()) transform-function.
transform (scale3d 0.5 0.5 1)The [scaleX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#scaleX()) transform-function.
transform (scaleX 0.5)The [scaleY](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#scaleY()) transform-function.
transform (scaleY 0.5)The [skew](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#skew()) transform-function.
transform (skew (deg 90))
transform (skew2 (deg 90) (deg 45))The [skew](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#skew()) transform-function.
transform (skew (deg 90))
transform (skew2 (deg 90) (deg 45))The [skewX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#skewX()) transform-function.
transform (skewX (deg 90))The [skewY](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#skewY()) transform-function.
transform (skewY (deg 90))The [translate](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translate()) transform-function.
transform (translate (px 100))
transform (translate2 (px 100) (pct -45))The [translate](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translate()) transform-function.
transform (translate (px 100))
transform (translate2 (px 100) (pct -45))The [translateX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translateX()) transform-function.
transform (translate3d (px 100) (px 100) (px 100))The [translateX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translateX()) transform-function.
transform (translateX (px 100))The [translateY](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translateY()) transform-function.
transform (translateY (px 100))The [translateZ](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#translateZ()) transform-function.
transform (translateZ (px 100))The [rotate](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#rotate()) transform-function.
transform (rotate (deg 90))The fill-box value for the transform-box property.
The view-box value for the transform-box property.
The flat value for the transform-style property.
The preserve-3d value for the transform-style property.
The content value for the
flex-basis property.
Thewrap-reverse value for the
flex-wrap property.
Theflex-start value for the
align-items property.
The[row](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction #Values) value for the
flex-direction property.
The[row-reverse](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction #Values) value for the
flex-direction property.
The[column](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction #Values) value for the
flex-direction property.
The[column-reverse](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction #Values) value for the
flex-direction property.
https://developer.mozilla.org/en-US/docs/Web/CSS/length
in units.
(This is inches instead of in because in is a reserved keyword in Elm.)
A unitless integer. Useful with properties like borderImageOutset
which accept either length units or unitless numbers for some properties.
A unitless number. Useful with properties like flexGrow
which accept unitless numbers.
Convenience length value that compiles to 0 with no units.
stylesheet
[ ul
[ padding zero ]
]...compiles to:
ul {
padding: 0;
}An :active
pseudo-class.
An :any
pseudo-class.
A :dir
pseudo-class.
An :empty
pseudo-class.
An :enabled
pseudo-class.
An :hover
pseudo-class.
An :invalid
pseudo-class.
An :nth
pseudo-class.
For use with font-family
fontFamily serif
fontFamilies [(qt "Gill Sans Extrabold"), "Helvetica", .value sansSerif]A font size
https://developer.mozilla.org/en-US/docs/Web/CSS/color#Values
These are features you might expect to be in elm-css (because they are in the CSS specification) but which have been omitted because their use is either deprecated or discouraged.
The
border width values
of thin, medium, and thick have unspecified behavior according to the
CSS specification, and as such are intentionally unsupported.
Using them is a bad idea, but if the fate of the world depends on it, you can fall back on something like this:
stylesheet
[ button
[ property "border-left" "thin" ]
]The
border width values
of thin, medium, and thick have unspecified behavior according to the
CSS specification, and as such are intentionally unsupported.
Using them is a bad idea, but if the fate of the world depends on it, you can fall back on something like this:
stylesheet
[ button
[ property "border-left" "thick" ]
]