scalacss.internal
Type members
Classlikes
One or more ordered attributes, each with one or more ordered values.
One or more ordered attributes, each with one or more ordered values.
- Companion
- object
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.
- Value Params
- id
A name by which this attribute can be identified. It is used for attribute equality and describing itself in messages to the developer. It doesn't not appear in output CSS.
- Companion
- object
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.
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.
- Companion
- object
A CSS attribute and its corresponding value.
A CSS attribute and its corresponding value.
Example: CssKV("margin-bottom", "12px")
- Companion
- object
- Companion
- object
Font face declaration
Font face declaration
- Companion
- object
Animation keyframes.
Animation keyframes.
- Value Params
- frames
Frame definitions.
- name
Name of animation.
Most literals here are just strings. Type-safety is usually provided by the TypedAttr methods.
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.
- Companion
- class
A pseudo-class is used to define a special state of an element.
A pseudo-class is used to define a special state of an element.
- Companion
- object
Applicable style.
Applicable style.
A style that needs no more processing and can be applied to some target.
- Value Params
- addClassNames
Additional class names that the style has requested be appended. Allows ScalaCSS styles to use classname-based CSS libraries like Bootstrap.
A function to a style. A style that depends on input provided when used.
A function to a style. A style that depends on input provided when used.
- Type Params
- I
Input required by the style.
- Value Params
- domain
The function domain. All possible (or legal) inputs to this function.
- Companion
- object
A static style.
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;
- Companion
- object
Defines the range of unicode characters the font face supports.
Defines the range of unicode characters the font face supports.
- Companion
- object
A CSS value that is valid for some context T
.
A CSS value that is valid for some context T
.
- Companion
- object
Types
A stylesheet in its entirety. Normally turned into a .css
file or a <style>
tag.
A stylesheet in its entirety. Normally turned into a .css
file or a <style>
tag.
A media query in CSS.
A media query in CSS.
Examples: "@media screen and (device-aspect-ratio: 16/9)"
.
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"
.