style

com.raquo.laminar.api.Laminar.style$

Attributes

Graph
Supertypes
trait Url[StyleEncoder]
trait Length[StyleEncoder, Int]
trait Color[String, StyleEncoder]
class Object
trait Matchable
class Any
Show all
Self type
style.type

Members list

Value members

Inherited methods

def hsl(hue: Double, saturation: Double, lightness: Double, alpha: Double): SS

Value parameters

alpha

0..1, indicating opacity (0 means transparent)

hue

0..360

lightness

0..100

saturation

0..100

Attributes

See also
Inherited from:
Color
def hsl(hue: Double, saturation: Double, lightness: Double): SS

Value parameters

hue

0..360

lightness

0..100

saturation

0..100

Attributes

See also
Inherited from:
Color
def hsla(hue: Double, saturation: Double, lightness: Double, alpha: Double): SS

Value parameters

alpha

0..1, indicating opacity (0 means transparent)

hue

0..360

lightness

0..100

saturation

0..100

Attributes

See also
Inherited from:
Color
def rgb(red: Int, green: Int, blue: Int, alpha: Double): SS

Value parameters

alpha

0..1, indicating opacity (0 means transparent)

blue

0..255

green

0..255

red

0..255

Attributes

See also
Inherited from:
Color
def rgb(red: Int, green: Int, blue: Int): SS

Value parameters

blue

0..255

green

0..255

red

0..255

Attributes

See also
Inherited from:
Color
def rgba(red: Int, green: Int, blue: Int, alpha: Double): SS

Value parameters

alpha

0..1, indicating opacity (0 means transparent)

blue

0..255

green

0..255

red

0..255

Attributes

See also
Inherited from:
Color

Inherited fields

lazy val calc: StyleEncoder[String]

Wrap the provided expression in CSS calc() function.

Wrap the provided expression in CSS calc() function.

Attributes

See also
Inherited from:
Calc
lazy val ch: StyleEncoder[Int]

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.

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.

Attributes

Inherited from:
Length
lazy val em: StyleEncoder[Int]

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.

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.

Attributes

Inherited from:
Length
lazy val ms: StyleEncoder[Double]

Milliseconds

Milliseconds

Attributes

Inherited from:
Time
lazy val percent: StyleEncoder[Int]

Attributes

Inherited from:
Length
lazy val pt: StyleEncoder[Int]

1 pt is 4/3 of a pixel.

1 pt is 4/3 of a pixel.

Attributes

Inherited from:
Length
lazy val px: StyleEncoder[Int]

Pixels

Pixels

Attributes

Inherited from:
Length
lazy val rem: StyleEncoder[Int]

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).

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).

Attributes

Inherited from:
Length
lazy val s: StyleEncoder[Double]

Seconds

Seconds

Attributes

Inherited from:
Time
lazy val url: StyleEncoder[String]

Provide a URL to wrap into the CSS url() function.

Provide a URL to wrap into the CSS url() function.

Attributes

Inherited from:
Url
lazy val vh: StyleEncoder[Int]

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

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

Attributes

Inherited from:
Length
lazy val vmax: StyleEncoder[Int]

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

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

Attributes

Inherited from:
Length
lazy val vmin: StyleEncoder[Int]

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

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

Attributes

Inherited from:
Length
lazy val vw: StyleEncoder[Int]

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

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

Attributes

Inherited from:
Length