Inline
An inline stylesheet has the following properties:
- Intent is to create styles that can be applied directly to HTML in Scala/Scala.JS.
- Each style is stored in a
val
of typeStyleA
. - Styles are applied to HTML by setting the
class
attribute of the HTML to the class(es) in aStyleA
. - Style class names / CSS selectors are automatically generated.
- All style types (StyleS, StyleF) are usable.
Type members
Classlikes
Value members
Concrete methods
@nowarn("cat=unused")
Objects in Scala are lazy. If you put styles in inner objects you need to make sure they're initialised before your styles are rendered. To do so, call this at the end of your stylesheet with one style from each inner object.
Objects in Scala are lazy. If you put styles in inner objects you need to make sure they're initialised before your styles are rendered. To do so, call this at the end of your stylesheet with one style from each inner object.
Inherited methods
Render registered styles into some format, usually a String of plain CSS.
Render registered styles into some format, usually a String of plain CSS.
- Value Params
- env
The target environment in which the styles are to be used. Allows customisation of required CSS.
- Inherited from
- Base