Delete a Style Class
To delete a Style Class, right-click on the Style Class name in the Project Browser, then select Delete. When a Style Class is deleted, it is no longer applied to any components it was previously applied to. The component returns to the default style settings with the exception of any inline styles. Inline styles will remain applied to the component.
Rename a Style Class
To rename a Style Class, right-click on the Style Class name in the Project Browser, then select Rename.
Protect a Style Class
You can lock a Style Class from inside Designer by opening the Project Browser, right-clicking on the Style Class, and selecting the Protect option to protect it. Once it's protected, it cannot be changed except by someone that has the permission to unprotect it and modify it. For more information on protecting project resources see Project Security in the Designer.
Multiple Style Classes
Perspective allows you to select more than one Style Class for a component. Multiple Style Classes to a component in alphabetical order. Style Classes further along in the alphabet will override earlier Style Classes.
In the example below, Bravo Style Class is blue, bold, italic, and 13px text with some borders. Charlie Style Class is red, bold, and 16px text.
When both styles are applied together, the color and text size in Charlie Style Class override Bravo. However, the italics and borders from Bravo remain because Charlie does not have those properties set.
You can also apply inline styles to components that have a Style Class. The inline style properties override any properties in the Style Class. For example, if the Style Class has a properties of 22pt bold text with a color of blue, but there is an inline style property of 18pt bold text with a color of orange, the component will receive the inline style properties. In this example, we applied the Alpha style to a label and the applied inline styles of a bottom and right border.
State of the component. Options are as follows:
If checked, the Element State can be animated. The animate options are as follows:
Media Query Settings
|min-width||Sets the minimum width in pixels. If the viewport is larger than the specified width (in pixels), this rule will be applied. If the viewport is smaller than the minimum width, this rule has no effect. For example, a setting of min-width 361 means this rule is active if the screen is at least 361 pixels wide.|
|max-width||Sets the maximum width in pixels . If the viewport is smaller than the maximum width, it will automatically change the height of the element. If the viewport is larger than the maximum width, rule has no effect. For example, a setting of max-width 360 means this rule is active if the screen is at most 360 pixels wide or smaller.|
|orientation||This rule will apply based on whether the browser window is in landscape mode (that is, its width is greater than its height) or portrait mode (its height is greater than its width). Options are portrait or landscape.|
|min-aspect-ratio||Sets a minimum width-to-height aspect ratio. Enter value as a ratio or width-to-height, for example 8/5.|
|max-aspect-ratio||Sets a maximum width-to-height aspect ratio. Enter value as a ratio or width-to-height, for example 8/5. .|
Applies the style settings when the device supports hovering. Options are hover or none.
The style settings to apply during the media query. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous.