Page 1 of 1

Customize -i18n-en.css in DITA OT plugin way

Posted: Wed Aug 28, 2019 1:35 am
by lhsihan
Hi experts,
I have one requirement that want to customize the

Code: Select all

OXYGEN_INSTALL_DIR\frameworks\dita\css\core\-i18n-en.css
such like adding some new lines for new DTD elements:

Code: Select all

*[class ~= "task/limitation"]:before {
    content: "Limitation: ";
}
@media print {
    *[class ~= "task/limitation"]:before {
        content: none;
    }
}
is there any way to customize this file in the DITA OT plugin way? could you please give me some guide on this? Thanks a lot.

Re: Customize -i18n-en.css in DITA OT plugin way

Posted: Wed Aug 28, 2019 9:12 am
by Radu
Hi,

As the CSS file is not inside a DITA OT plugin, it cannot be customized with a DITA OT plugin.
You need to create a DITA framework extension which adds a custom CSS adding those extra selectors:

https://blog.oxygenxml.com/2016/10/cust ... iting.html

Regards,
Radu