Element Labels Duplicated
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 68
- Joined: Tue Mar 14, 2017 12:36 am
Element Labels Duplicated
Hi There:
I found a suggestion in the forums for showing a prereq label in PDF output.
This worked:
When I tried to do something similar for <steps> the label is duplicated:
I found a suggestion in the forums for showing a prereq label in PDF output.
This worked:
Code: Select all
.prereq::before {
content: "Before you begin";
display: block;
font-weight: bold;
font-size: 1em;
margin-top: 1em;
}
Code: Select all
.steps::before {
content: "Procedure";
display: block;
font-weight: bold;
font-size: 1em;
margin-top: 1em;
}
image.png
What have I done wrong?You do not have the required permissions to view the files attached to this post.
-
- Posts: 703
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Element Labels Duplicated
Post by julien_lacour »
Hello Stacey,
Your selector for steps includes both the <section> and the actual list bearing the steps (has they both have @class="... steps"):
Why not directly using the args.gen.task.lbl parameter? When enabled it will automatically display the label before each task section.
Regards,
Julien
Your selector for steps includes both the <section> and the actual list bearing the steps (has they both have @class="... steps"):
Code: Select all
<section class="- topic/ol task/steps ol steps">
<ol class="- topic/ol task/steps ol steps">
<li class="- topic/li task/step li step">
...
Regards,
Julien
-
- Posts: 703
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Element Labels Duplicated
Post by julien_lacour »
Hello Stacey,
Sure you can, after enabling the parameter, you can modify the labels size using this rule:
And you can replace the text by using, for example, this rule (to replace "Procedure" by "Steps"):
To identify the elements classes to use in your selectors, you can debug the CSS.
Regards,
Julien
Sure you can, after enabling the parameter, you can modify the labels size using this rule:
Code: Select all
.tasklabel {
font-size: 1em;
}
Code: Select all
.steps > .tasklabel {
content: "Steps";
font-weight: 700;
margin-bottom: 0;
margin-top: 1em;
}
Regards,
Julien
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