Remove link for abbreviated-form
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 24
- Joined: Mon Aug 24, 2015 11:37 pm
Remove link for abbreviated-form
Post by Glimmerino »
Hi.
I use the "abbreviated-form" in order to create a list of glossary. I would however like the "abbreviated-form" not to render as a link but rather as plain text. In which css-file can I change this?
I'm guessing there is a css line somewhere stating that "abbreviated-form" should inherit from "<a href"">".
Regards
Kristian
I use the "abbreviated-form" in order to create a list of glossary. I would however like the "abbreviated-form" not to render as a link but rather as plain text. In which css-file can I change this?
I'm guessing there is a css line somewhere stating that "abbreviated-form" should inherit from "<a href"">".
Regards
Kristian
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Remove link for abbreviated-form
Hello,
You can contribute your own CSS file that overrides the default style rules following this procedure: https://www.oxygenxml.com/doc/versions/ ... n-css.html.
Actually, the abbreviated form term is generated inside an a element. For example:
You can use the following CSS snippet as a starting point:
Regards,
Alin
You can contribute your own CSS file that overrides the default style rules following this procedure: https://www.oxygenxml.com/doc/versions/ ... n-css.html.
Actually, the abbreviated form term is generated inside an a element. For example:
Code: Select all
<a href="antilock.html" title="Anti-lock Braking System (ABS)">
<dfn class="term abbreviated-form">Anti-lock Braking System (ABS)</dfn>
</a>
Code: Select all
.abbreviated-form,
.abbreviated-form:link,
.abbreviated-form:visited,
.abbreviated-form:hover,
.abbreviated-form:active
{
font-style: normal;
text-decoration: none;
cursor: default;
color:#000000;
}
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 24
- Joined: Mon Aug 24, 2015 11:37 pm
Re: Remove link for abbreviated-form
Post by Glimmerino »
This kind of works. But since the is inside the <a>-element I will still get a link behaviour since the styling is also set on the anchor element (in this case <a href"">). Is there any way of changing an element with the condition that it should only change when containing a certain class?
I have searched the internet for this but without results.
Thankyou.
Code: Select all
<dfn class="term abbreviated-form">Anti-lock Braking System (ABS)</dfn>
I have searched the internet for this but without results.
Thankyou.
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Remove link for abbreviated-form
Hi,
I understand that you want a way to match an element that has a certain child element (in your case a <a> element that contains a <dfn> element with the .abbreviated-form class). As far as I know there is no such thing as a parent selector in CSS. You can have a look here: https://www.w3.org/TR/css3-selectors/#selectors
You can try a JavaScript approach to this problem and remove the wrapping <a> element in this case. You can contribute a custom JavaScript code to the WebHelp transformation as follows:
I understand that you want a way to match an element that has a certain child element (in your case a <a> element that contains a <dfn> element with the .abbreviated-form class). As far as I know there is no such thing as a parent selector in CSS. You can have a look here: https://www.w3.org/TR/css3-selectors/#selectors
You can try a JavaScript approach to this problem and remove the wrapping <a> element in this case. You can contribute a custom JavaScript code to the WebHelp transformation as follows:
- For WebHelp Responsive: https://www.oxygenxml.com/doc/versions/ ... -html.html
- For WebHelp Classic: https://www.oxygenxml.com/doc/versions/ ... hing2.html
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
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