Adjusts the sizes of all hylo-icons on the page. The icon has to have set either the 'width' property, 'height' property or both to be adjusted.

If you don't want an icon to be adjusted, give it the class "hylo-no-size-adjustment".

Properties

Methods

Properties

adjustments: string

A JSON string defining the adjustment.

Pair a class, which has to be given to the root element (<html>), with a multiplier. The multiplier can be a number or a css variable which needs to be defined also for the root element.

The structure is as follows:

 {
"document-root-class-2": 2,
"document-root-class-3": "--css-variable"
}

Methods

  • Updates the icon adjustments according to the class/multiplier pairs given in the adjustments property.

    Needs to be called when the corresponding document root class changed.

    Returns Promise<void>

Generated using TypeDoc