An inline stylesheet has the following properties:
An inline stylesheet has the following properties:
val
of type StyleA
.class
attribute of the HTML to the class(es) in a StyleA
.A standalone stylesheet has the following properties:
A standalone stylesheet has the following properties:
Unit
.
Mutable StyleSheets provide a context in which many styles can be created using a DSL.
They are mutable because they maintain a list of registered styles, meaning you can declare each style one at a time instead of having to create a list of styles in a single expression.
Each style itself is immutable.