GUI Customization

Post here questions and problems related to editing and publishing DITA content.
Raga Mounika
Posts: 49
Joined: Mon Mar 28, 2016 3:54 pm

GUI Customization

Post by Raga Mounika »

HI,

As part of my GUI customization I have a textfield and checkbox for an element. Both these labels should be similar, but I am using fontInherit so I couldnt trace it out .Please help me with proper code.

Please go through the code I used.

Code: Select all

*[class~="topic/ex"]:after {
display:block;
content: "scale " oxy_textfield(edit, '@scale', width, 2.5em)
oxy_checkbox(edit, "@scalefit",
values, "yes",
uncheckedValues,"no",
labels, "scalefit",
fontInherit, true
);
font-family:sansserif, verdana, helvetica;
font-weight:normal;
font-size:8px;
}
*[class~="topic/title"] *[class~="topic/ex"]:after {
display:block;
content: oxy_label(text, "scale ", styles,
"font-size:8px;color:black;") oxy_textfield(edit, "@scale", width, 2.75em)
oxy_checkbox(edit, "@scalefit", values, "yes", labels, "scalefit",fontInherit, true);
}

*[class~="topic/ex"][scale]:not([scalefit]):after {
display:block;
content: oxy_label(text, "scale ", styles,
"font-size:8px;color:black;") oxy_textfield(edit, '@scale', width, 2.75em);
}
*[class~="topic/ex"][scalefit]:not([scale]):after {
display:block;
content: oxy_checkbox(edit, '@scalefit', values, 'yes',labels,'scalefit',fontInherit, true);
}
Here scale and scalefit are two attributes for same element ex.These two varibles are varying with font size and font family in output. I want scalefit font to have for scale as well.

Thank you!

Best Regards,
Mounika
alex_jitianu
Posts: 1009
Joined: Wed Nov 16, 2005 11:11 am

Re: GUI Customization

Post by alex_jitianu »

Hi Mounika,

I've tested with an 'ex' element both inside and outside a 'title' element and, as far as I could tell, both labels ("scale" and "scalefit") were rendered with the same font. What Oxygen version are you using? Can you give me a small XML snapshot on which the labels don't have the same size?

Best regards,
Alex
Post Reply