Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This pattern is used for referencing custom CSS files.

custom css data definition in its default state

How this works

Include custom CSS

Yes - Indicates that custom CSS will be used.

Selecting this option causes the CSS reference group to be displayed.

No - Indicates that custom CSS will not be used.

CSS reference

css reference data definition group

This group contains all the fields necessary for defining a reference to a single CSS file.

You can define multiple CSS references by using the Add new group (plus) button to the right of the group label.

Type

type data definition field

Asset - Indicates the CSS file is located in Cascade as a part of your site.

Selecting this option causes the File field to display.

URL - Indicates the CSS file exists somewhere on the web.

Selecting this option causes the URL, Crossorigin handling, and Integrity fields to display.

File

Only displayed with Type is set to ‘Asset’.

file data definition field

Use the asset chooser to select the desired CSS file in your Cascade site.

URL, Crossorigin handling, and Integrity

Only displayed with Type is set to ‘URL’.

url, crossorigin handling, and integrity data definition fields

Enter the full URL of the CSS file in the URL text field. Some websites also provide integrity and crossorigin attribute values with their hosted CSS files.

<link .... crossorgin=”....” integrity=”....” />

Use the Crossorigin handling and Integrity fields to provide the respective values.

  • No labels