scalacss
A composite style. Two more or more styles that must be applied as a whole in order to be successful.
This demands that anyone using this style:
2. Acknowledge the purpose of each sub-style (and thus not accept them in the wrong order and apply them to the wrong targets).
Before styles can be composed, they must be annotated with a name. Do so like avatarStyle.named('avatar). Named styles can then be composed using :*:.
avatarStyle.named('avatar)
:*:
val profileStyle: StyleC = titleStyle.named('title) :*: avatarStyle.named('avatar) :*: buttonStyle.named('btn)
A composite style. Two more or more styles that must be applied as a whole in order to be successful.
This demands that anyone using this style:
2. Acknowledge the purpose of each sub-style (and thus not accept them in the wrong order and apply them to the wrong targets).
Before styles can be composed, they must be annotated with a name. Do so like
avatarStyle.named('avatar)
. Named styles can then be composed using:*:
.