Handling CSS ImportsEdit online
When a CSS document contains imports to other CSS documents, the references are also passed through the XML Catalog URI mappings to determine an indirect CSS referenced location.
Example: CSS Import
@import "http://host/path/to/location/custom.css";
<uri name="http://host/path/to/location/custom.css" uri="path/to/custom.css"/>
Adding a Custom Default CSS for Every XML Document
<uri name="http://www.oxygenxml.com/extensions/author/css/userCustom.css" uri="path/to/custom.css"/>
This extra mapped CSS location will be parsed every time the application processes the CSS stylesheets used to render the opened XML document in the visual Author editing mode. This allows your custom CSS to be used without the need to modify all other CSS stylesheets contributed in the document type configuration.
Editor Variables in CSS Imports
You can use various editor variables in CSS imports. When editing an XML document with an associated CSS in Author mode, the editor variables will be expanded and resolved.
Example: Editor Variable in a CSS Import
@import "${framework(DITA)}/custom.css";
is resolved in the DITA framework folder where the custom.css is placed.