24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Author</strong> Developer Guide | 239background-color:attr(bg_color, color);font-size:attr(font_size, em);margin:attr(space, em);}The document is rendered as:Styling Elements from other NamespaceIn the CSS Level 1, 2, and 2.1 there is no way to specify if an element X from the namespace Y should be presenteddifferently from the element X from the namespace Z. In the upcoming CSS Level 3, it is possible to differentiateelements by their namespaces. <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> <strong>Author</strong> supports this CSS Level 3 functionality. For moreinformation see the Namespace Selectors section.To match the def element its namespace will be declared, bind it to the abs prefix, and then write a CSS rule:@namespace abs "http://www.oxygenxml.com/sample/documentation/abstracts";abs|def{font-family:monospace;font-size:smaller;}abs|def:before{content:"Definition:";color:gray;}Additional Custom Selectors<strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> provides support for selecting additional types of nodes. These custom selectors apply to: document,doctype sections, processing-instructions, comments, CDATA sections, reference sections, and entities.Note: The custom selectors are presented in the default CSS for <strong>Author</strong> mode and all of their properties aremarked with an !important flag. For this reason, you have to set the !important flag on each property of thecustom selectors from your CSS to be applicable.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!