Skin inheritance
Skin inheritance allows formats and mixins of a parent skin to be inherited by a dependent skin. The formats inherited by the dependent skin do not have to be explicitly defined in the dependent skin but will defined by formats in the parent skin. When a format on the parent skin is modified, the dependent skin automatically inherits those changes unless the format is overridden in the dependent skin.
Style sheets included in parent skins are also inherited, with the dependent skin's style sheet taking priority. The list below provides an overview of the tasks related to skin inheritance.
Create a new dependent skin
When you create a new skin, you can optionally make that skin a dependent of a parent skin.
Add a parent to a skin
Adding a parent to an existing skin will cause the dependent skin to inherit formats from the parent.
Override an inherited style
If necessary, an inherited format can be overridden in the dependent skin.
Revert a customized format to an inherited style
If you override a format, you can revert those changes in the dependent skin back to the format inherited from the parent.
View the inherited skin stack.
The Inheritance tab displays the names, and order of, the parent and dependent skins.
- Creating a new dependent skin
When you create a new skin, you can add a parent skin. The new skin becomes dependent on the parent and inherits the parent's formats and mixins. If the parent skin is changed, those changes are inherited by the dependent skin.
- Adding a parent skin
You can add a parent to an existing skin. When you add a parent to a skin, the skin becomes dependent on the parent and inherits styles and formats from the parent. If the parent skin is changed, those changes are inherited by the dependent skin.
- Overriding an inherited format
You can override inherited formats in a dependent style to make an exception to the inherited styling.
- Reverting an inherited format
If an inherited format is overridden, reverting restores the format to the style inherited from the parent skin.
- Viewing the skin inheritance stack
The Inheritance tab of the Skin rule form lists the names, and the sequence of, the parent and dependent skins.
- Inheritance
The inheritance tab displays the parent styles for the current skin.
- Skin rules
Use the skin to specify the presentation of your content. You can style all presentation elements of your interface in the skin, including typography, borders, backgrounds, layouts, and the placement and alignment of elements.
Previous topic Creating a custom style Next topic Creating a new dependent skin