Gretyl's Portal

Heretto Help

Cause, Condition, Context, Example, Postreq, Prereq, Remedy, Result, Steps, Stepsection

Add labels preceding the task topic and troubleshooting topic “sections”.

Overview

Resource location:@import url("https://jorsek.github.io/pdfgen.github.io/styles1.1/modules/dita/cause_condition_context_example_postreq_prereq_remedy_result_steps_stepsection.css");
Figure 1. Task Topic
task topic various elements
Figure 2. Troubleshooting Topic
troubleshooting topic

DITA Outputclass Attributes

This module enables you to set the following @outputclass attributes in the DITA source:

process
To change the default “Procedure” label to “Process” before steps in a task topic, assign the @outputclass="process" attribute to the root topic element.
process caption

Common Customizations

You can apply customizations by pasting the following code snippets under the @import rules.

Style labels
styled task captions
/* Style captions. */
.prereq::before,
.postreq::before,
.steps::before,
.steps-unordered::before,
.stepsection,
.cause::before,
.remedy::before,
.condition::before,
.context::before,
.result::before,
.example::before {
    color: darkred;
    font-size: 22px;
    font-variant: small-caps;
}
Hide labels
context prerequisite disabled
/*.postreq::before,
.steps::before,
.steps-unordered::before,
.cause::before,
.remedy::before,
.condition::before,
.result::before,
.example::before,*/
/* Hide captions. */
.prereq::before,
.context::before {
    display: none;
}