Override default profiling attribute styles - deliveryTarget

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
manojdcoder
Posts: 63
Joined: Thu Oct 29, 2020 12:01 am

Override default profiling attribute styles - deliveryTarget

Post by manojdcoder » Tue Mar 23, 2021 7:13 pm

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: 346
Joined: Thu Sep 04, 2014 4:22 pm

Re: Override default profiling attribute styles - deliveryTarget

Post by cristi_talau » Wed Mar 24, 2021 10:21 am

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: 63
Joined: Thu Oct 29, 2020 12:01 am

Re: Override default profiling attribute styles - deliveryTarget

Post by manojdcoder » Wed Mar 24, 2021 5:40 pm

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: 52
Joined: Wed Jul 20, 2016 8:22 am

Re: Override default profiling attribute styles - deliveryTarget

Post by mihai_coanda » Thu Mar 25, 2021 5:38 pm

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: 63
Joined: Thu Oct 29, 2020 12:01 am

Re: Override default profiling attribute styles - deliveryTarget

Post by manojdcoder » Fri Mar 26, 2021 6:22 pm

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: 267
Joined: Wed May 20, 2009 2:40 pm

Re: Override default profiling attribute styles - deliveryTarget

Post by mihaela » Thu Jul 15, 2021 6:04 pm

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