To remove checkbox in imagemap

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

To remove checkbox in imagemap

Post 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
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: To remove checkbox in imagemap

Post 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
Post Reply