LengthUnits

trait LengthUnits[T[_], Num] extends CalcUnits[T]
trait CalcUnits[T]
class Object
trait Matchable
class Any
trait BackgroundSizeStyle[T, DerivedProp, Num]
trait FontSizeStyle[T, DerivedProp, Num]
trait LineWidthStyle[T, DerivedProp, Num]
trait MinMaxLengthStyle[T, DerivedProp, Num]
trait VerticalAlignStyle[T, DerivedProp, Num]

Value members

Inherited methods

protected def derivedStyle[A](encode: A => String): T[A]
protected def encodeCalcValue(exp: String): String

Encode / sanitize value to put inside calc() function

Encode / sanitize value to put inside calc() function

Inherited from:
DerivedStylePropBuilder
protected def encodeUrlValue(url: String): String

Encode / sanitize value to put inside url() function

Encode / sanitize value to put inside url() function

Inherited from:
DerivedStylePropBuilder

Concrete fields

lazy val ch: T[Num]

ch represents the width, or more precisely the advance measure, of the glyph "0" (zero, the Unicode character U+0030) in the element's font. --MDN

ch represents the width, or more precisely the advance measure, of the glyph "0" (zero, the Unicode character U+0030) in the element's font. --MDN

lazy val em: T[Num]

em represents the calculated font-size of the element. If used on the font-size property itself, it represents the inherited font-size of the element. --MDN

em represents the calculated font-size of the element. If used on the font-size property itself, it represents the inherited font-size of the element. --MDN

lazy val percent: T[Num]
lazy val pt: T[Num]

1 pt is 4/3 of a pixel.

1 pt is 4/3 of a pixel.

lazy val px: T[Num]

Pixels

Pixels

lazy val rem: T[Num]

rem represents the font-size of the root element (typically ). When used within the root element font-size, it represents its initial value (a common browser default is 16px, but user-defined preferences may modify this). --MDN

rem represents the font-size of the root element (typically ). When used within the root element font-size, it represents its initial value (a common browser default is 16px, but user-defined preferences may modify this). --MDN

lazy val vh: T[Num]

1 vh is equal to 1% of the height of the viewport's initial containing block --MDN

1 vh is equal to 1% of the height of the viewport's initial containing block --MDN

lazy val vmax: T[Num]

1 vmax is equal to the larger of 1 vw and 1 vh --MDN

1 vmax is equal to the larger of 1 vw and 1 vh --MDN

lazy val vmin: T[Num]

1 vmin is equal to the smaller of 1 vw and 1 vh --MDN

1 vmin is equal to the smaller of 1 vw and 1 vh --MDN

lazy val vw: T[Num]

1 vw is equal to 1% of the width of the viewport's initial containing block --MDN

1 vw is equal to 1% of the width of the viewport's initial containing block --MDN

Inherited fields

lazy val calc: T[String]

Wrap the provided expression in CSS calc() function.

Wrap the provided expression in CSS calc() function.

See also:
Inherited from:
CalcUnits