Override default profiling attribute styles - deliveryTarget

Having trouble installing Oxygen? Got a bug to report? Post it all here.
manojdcoder
Posts: 67
Joined: Thu Oct 29, 2020 12:01 am

Override default profiling attribute styles - deliveryTarget

Post by manojdcoder »

When declaring deliveryTarget attribute a green outline appears on the element, is it possible to remove that?
Where may I find the corresponding CSS?
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Override default profiling attribute styles - deliveryTarget

Post by cristi_talau »

Hello,

The green border is added by the css/webauthor/profiling.css CSS file in the builtin DITA framework. You can remove this file in your DITA extension.

Best,
Cristian
manojdcoder
Posts: 67
Joined: Thu Oct 29, 2020 12:01 am

Re: Override default profiling attribute styles - deliveryTarget

Post by manojdcoder »

Thank you Cristi, but I have already deleted that file. It helped to get rid of some profiling attributes like audience, product etc., but didn't help for deliveryTarget.

We managed to hide the borders for deliveryTarget by setting `show.profiling.attributes` option to false (we don't really want any profiling attributes to highlight). But I'm wondering where the CSS was coming from, is there some default stylings set at SDK level?
mihai_coanda
Posts: 78
Joined: Wed Jul 20, 2016 8:22 am

Re: Override default profiling attribute styles - deliveryTarget

Post by mihai_coanda »

Hello,

In order to override the border on elements marked with deliveryTarget you will need to add the following CSS snippet to your framework.

Code: Select all

*[deliveryTarget] {
	border: none !important;
}
Best Regards,
Michael
Michael

https://www.oxygenxml.com
manojdcoder
Posts: 67
Joined: Thu Oct 29, 2020 12:01 am

Re: Override default profiling attribute styles - deliveryTarget

Post by manojdcoder »

I was hoping that we can configure the style somehow so we wouldn't have to write this for every profiling attributes.
Thank you anyways!
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Override default profiling attribute styles - deliveryTarget

Post by mihaela »

Hello,

We just released the 23.1.1 version of Web Author and it contains the fix for the problem related to the deliveryTarget attribute: the green outline does not appear anymore on the elements having this attribute set.

Here is the "What's New" list for this version:
https://www.oxygenxml.com/xml_web_autho ... 3.1.1.html


Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply