GUI Customization
Post here questions and problems related to editing and publishing DITA content.
-
- 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.
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
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);
}
Thank you!
Best Regards,
Mounika
-
- Posts: 1016
- 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
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
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