Page 1 of 1

To remove checkbox in imagemap

Posted: Wed Aug 24, 2016 10:53 am
by Raga Mounika
Hi Team,

I am doing CSS changes for DITA CMS GUI.For image element I have added scale(textfield) and scalefit(checkbox) attributes.For fig I have added pgwide(checkbox) attribute.
Now in imagemap it is showing both the attributes of fig and image. I want to remove pgwide attribute in imagemap.
I have tried the below code but it is not working.

Code: Select all

*[class~="ut-d/imagemap"] *[class~="topic/image"]:after {
content: "scale " oxy_textfield(edit, '@scale', width, 2.75em)
oxy_checkbox(edit, "@scalefit",
values, "yes",
uncheckedValues,"no",
labels, "scalefit",
fontInherit, true
);
}


And also the image attribute is not working properly when inserted in topic title.
The scale attribute is in title color whereas scalefit is in black color.I want to change the scalefit(checkbox) label also as title color.

Please help me in solving this issue.
Thank you.

Regards,
Mounika

Re: To remove checkbox in imagemap

Posted: Wed Aug 24, 2016 2:14 pm
by alex_jitianu
Hi Mounika,

The "imagemap" element is a specialization of the "fig" element. To ensure that @pgwide form control is not presented for the imagemap, add this CSS rule after the rule that sets form control on the "fig" element:

Code: Select all

*[class~="ut-d/imagemap"]:after {
content:"";
}
By default, form controls do not inherit the color (as static content does). Again, the "color" property can help you if you set it to "inherit":

Code: Select all


*[class~="topic/image"]:after {
content: "scale " oxy_textfield(edit, '@scale', width, 2.75em)
oxy_checkbox(edit, "@scalefit",
values, "yes",
uncheckedValues,"no",
labels, "scalefit",
color,inherit,
fontInherit, true
);
}
Best regards,
Alex