Use of alternate CSS available in Oxygen Web Author

Oxygen general issues.
hatchjk
Posts: 16
Joined: Tue Nov 13, 2007 6:02 pm

Use of alternate CSS available in Oxygen Web Author

Post by hatchjk »

Is the use of alternate CSS available in Oxygen Web Author? If so, could someone point me to documentation describing how to implement?
Gabriel Titerlea
Site Admin
Posts: 95
Joined: Thu Jun 09, 2016 2:01 pm

Re: Use of alternate CSS available in Oxygen Web Author

Post by Gabriel Titerlea »

Yes, alternate CSS is available. You only need to add the alternate stylesheet to the framework [1] you are using or to an extension [2] of the framework.
After that, add the modified framework to the web author [3][4].

You can switch the active style-sheet by passing in a stylesheet-titles url parameter which has a list of stylesheets separated by commas as value:

Code: Select all

&stylesheet-titles=Cursive,%2B%20Inline%20actions,Alternate%20Style
Note: The list of styles must be URL-encoded.

[1] - https://www.oxygenxml.com/doc/versions/ ... ernate,css
[2] - https://www.oxygenxml.com/doc/versions/ ... on-sharing
[3] - https://www.oxygenxml.com/doc/versions/ ... ,framework
[4] - https://www.oxygenxml.com/doc/versions/ ... ,framework
jbvalentin
Posts: 11
Joined: Thu Jul 06, 2017 10:53 am
Location: Nantes, France

Re: Use of alternate CSS available in Oxygen Web Author

Post by jbvalentin »

I have an additional question about the alternate CSS feature for the Web Author: is it possible to "live" switch the stylesheet during an authoring session?

Or is it needed to close the browser and reopen it with the appropriate addtitional CSS from the start?

Thank you.

Regards,
Jean-Baptiste
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Use of alternate CSS available in Oxygen Web Author

Post by cristi_talau »

Hello,

Currently we do not support changing dynamically the CSS. A similar result can be achieved by using CSS pseudo-classes [1]. You can implement a toolbar action that sets a custom pseudoclass on the document root and depending on that pseudo-class you can change the styles that apply to different elements.

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... asses.html
jbvalentin
Posts: 11
Joined: Thu Jul 06, 2017 10:53 am
Location: Nantes, France

Re: Use of alternate CSS available in Oxygen Web Author

Post by jbvalentin »

Sorry for the late reply.

Thank you for the suggestion, we will definitely follow the way you suggested.

Cheers,
Jean-Baptiste
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Use of alternate CSS available in Oxygen Web Author

Post by mihaela »

Hello,

I am updating this thread to let you know that Oxygen XML Web Author 20.1 was release and it includes the support for dynamically change the styles for a document.

You can find more details on our website:
https://www.oxygenxml.com/xml_web_author/whats_new.html
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply