fontSize

scalatags.generic.Styles.fontSize
object fontSize extends PixelStyle

The font-size CSS property specifies the size of the font – specifically the desired height of glyphs from the font. Setting the font size may, in turn, change the size of other items, since it is used to compute the value of em and ex Length units.

MDN

Attributes

Graph
Supertypes
class PixelStyle
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
fontSize.type

Members list

Value members

Inherited methods

def :=[Builder, T](v: T)(implicit ev: PixelStyleValue[Builder, T]): StylePair[Builder, _]

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Attributes

Inherited from:
PixelStyle
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val large: StylePair[Builder, _]
lazy val larger: StylePair[Builder, _]

Larger than the parent element's font size, by roughly the ratio used to separate the absolute size keywords above.

Larger than the parent element's font size, by roughly the ratio used to separate the absolute size keywords above.

MDN

Attributes

lazy val medium: StylePair[Builder, _]
lazy val small: StylePair[Builder, _]
lazy val smaller: StylePair[Builder, _]

Smaller than the parent element's font size, by roughly the ratio used to separate the absolute size keywords above.

Smaller than the parent element's font size, by roughly the ratio used to separate the absolute size keywords above.

MDN

Attributes

lazy val x-large: StylePair[Builder, _]
lazy val x-small: StylePair[Builder, _]
lazy val xx-large: StylePair[Builder, _]
lazy val xx-small: StylePair[Builder, _]

Inherited fields

Attributes

Inherited from:
PixelStyle