Use of alternate CSS available in Oxygen Web Author
Oxygen general issues.
-
- 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:
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
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
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: 517
- 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
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
Post by jbvalentin »
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
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service