Use of alternate CSS available in Oxygen Web Author
Use of alternate CSS available in Oxygen Web Author
Is the use of alternate CSS available in Oxygen Web Author? If so, could someone point me to documentation describing how to implement?
-
- Posts: 40
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Use of alternate CSS available in Oxygen Web Author
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:
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
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
[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
-
- Posts: 11
- Joined: Thu Jul 06, 2017 10:53 am
- Location: Nantes, France
Re: Use of alternate CSS available in Oxygen Web Author
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
Or is it needed to close the browser and reopen it with the appropriate addtitional CSS from the start?
Thank you.
Regards,
Jean-Baptiste
-
- Posts: 217
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Use of alternate CSS available in Oxygen Web Author
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
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
-
- Posts: 11
- Joined: Thu Jul 06, 2017 10:53 am
- Location: Nantes, France
Re: Use of alternate CSS available in Oxygen Web Author
Sorry for the late reply.
Thank you for the suggestion, we will definitely follow the way you suggested.
Cheers,
Jean-Baptiste
Thank you for the suggestion, we will definitely follow the way you suggested.
Cheers,
Jean-Baptiste
Re: Use of alternate CSS available in Oxygen Web Author
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
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
http://www.oxygenxml.com