Shared CSS Styles

Description

CSS styles that are shared across all style sheets can be defined as "Shared styles". Shared styles can be added to Alpha Anywhere at the system level or project level.

Discussion

Shared styles are stored in the following locations:

  • [Executable Folder]\css\_sharedStyles

    This is where system level shared styles are defined. These styles are typically defined by Alpha Software, not the developer.

  • [Project Folder]\css\_sharedStyles

    This is where project level shared styles are defined.

The shared styles are defined in a file called style.sass in the _sharedStyles folder. The shared styles can include SASS definitions.

For example, if you define a CSS selector called .style1 in the [Project Folder]\css\_sharedStyles\style.sass file, this selector will be available in all components, regardless of what style sheet the component uses.