CSS :before and :after presentation in Author view
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 80
- Joined: Wed Jan 14, 2009 12:50 pm
CSS :before and :after presentation in Author view
When tags are displayed in the Author view of version 22.0 any display text that is added (for presentation) using CSS :before and :after is now appearing inside the tags in question rather than before and after the tags (unlike in at least some previous versions).
E.g. previously
<example>first item</example><element>text</element><element>text</element>
with
element:before {content:", "}
used to look like this:
[example>first item<example], [element>text<element], [element>text<element]
whereas now it looks like this:
[example>first item<example][element>, text<element][element>, text<element]
Is it possible to go back to the previous display option? If not, in which version was this change made (so I can uninstall and look for that previous version)?
E.g. previously
<example>first item</example><element>text</element><element>text</element>
with
element:before {content:", "}
used to look like this:
[example>first item<example], [element>text<element], [element>text<element]
whereas now it looks like this:
[example>first item<example][element>, text<element][element>, text<element]
Is it possible to go back to the previous display option? If not, in which version was this change made (so I can uninstall and look for that previous version)?
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: CSS :before and :after presentation in Author view
Hi,
Indeed we took this decision in Oxygen 21.1 to always display all the element's content (even before and after blocks) inside the tags.
We do not have a setting for this. Maybe if you give me more details about your use case, maybe some screenshots I can add an internal issue to consider adding some setting to control this behavior.
Regards,
Radu
Indeed we took this decision in Oxygen 21.1 to always display all the element's content (even before and after blocks) inside the tags.
We do not have a setting for this. Maybe if you give me more details about your use case, maybe some screenshots I can add an internal issue to consider adding some setting to control this behavior.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 80
- Joined: Wed Jan 14, 2009 12:50 pm
Re: CSS :before and :after presentation in Author view
Thanks for the info. I am thinking of, for instance:
with this CSS:
I don't remember how to attach the screenshot that I've made, but if you put those two together you'll see the effect is weird, with the :before commas and spaces inside the elements rather than before them.
Code: Select all
<Address type="Correspondence"><StreetAddress>Test data</StreetAddress><AddressLine2>Test data</AddressLine2><Town>TEST</Town><Postcode>ABCD 1234</Postcode><Country>ANYWHERE</Country></Address>
Code: Select all
Address>*:before {content:", "}
Postcode+Town:before {content:" "}
Address:before {content:attr(type)": ";color:#196619;font-weight:bold}
Address>*:first-child:before {content:""}
Address[type='Correspondence']>* {font-style:italic;color:#196619}
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: CSS :before and :after presentation in Author view
Hi,
If you want you can completely hide inline tags for certain elements like:
and then add some image markers on the before and after content to emulate them.
Regards,
Radu
If you want you can completely hide inline tags for certain elements like:
Code: Select all
Address {
-oxy-display-tags:none;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: CSS :before and :after presentation in Author view
Coming back to this, maybe for such cases our form control text fields may make things look better:
Regards,
Radu
Code: Select all
Address {
-oxy-display-tags:none;
content: oxy_textfield(edit, "#text", columns, 10);
visibility:-oxy-collapse-text;
}
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 80
- Joined: Wed Jan 14, 2009 12:50 pm
Re: CSS :before and :after presentation in Author view
Thanks, but I think I'll go back to an earlier more user-friendly version from before this was implemented, not least because I don't want to have to rewrite hundreds of lines of CSS.
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: CSS :before and :after presentation in Author view
Hi,
I will add an internal issue with your problem and we'll discuss about adding a setting to control this behavior.
Regards,
Radu
I will add an internal issue with your problem and we'll discuss about adding a setting to control this behavior.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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