src/lib/services/sz-css-class.service.ts
A service that provides the capability to "dynamically" add CSS classes to the head of the document or app. Also can dynamically set css vars on the document body.
Methods |
|
constructor()
|
Public removeStyle |
removeStyle(selectorText: string, styleName?: string)
|
dynamically remove a css class by selector and
Returns :
void
|
Public setStyle |
setStyle(selectorText: string, styleName: string, value: string)
|
dynamically set/create a css class and it's values
Returns :
void
|
Public setVariable |
setVariable(variableName: string, value: string)
|
dynamically set a css variable on the body element
Returns :
void
|