Search found 12 matches

by tonra
Wed Mar 11, 2020 2:22 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Changes to CSS styling of figcaption elements (WebHelp)
Replies: 2
Views: 1388

Changes to CSS styling of figcaption elements (WebHelp)

Hello, I've noticed changes regarding the CSS styling of figcaption elements. When running a build locally with Oxygen 21.1, everything is fine. As defined in commonltr.css, figcap class' font-style is italic. When running a build on the server, there's a CSS property from elements.css overriding th...
by tonra
Mon Oct 14, 2019 12:04 pm
Forum: Common Problems
Topic: ::after pseudo-element not working with external links
Replies: 4
Views: 4842

Re: ::after pseudo-element not working with external links

Hi Dan and Costin,

Thanks a lot – it works like a charm now. As always, one can rely on this forum.

Since there was no ::after pseudo-element in the browser's inspector, I was blind to the selector in "p-links.css"…

Best regards,
Anton
by tonra
Mon Oct 14, 2019 11:25 am
Forum: Common Problems
Topic: Indent from second line in case a numbered heading wraps
Replies: 4
Views: 3542

Re: Indent from second line in case a numbered heading wraps

Hello Dan, Thank you very much for your reply! Unfortunately, your approach seems to work for the TOC only as the HTML structure of the content headings differs: While the heading itself is nested in a div in the TOC, it's not nested in another element in the content. TOC: <div class="- map/top...
by tonra
Wed Oct 09, 2019 8:11 pm
Forum: Common Problems
Topic: ::after pseudo-element not working with external links
Replies: 4
Views: 4842

::after pseudo-element not working with external links

Hello, I am currently facing the following problem: Whenever I try to add an ::after pseudo-element to link elements, it works only for internal links. This means *[class ~= "topic/xref"][href]::after, *[class ~= "topic/link"][href]::after { content: "TEST" !important; ...
by tonra
Wed Oct 09, 2019 5:49 pm
Forum: Common Problems
Topic: Indent from second line in case a numbered heading wraps
Replies: 4
Views: 3542

Indent from second line in case a numbered heading wraps

Hello, I use a counter for headings. If a heading wraps, the second line begins right below the numbering. Is there any opportunity/best practice to automatically add an indent so that the text of the heading aligns with the text of the first line (see attached image)? I've already tried using a pos...
by tonra
Fri Aug 16, 2019 3:10 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add metadata from DITA map to menu items in HTML output
Replies: 2
Views: 1384

Re: Add metadata from DITA map to menu items in HTML output

Hi, I managed to get the desired metadata. It was a bit tricky to understand the XPath syntax using variables. This is my approach: <xsl:value-of select="toc:topicmeta/toc:audience/@type"/> (within the xsl template matching xsl:topic). Unfortunately, there is a problem when I try to get on...
by tonra
Thu Aug 15, 2019 12:18 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add metadata from DITA map to menu items in HTML output
Replies: 2
Views: 1384

Add metadata from DITA map to menu items in HTML output

Hi, I have an XSLT-related question regarding the Oxygen WebHelp Responsive transformation. I would like to get metadata from a DITA map and integrate it to the side toc navigation's elements (as an attribute). The HTML part of this has to be done in sidetoc.xsl, I guess. But how can I get the data ...
by tonra
Tue Aug 13, 2019 1:55 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: WebHelp customization: Localized text in HTML fragment
Replies: 9
Views: 4265

Re: WebHelp customization: Localized text in HTML fragment

Hi,

thank you for posting an example, Frank. This approach meets my requirements almost perfectly.
There is only one thing I am currently missing: Is there an (elegant) way to add line breaks to a string?
I have tried several ways without success.

Best regards,
Anton
by tonra
Fri Jun 07, 2019 9:13 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Webhelp responsive template - customize header
Replies: 7
Views: 3044

Re: Webhelp responsive template - customize header

Hi David, Okay, this can be achieved with the help of a WebHelp macro. You can use ${path(oxygen-webhelp-output-dir)}/index.html as your href attribute value to make the link to your index page work from every subpage. For more information on WebHelp macros (they are very helpful!), see https://www....
by tonra
Thu Jun 06, 2019 11:22 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Webhelp responsive template - customize header
Replies: 7
Views: 3044

Re: Webhelp responsive template - customize header

Hi David, That's quite simple. Just place the <whc:webhelp_logo/> element within <div class="wh_logo_and_publication_title"> (in header.xml ). Set the parameter <parameter name="webhelp.logo.image" value="[color=#BF0000]YOUR FILEPATH[/color]"/> (in your Template Descrip...
by tonra
Wed Jun 05, 2019 12:33 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive footer not at bottom of page
Replies: 11
Views: 5160

Re: Responsive footer not at bottom of page

Hello everyone, I was faced with the same problem some months ago and solved it by using this approach: https://codepen.io/cbracco/pen/zekgx . With the CSS properties shown there you can achieve a footer which sticks to the bottom of the page and not of the viewport . It seems a bit weird to me that...
by tonra
Wed Jun 05, 2019 11:47 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: WebHelp customization: Localized text in HTML fragment
Replies: 9
Views: 4265

Re: WebHelp customization: Localized text in HTML fragment

Hello Frank, I was just going to post a quite similar question when I found your thread. In my understanding, the localization features provided by Oxygen are limited to the interface of the output (e. g. search field placeholder text etc.). I use HTML fragments containing localized content, too. It...