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

lhsihan
Posts: 26
Joined: Thu Aug 15, 2019 5:31 pm

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

Post by lhsihan » Wed Aug 28, 2019 1:35 am

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.

Radu
Posts: 6507
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Wed Aug 28, 2019 9:12 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply