Packages

  • package root
    Definition Classes
    root
  • package scalacss
    Definition Classes
    root
  • package internal
    Definition Classes
    scalacss
  • package mutable
    Definition Classes
    internal
  • object StyleSheet

    Mutable StyleSheets provide a context in which many styles can be created using a DSL.

    Mutable StyleSheets provide a context in which many styles can be created using a DSL.

    They are mutable because they maintain a list of registered styles, meaning you can declare each style one at a time instead of having to create a list of styles in a single expression.

    Each style itself is immutable.

    Definition Classes
    mutable
  • Base
  • Inline
  • Standalone

abstract class Inline extends Base with Mixin

An inline stylesheet has the following properties:

  • Intent is to create styles that can be applied directly to HTML in Scala/Scala.JS.
  • Each style is stored in a val of type StyleA.
  • Styles are applied to HTML by setting the class attribute of the HTML to the class(es) in a StyleA.
  • Style class names / CSS selectors are automatically generated.
  • All style types (StyleS, StyleF) are usable.
Linear Supertypes
Mixin, Base, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Inline
  2. Mixin
  3. Base
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Inline()(implicit cssRegister: Register)

Type Members

  1. class MFontFace extends DslMacros.MFontFace
    Attributes
    protected
  2. class MKStyle extends DslMacros.MStyle
    Attributes
    protected
  3. class MKeyframes extends DslMacros.MKeyframes
    Attributes
    protected
  4. class MStyle extends DslMacros.MStyle
    Attributes
    protected
  5. class MStyleF extends DslMacros.MStyleF
    Attributes
    protected

Value Members

  1. object dsl extends DslBase
    Attributes
    protected
    Definition Classes
    Base
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def &: Cond
    Attributes
    protected
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def __macroFontFace: MFontFace
    Attributes
    protected
    Definition Classes
    InlineMixin
  7. def __macroKeyframe: MKStyle
    Attributes
    protected
    Definition Classes
    InlineMixin
  8. def __macroKeyframes(name: String): MKeyframes
    Attributes
    protected
    Definition Classes
    InlineMixin
  9. def __macroStyle(name: String): MStyle
    Attributes
    protected
    Definition Classes
    InlineMixin
  10. def __macroStyleF(name: String): MStyleF
    Attributes
    protected
    Definition Classes
    InlineMixin
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. implicit val classNameHint: ClassNameHint
    Attributes
    protected
    Definition Classes
    Base
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  14. final def css(implicit env: Env): Css
    Definition Classes
    Base
  15. implicit val cssRegister: Register
    Attributes
    protected
    Definition Classes
    InlineBase
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. final def fontFace: DslMacros.MFontFace
    Attributes
    protected
    Definition Classes
    Mixin
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def initInnerObjects(a: StyleA*): Unit

    Objects in Scala are lazy.

    Objects in Scala are lazy. If you put styles in inner objects you need to make sure they're initialised before your styles are rendered. To do so, call this at the end of your stylesheet with one style from each inner object.

    Attributes
    protected
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def keyframe: DslMacros.MStyle
    Attributes
    protected
    Definition Classes
    Mixin
  24. final macro def keyframes: DslMacros.MKeyframes
    Attributes
    protected
    Definition Classes
    Mixin
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. final def render[Out](implicit r: Renderer[Out], env: Env): Out

    Render registered styles into some format, usually a String of plain CSS.

    Render registered styles into some format, usually a String of plain CSS.

    env

    The target environment in which the styles are to be used. Allows customisation of required CSS.

    Definition Classes
    Base
  29. final def renderA[Out](implicit r: Renderer[Out]): Out

    Render registered styles into some format, usually a String of plain CSS.

    Render registered styles into some format, usually a String of plain CSS.

    The A suffix stands for absolute, in that it doesn't perform any environment customisation, and as such an Env isn't required.

    Definition Classes
    Base
  30. final macro def style: DslMacros.MStyle
    Attributes
    protected
    Definition Classes
    Mixin
  31. final macro def styleF: DslMacros.MStyleF
    Attributes
    protected
    Definition Classes
    Mixin
  32. final def styles: Vector[StyleA]
    Definition Classes
    Base
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Mixin

Inherited from Base

Inherited from AnyRef

Inherited from Any

Ungrouped