-
Notifications
You must be signed in to change notification settings - Fork 30
InlineStyle Service and InlineStyle Workers
that service is an implementation of Abstract Worker Manager and allows one component to get inline style that would be contextual to its usage. You should really consider using classes first, and leave styling to CSS, but in case of combinatory explosion of styling possibilities, this allows you clean management of a <style>
tag next to your component.
will look at component's specific CA Config for worker sequence, and if those workers are registered they will be executed twice:
- once to get specific css declarations specific to the actual breakpoint (e.g.
color: white;
), - once to get specific css rules specific to a breakpoint (e.g.
p { color: white;}
)
sets background-image
, background-site
, background-position
, background-color
rules (see unit test for all details around usage)
sets border
and border-radius
rules (see unit test for all details around usage)
sets color
rule (see unit test for usage)
sets box-shadow
rule (see unit test for usage)