Use of alternate CSS available in Oxygen Web Author

<oXygen/> general issues.
hatchjk
Posts: 8

Use of alternate CSS available in Oxygen Web Author

Fri Jul 15, 2016 6:26 pm

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
Posts: 33

Re: Use of alternate CSS available in Oxygen Web Author

Mon Jul 18, 2016 9:52 am

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: 3

Re: Use of alternate CSS available in Oxygen Web Author

Thu Jul 06, 2017 10:58 am

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: 123

Re: Use of alternate CSS available in Oxygen Web Author

Thu Jul 06, 2017 2:20 pm

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: 3

Re: Use of alternate CSS available in Oxygen Web Author

Tue Jul 18, 2017 5:18 pm

Sorry for the late reply.

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

Cheers,
Jean-Baptiste

Return to “Other Issues”

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests