scalatags

stylesheet

package stylesheet

Visibility
  1. Public
  2. All

Type Members

  1. trait CascadingStyleSheet extends StyleSheet with StyleSheetTags

    A StyleSheet which lets you define cascading tag/class selectors.

    A StyleSheet which lets you define cascading tag/class selectors. Separate from StyleSheet because you almost never need these things, so it's good to make it explicit when you do to prevent accidental cascading.

  2. case class Cls(name: String, pseudoSelectors: Seq[String], args: Seq[StyleSheetFrag]) extends Product with Serializable

    A rendered class; both the class name (used when injected into Scalatags fragments) and the structure (used when injected into further class definitions)

  3. trait PseudoSelectors[T] extends AnyRef

    Provides all the CSS pseudo-selectors as strongly-typed properties when mixed in.

    Provides all the CSS pseudo-selectors as strongly-typed properties when mixed in. The only requirement is that you define extend to tell it what each of these properties returns

  4. class Selector extends PseudoSelectors[Selector]

    Lets you chain pseudo-selectors e.g.

    Lets you chain pseudo-selectors e.g. hover.visited and have it properly translate into :hover:visited when rendered.

  5. trait StyleSheet extends AnyRef

    Inherit from me to define a stylesheet which you can use to define styles which get serialized to a String.

    Inherit from me to define a stylesheet which you can use to define styles which get serialized to a String. Does not allow the use of cascading tag/class selectors; use CascadingStyleSheet for that.

  6. trait StyleSheetFrag extends AnyRef

    Something which can be used as part of a StyleSheet

  7. trait StyleSheetTags extends AnyRef

    Provides a strongly-typed list of all the HTML tags that can be used as Selectors.

  8. case class StyleTree(selectors: Seq[String], styles: SortedMap[String, String], children: Seq[StyleTree]) extends Product with Serializable

    A structure representing a set of CSS rules which has not been rendered into a Cls.

Value Members

  1. object Selector

  2. object Sheet

    Wraps a type T, so we can demand an implicit Mangled[T] in a way that triggers a macro to instantiate that type.

  3. object StyleSheetFrag

  4. object StyleTree extends Serializable

Ungrouped