Package

scalacss

Permalink

package scalacss

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. scalacss
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. final case class AV(attr: Attr, value: Value) extends Product with Serializable

    Permalink

    An Attribute-and-Value pair.

  2. final class AVs extends AnyRef

    Permalink

    One or more ordered attributes, each with one or more ordered values.

  3. final class AliasAttr extends Attr

    Permalink
  4. sealed abstract class Attr extends AnyRef

    Permalink

    A style attribute.

    A style attribute.

    Often this will represent a single CSS attribute, eg. "margin-left". This can also represent a high-level attribute and generate multiple CSS keys.

  5. abstract class AttrAliasesAndValueTRules extends Rules

    Permalink
  6. sealed abstract class AttrCmp extends AnyRef

    Permalink
  7. final case class ClassName(value: String) extends Product with Serializable

    Permalink
  8. final case class ClassNameHint(value: String) extends Product with Serializable

    Permalink

    Text to include in generated class names.

    Text to include in generated class names.

    mutable.Register.NameGens can choose to include it in the output class names, or ignore it.

  9. trait ColorOps[Out] extends AnyRef

    Permalink
  10. final case class Compose(rules: Rules) extends Product with Serializable

    Permalink

    Style composition logic.

    Style composition logic.

    This is responsible for merges styles together, and producing warnings. It has the power to perform merges on conflicting CSS values, and selectively ignore merges.

  11. final case class Cond(pseudo: Option[Pseudo], mediaQueries: Vector[Query]) extends ChainOps[Cond] with Product with Serializable

    Permalink

    Condition under which CSS is applicable.

  12. type Css = Stream[CssEntry]

    Permalink

    A stylesheet in its entirety.

    A stylesheet in its entirety. Normally turned into a .css file or a <style> tag.

  13. sealed trait CssEntry extends AnyRef

    Permalink
  14. case class CssFontFace(fontFamily: String, src: NonEmptyVector[String], fontStretch: Option[Value], fontStyle: Option[Value], fontWeight: Option[Value], unicodeRange: Option[UnicodeRange]) extends CssEntry with Product with Serializable

    Permalink
  15. final case class CssKV(key: String, value: String) extends Product with Serializable

    Permalink

    A CSS attribute and its corresponding value.

    A CSS attribute and its corresponding value.

    Example: CssKV("margin-bottom", "12px")

  16. case class CssKeyframesEntry(name: KeyframeAnimationName, frames: Map[KeyframeSelector, StyleStream]) extends CssEntry with Product with Serializable

    Permalink
  17. type CssMediaQuery = String

    Permalink

    A media query in CSS.

    A media query in CSS.

    Examples: "@media screen and (device-aspect-ratio: 16/9)".

  18. type CssMediaQueryO = Option[CssMediaQuery]

    Permalink
  19. type CssSelector = String

    Permalink

    Describes the context of a number of CSS attribute-value pairs.

    Describes the context of a number of CSS attribute-value pairs.

    Examples: "div", ".debug", "h3.bottom", "a:visited".

  20. case class CssStyleEntry(mq: CssMediaQueryO, sel: CssSelector, content: NonEmptyVector[CssKV]) extends CssEntry with Product with Serializable

    Permalink
  21. trait DefaultImports extends AnyRef

    Permalink
  22. trait Defaults extends IDefaults

    Permalink
  23. trait DevDefaults extends IDefaults

    Permalink
  24. trait Domain[A] extends AnyRef

    Permalink
  25. abstract class DslBase extends AttrAliasesAndValueTRules with TypedLiteralAliases with ColorOps[ValueT[Color]]

    Permalink
  26. final case class Env(platform: Platform[Option], media: Media[Option]) extends Product with Serializable

    Permalink
  27. final case class FontFace(fontFamily: String, src: NonEmptyVector[String], fontStretchValue: Option[Value] = None, fontStyleValue: Option[Value] = None, fontWeightValue: Option[Value] = None, unicodeRangeValue: Option[UnicodeRange] = None) extends Product with Serializable

    Permalink

    Font face declaration

    Font face declaration

    http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp

  28. type FontFaceStream = Stream[CssFontFace]

    Permalink
  29. trait IDefaults extends PlatformDefaults with DefaultImports

    Permalink
  30. type KeyframeAnimationName = ClassName

    Permalink

    Keyframe animations in CSS.

    Keyframe animations in CSS.

    This is the name of a @keyframes group.

  31. type KeyframeSelector = Percentage[Int]

    Permalink
  32. type KeyframeStream = Stream[CssKeyframesEntry]

    Permalink
  33. final case class Keyframes(name: KeyframeAnimationName, frames: Seq[(KeyframeSelector, StyleA)]) extends Product with Serializable

    Permalink

    Animation keyframes.

    Animation keyframes.

    name

    Name of animation.

    frames

    Frame definitions.

  34. final case class Length[N](n: N, u: LengthUnit) extends Product with Serializable

    Permalink
  35. sealed abstract class LengthUnit extends AnyRef

    Permalink
  36. abstract class Literal extends AnyRef

    Permalink

    A typed literal.

  37. final class NonEmptyVector[+A] extends AnyRef

    Permalink
  38. trait NonEmptyVectorImplicits0 extends AnyRef

    Permalink
  39. final case class Percentage[N](n: N) extends Product with Serializable

    Permalink
  40. trait PlatformDefaults extends AnyRef

    Permalink
  41. trait ProdDefaults extends IDefaults

    Permalink
  42. sealed abstract class Pseudo extends ChainOps[Pseudo]

    Permalink

    A pseudo-class is used to define a special state of an element.

  43. sealed abstract class Pseudo1 extends Pseudo

    Permalink

    A single Pseudo instance.

    A single Pseudo instance. Not a composite.

    (Note: Not may have a nested value but is not a composite.

  44. sealed class PseudoType extends AnyRef

    Permalink

    http://www.w3.org/TR/selectors/#selector-syntax

  45. final case class Ratio(x: Int, y: Int) extends Product with Serializable

    Permalink
  46. final class RealAttr extends Attr

    Permalink
  47. trait Renderer[Out] extends AnyRef

    Permalink

    Render Css, an internal representation of CSS, into a different format; usually real CSS text.

  48. final case class Resolution[N](n: N, u: ResolutionUnit) extends Product with Serializable

    Permalink
  49. sealed abstract class ResolutionUnit extends AnyRef

    Permalink
  50. sealed trait Style extends AnyRef

    Permalink

    A high-level style, that can describe a subject and its children in a variety of conditions.

    A high-level style, that can describe a subject and its children in a variety of conditions.

    Types

  51. sealed abstract class Style1 extends Style

    Permalink

    A single style that applied to a single subject.

  52. final case class StyleA(className: ClassName, addClassNames: Vector[ClassName], style: StyleS) extends Product with Serializable

    Permalink

    Applicable style.

    Applicable style.

    A style that needs no more processing and can be applied to some target.

    addClassNames

    Additional class names that the style has requested be appended. Allows ScalaCSS styles to use classname-based CSS libraries like Bootstrap.

  53. final class StyleF[I] extends Style1

    Permalink

    A function to a style.

    A function to a style. A style that depends on input provided when used.

    I

    Input required by the style.

  54. trait StyleLookup[I] extends AnyRef

    Permalink
  55. trait StyleLookupLowPri extends AnyRef

    Permalink
  56. final case class StyleS(data: Map[Cond, AVs], unsafeExts: UnsafeExts, className: Option[ClassName], addClassNames: Vector[ClassName], warnings: Vector[Warning]) extends Style1 with Product with Serializable

    Permalink

    A static style.

    A static style.

    className

    Manually specifies this style's class name. By default it is automatically generated.

    addClassNames

    Additional class names to be appended to the resulting StyleA. Allows ScalaCSS styles to use classname-based CSS libraries like Bootstrap.

  57. type StyleStream = Stream[CssStyleEntry]

    Permalink
  58. trait ToAV extends AnyRef

    Permalink
  59. class Transform extends AnyRef

    Permalink

    Transforms key-values into different and/or more key-values.

    Transforms key-values into different and/or more key-values.

    Generally used to apply browser prefixes. For example, to turn border-radius: 1em/5em; into

    -moz-border-radius: 1em/5em;
    -webkit-border-radius: 1em/5em;
    border-radius: 1em/5em;
  60. trait TypedLiteralAliases extends AnyRef

    Permalink

    Gets merged into Dsl.

  61. case class UnicodeRange(from: Int, to: Int) extends Product with Serializable

    Permalink

    Defines the range of unicode characters the font face supports.

  62. type Value = String

    Permalink

    A CSS value, like "none", "solid 3px black".

  63. final case class ValueT[T <: ValueClass](value: Value) extends Product with Serializable

    Permalink

    A CSS value that is valid for some context T.

  64. final case class Warning(cond: Cond, msg: WarningMsg) extends Product with Serializable

    Permalink
  65. type WarningMsg = String

    Permalink

Value Members

  1. object AVs

    Permalink
  2. object Attr

    Permalink
  3. object AttrCmp

    Permalink
  4. object Attrs

    Permalink
  5. object CanIUse

    Permalink
  6. object CanIUse2

    Permalink

    Derivations of the raw data in CanIUse.

  7. object Color extends ColorOps[ValueT[Color]]

    Permalink
  8. object Compose extends Serializable

    Permalink
  9. object Cond extends Serializable

    Permalink
  10. object Css

    Permalink
  11. object CssFontFace extends Serializable

    Permalink
  12. object CssKV extends Serializable

    Permalink
  13. object CssKeyframesEntry extends Serializable

    Permalink
  14. object CssStyleEntry extends Serializable

    Permalink
  15. object Defaults extends Defaults

    Permalink

    Default config.

    Default config.

    Use the scalac -Xelide-below flag to switch from development- to production-mode.

  16. object DevDefaults extends DevDefaults

    Permalink

    Development-mode defaults.

    Development-mode defaults. Pretty names, pretty CSS, warnings.

  17. object Domain

    Permalink
  18. object Dsl extends DslBase

    Permalink
  19. object DslBase

    Permalink
  20. object DslMacros

    Permalink
  21. object Env extends Serializable

    Permalink
  22. object FontFace extends Serializable

    Permalink
  23. object LengthUnit

    Permalink
  24. object Literal extends TypedLiteralAliases

    Permalink

    Most literals here are just strings.

    Most literals here are just strings. Type-safety is usually provided by the TypedAttr methods.

    In some cases literals need to be typed to be part of a ValueClass so that they can be used as typed args. Eg. auto in margin(12 px, auto).

    For that reason exists the dichotomy between Literal with its untyped Values, and Literal.Typed with its subclassed Literals.

  25. object Macros

    Permalink
  26. object Media

    Permalink
  27. object NonEmptyVector extends NonEmptyVectorImplicits0

    Permalink
  28. object ProdDefaults extends ProdDefaults

    Permalink

    Production-mode defaults.

    Production-mode defaults. Minimised CSS, no warnings.

  29. object Pseudo

    Permalink
  30. object PseudoAttr extends PseudoType with Product with Serializable

    Permalink
  31. object PseudoClass extends PseudoType with Product with Serializable

    Permalink
  32. object PseudoElement extends PseudoType with Product with Serializable

    Permalink
  33. object PseudoType

    Permalink
  34. object Ratio extends Serializable

    Permalink
  35. object ResolutionUnit

    Permalink
  36. object StringRenderer

    Permalink
  37. object Style

    Permalink
  38. object StyleF

    Permalink
  39. object StyleLookup extends StyleLookupLowPri

    Permalink
  40. object StyleS extends Serializable

    Permalink
  41. object Transform

    Permalink
  42. object ValueT extends Serializable

    Permalink
  43. implicit def classNameEquality: Equal[ClassName]

    Permalink
  44. implicit val cssEquality: Equal[Css]

    Permalink
  45. package ext

    Permalink
  46. package js

    Permalink
  47. package mutable

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped