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 Standalone extends Base

A standalone stylesheet has the following properties:

  • Intent is to generate static CSS for external consumption.
  • It is comparable to SCSS/LESS.
  • Styles go into a pool of registered styles when they are declared and return Unit.
  • Style class names / CSS selectors must be provided.
  • Only static styles (StyleS) are usable.
Linear Supertypes
Base, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Standalone
  2. Base
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

Type Members

  1. final class NestedStringOps extends ChainOps[NestedStringOps]
    Attributes
    protected
  2. implicit final class RootStringOps extends ChainOps[RootStringOps]
    Attributes
    protected
    Annotations
    @inline()

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 &(sel: CssSelector): NestedStringOps

    Create a child style.

    Create a child style.

    Attributes
    protected
    Annotations
    @inline()
  5. final def &: Cond
    Attributes
    protected
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. implicit val classNameHint: ClassNameHint
    Attributes
    protected
    Definition Classes
    Base
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def css(implicit env: Env): Css
    Definition Classes
    Base
  11. implicit val cssRegister: Register
    Attributes
    protected
    Definition Classes
    StandaloneBase
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. 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
  22. 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
  23. final def styles: Vector[StyleA]
    Definition Classes
    Base
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Base

Inherited from AnyRef

Inherited from Any

Ungrouped