package internal
- Alphabetic
- By Inheritance
- internal
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
AV(attr: Attr, value: Value) extends Product with Serializable
An Attribute-and-Value pair.
-
final
class
AVs extends AnyRef
One or more ordered attributes, each with one or more ordered values.
- final class AliasAttr extends Attr
-
sealed abstract
class
Attr extends AnyRef
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.
- abstract class AttrAliasesAndValueTRules extends Rules
- sealed abstract class AttrCmp extends AnyRef
- final case class ClassName(value: String) extends Product with Serializable
-
final
case class
ClassNameHint(value: String) extends Product with Serializable
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.
- trait ColorOps[Out] extends AnyRef
-
final
case class
Compose(rules: Rules) extends Product with Serializable
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.
-
final
case class
Cond(pseudo: Option[Pseudo], mediaQueries: Vector[Query]) extends ChainOps[Cond] with Product with Serializable
Condition under which CSS is applicable.
-
type
Css = Vector[CssEntry]
A stylesheet in its entirety.
A stylesheet in its entirety. Normally turned into a
.css
file or a<style>
tag. - sealed trait CssEntry extends AnyRef
-
final
case class
CssKV(key: String, value: String) extends Product with Serializable
A CSS attribute and its corresponding value.
A CSS attribute and its corresponding value.
Example:
CssKV("margin-bottom", "12px")
-
type
CssMediaQuery = String
A media query in CSS.
A media query in CSS.
Examples:
"@media screen and (device-aspect-ratio: 16/9)"
. - type CssMediaQueryO = Option[CssMediaQuery]
-
type
CssSelector = String
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"
. - trait Domain[A] extends AnyRef
- abstract class DslBase extends AttrAliasesAndValueTRules with TypedLiteralAliases with ColorOps[ValueT[Color]]
- final case class Env(platform: Platform[Option], media: Media[Option]) extends Product with Serializable
-
final
case class
FontFace[FF](fontFamily: FF, src: NonEmptyVector[String], fontStretchValue: Option[Value] = None, fontStyleValue: Option[Value] = None, fontWeightValue: Option[Value] = None, unicodeRangeValue: Option[UnicodeRange] = None) extends Product with Serializable
Font face declaration
Font face declaration
http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp
- type FontFaceStream = List[internal.CssEntry.FontFace]
-
type
KeyframeAnimationName = ClassName
Keyframe animations in CSS.
Keyframe animations in CSS.
This is the name of a
@keyframes
group. - type KeyframeSelector = Percentage[_]
- type KeyframeStream = List[internal.CssEntry.Keyframes]
-
final
case class
Keyframes(name: KeyframeAnimationName, frames: Seq[(KeyframeSelector, StyleA)]) extends Product with Serializable
Animation keyframes.
Animation keyframes.
- name
Name of animation.
- frames
Frame definitions.
- final case class Length[N](n: N, u: LengthUnit) extends Product with Serializable
- sealed abstract class LengthUnit extends AnyRef
-
abstract
class
Literal extends AnyRef
A typed literal.
- final class Need[+A] extends AnyRef
- final class NonEmptyVector[+A] extends AnyRef
- final case class Percentage[N](n: N) extends Product with Serializable
-
sealed abstract
class
Pseudo extends ChainOps[Pseudo]
A pseudo-class is used to define a special state of an element.
-
sealed abstract
class
PseudoType extends AnyRef
http://www.w3.org/TR/selectors/#selector-syntax
- final case class Ratio(x: Int, y: Int) extends Product with Serializable
- final class RealAttr extends Attr
-
trait
Renderer[+Out] extends AnyRef
Render Css, an internal representation of CSS, into a different format; usually real CSS text.
- final case class Resolution[N](n: N, u: ResolutionUnit) extends Product with Serializable
- sealed abstract class ResolutionUnit extends AnyRef
-
sealed
trait
Style extends AnyRef
A high-level style, that can describe a subject and its children in a variety of conditions.
-
sealed abstract
class
Style1 extends Style
A single style that applied to a single subject.
-
final
case class
StyleA(className: ClassName, addClassNames: Vector[ClassName], style: StyleS) extends Product with Serializable
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.
-
final
class
StyleF[I] extends Style1
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.
- trait StyleLookup[I] extends AnyRef
-
final
case class
StyleS(data: ListMap[Cond, AVs], unsafeExts: UnsafeExts, className: Option[ClassName], addClassNames: Vector[ClassName], warnings: Vector[Warning]) extends Style1 with Product with Serializable
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.
- type StyleStream = Vector[internal.CssEntry.Style]
- trait ToAV extends AnyRef
-
class
Transform extends AnyRef
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;
-
trait
TypedLiteralAliases extends AnyRef
Gets merged into Dsl.
-
case class
UnicodeRange(from: Int, to: Int) extends Product with Serializable
Defines the range of unicode characters the font face supports.
-
type
Value = String
A CSS value, like
"none"
,"solid 3px black"
. -
final
case class
ValueT[T <: ValueClass](value: Value) extends Product with Serializable
A CSS value that is valid for some context
T
. - final case class Warning(cond: Cond, msg: WarningMsg) extends Product with Serializable
- type WarningMsg = String
Value Members
-
def
Vector1[A](a: A): Vector[A]
Faster than Vector(a)
- def memo[A, B](f: (A) ⇒ B)(implicit arg0: UnivEq[A]): (A) ⇒ B
- def optionAppend[A](oa: Option[A], ob: Option[A])(f: (A, A) ⇒ A): Option[A]
- implicit def univEqCss: UnivEq[Css]
- object AV extends Serializable
- object AVs
- object Attr
- object AttrCmp
- object Attrs
- object CanIUse
-
object
CanIUse2
Derivations of the raw data in CanIUse.
- object ClassName extends Serializable
- object Color extends ColorOps[ValueT[Color]]
- object Compose extends Serializable
- object Cond extends Serializable
- object Css
- object CssEntry
- object CssKV extends Serializable
- object Domain
- object Dsl extends DslBase
- object DslBase
- object DslMacros
- object Env extends Serializable
- object FontFace extends Serializable
- object Length extends Serializable
- object LengthUnit
-
object
Literal extends TypedLiteralAliases
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
inmargin(12 px, auto)
.For that reason exists the dichotomy between Literal with its untyped Values, and Literal.Typed with its subclassed Literals.
- object Macros
- object Media
- object Need
- object NonEmptyVector
- object Percentage extends Serializable
- object Platform
- object Pseudo
- object PseudoType
- object Ratio extends Serializable
- object ResolutionUnit
- object StringRenderer
- object Style
- object StyleF
- object StyleLookup
- object StyleS extends Serializable
- object Transform
- object UnicodeRange extends Serializable
- object ValueT extends Serializable