All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.raquo.laminar.defs.styles.units.Time.scala Maven / Gradle / Ivy

The newest version!
package com.raquo.laminar.defs.styles.units

import com.raquo.laminar.keys.DerivedStyleBuilder

/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/time */
trait Time[DSP[_]] extends Calc[DSP] { this: DerivedStyleBuilder[_, DSP] =>

  /** Seconds */
  lazy val s: DSP[Double] = derivedStyle(n => s"${n}s")

  /** Milliseconds */
  lazy val ms: DSP[Double] = derivedStyle(n => s"${n}ms")
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy