scalatags

DataTypes

object DataTypes

Contains the trait and case class definitions for the most commonly used CSS data types. Not really necessary if you are declaring your CSS inline with your fragments, but useful if you want to pass CSS values around and need a type to put in a parameter list or collection.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DataTypes
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class Angle(number: Double, unit: String) extends NumberUnit with Product with Serializable

  2. trait Color extends ColorStop

    The Color CSS data type denotes a color in the sRGB color space.

    The Color CSS data type denotes a color in the sRGB color space. A color can be described in any of these ways:

    - using a keyword - using the RGB cubic-coordinate system (via the #-hexadecimal or the rgb() and rgba() functional notations) - using the HSL cylindrical-coordinate system (via the hsl() and hsla() functional notations)

    MDN

  3. trait ColorStop extends AnyRef

    Something that can be used in as a color stop in a gradient.

    Something that can be used in as a color stop in a gradient. Generally is either a Color or a ColorStopPair.

  4. case class ColorStopPair(c: Color, p: Length) extends ColorStop with Product with Serializable

    Pair of Color and Length to be used in a gradient

  5. case class Element(selector: String) extends Image with Product with Serializable

    An image created via a portion of the DOM, selected by a CSS selector

  6. trait Gradient extends Image

    An image which is a gradient, either Linear or Radial

  7. case class Hex(s: String) extends Color with Product with Serializable

    A color represented as a hex string e.

    A color represented as a hex string e.g. #fff or #ababab

  8. case class Hsl(h: Int, s: Int, l: Int) extends Color with Product with Serializable

    A color represented as Hue (0-360), Saturation (0-100) and Lightness (0-100)

  9. case class Hsla(h: Int, s: Int, l: Int, a: Double) extends Color with Product with Serializable

    A color represented as Hue (0-360), Saturation (0-100) and Lightness (0-100) as well as an alpha (opacity) from 0.

    A color represented as Hue (0-360), Saturation (0-100) and Lightness (0-100) as well as an alpha (opacity) from 0.0 to 1.0

  10. trait Image extends AnyRef

    The Image CSS data type represents a 2D image.

    The Image CSS data type represents a 2D image. There are two kinds of images in CSS: plain static images, often referenced using a URL, and dynamically-generated images like gradients or representations of parts of the tree.

    MDN

  11. case class Length(number: Double, unit: String) extends NumberUnit with Product with Serializable

    The Length CSS data type denotes distance measurements.

    The Length CSS data type denotes distance measurements. It is a Number immediately followed by a length unit (px, em, pc, in, mm, …). Like for any CSS dimension, there is no space between the unit literal and the number.

  12. case class LinearGradient(direction: String, colors: ColorStop*) extends Gradient with Product with Serializable

    The CSS linear-gradient() function creates an Image which represents a linear gradient of colors.

    The CSS linear-gradient() function creates an Image which represents a linear gradient of colors. The result of this function is an object of the CSS Gradient data type. Like any other gradient, a CSS linear gradient is not a CSS Color but an image with no intrinsic dimensions; that is, it has neither natural or preferred size, nor ratio. Its concrete size will match the one of the element it applies to.

    MDN

  13. trait Position extends AnyRef

  14. case class RadialGradient(sections: Seq[String], colors: ColorStop*) extends Gradient with Product with Serializable

    The CSS radial-gradient() function creates an Image which represents a gradient of colors radiating from an origin, the center of the gradient.

    The CSS radial-gradient() function creates an Image which represents a gradient of colors radiating from an origin, the center of the gradient. The result of this function is an object of the CSS Gradient data type.

    MDN

  15. trait Ratio extends AnyRef

  16. case class Rgb(r: Int, g: Int, b: Int) extends Color with Product with Serializable

    A color represented as its 3 primary components, from 0 to 255

  17. case class Rgba(r: Int, g: Int, b: Int, a: Double) extends Color with Product with Serializable

    A color represented as its 3 primary components, from 0 to 255, as well as an alpha (opacity) from 0.

    A color represented as its 3 primary components, from 0 to 255, as well as an alpha (opacity) from 0.0 to 1.0

  18. case class Time(number: Double, unit: String) extends NumberUnit with Product with Serializable

  19. case class Url(url: String) extends Image with Product with Serializable

    An image found at a particular URL

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  16. def toString(): String

    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped