[oXygen-user] Question about frameworks and CSS

Oxygen XML Editor Support (Radu Coravu) support at oxygenxml.com
Thu Mar 29 06:33:57 CDT 2018


Hi Kristen,

When you edit a framework configuration in the "Document Type 
Association" preferences page in the "CSS" tab and you add an additional 
CSS you have three settings there:

1) Configure a reference to the CSS.
2) Set a title for the CSS
3) Set it as "Alternate" or not.

If you do not set a title for it, the CSS will be contributed by default 
to all the existing styled. So if as an example I create a CSS like this:

> * {
>     color:red;
> }

and I refer to it as an additional CSS, without a title, when I open any 
DITA topic I will have red foreground. And the "Styles" drop down will 
not contain the possibility to uncheck this.

If you set the title for the referenced CSS, it will start to appear in 
the "Styles" drop-down.
You now have the option to specify it as "Alternate" or not.
If you do not specify it as "Alternate", it will be considered as a main 
CSS, so selecting it in the "Styles" drop down will use only the styles 
specified in it.

If you specify it as "Alternate", checking it in the "Styles" drop-down 
will use it in addition to all other CSSs checked there.
For example an alternate CSS in DITA that we use by default is this one:

OXYGEN_INSTALL_DIR\frameworks\dita\css\edit\alternate-full-width-layout.css

When checked in the "Styles" drop-down it provides only two CSS 
selectors which are merged with all the other DITA selectors given by 
the main non-alternate CSS.

More about the CSS drop-down:

https://www.oxygenxml.com/doc/versions/19.1/ug-editor/topics/selecting-combining-multiple-css-styles.html

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

On 3/28/2018 5:34 PM, Stefan Eike wrote:
> Hi Kris,
>
> you define specific selectors. You can also select based on the root
> element name, for example. oXygen XML gracefully remembers your selected
> styles. Once you have chosen a style, oXygen will use it for the next
> file, if the style is available for it. Its a cool feature. :)
>
>
>
>> Kristen James Eberlein hat am 28. März 2018 um 15:17 geschrieben:
>>
>>
>> When I create a framework and associate custom CSS with specific DTDs,
>> does that simply mean that the styles are available in the Styles view?
>> Is there a way to set them as the default CSS that is used when oXygen
>> renders the topic type?
>>
>> --
>> Best,
>> Kris
>>
>> Kristen James Eberlein
>> Chair, OASIS DITA Technical Committee
>> Principal consultant, Eberlein Consulting
>> www.eberleinconsulting.com
>> +1 919 622-1501; kriseberlein (skype)
>>
>> _______________________________________________
>> oXygen-user mailing list
>> oXygen-user at oxygenxml.com <mailto:oXygen-user at oxygenxml.com>
>> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>


More information about the oXygen-user mailing list