CSS: -oxy-append-content kills original icons

Oxygen general issues.
Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

CSS: -oxy-append-content kills original icons

Post by Patrik »

Hi,

in one css file I'm adding some buttons to an element using relative urls for the icons.
Now in another css file (located in another folder) I'm adding additional content (i.e. another button with icon) using -oxy-append-content.
The effect is now that the icons of the original buttons are no more displayed (but the text instead).

My guess is that the URLs are now being resolved relative to the URI of the file that added the new button. (Using Oxygen 17.0)

Any idea how I can add additional buttons from another file without killing the original icons?

Thanks and regards,

Patrik
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: CSS: -oxy-append-content kills original icons

Post by mihaela »

Hi Patrik,

Thank you for reporting this problem. Indeed, the URLs used in the content declared in CSS are resolved relative to the location of the CSS where you used the "-oxy-append-content" property. I have registered this problem in our internal issue tracker and we will let you know when the fix will be available.

In the meantime you can use multiple before pseudo-elements to append content from different CSS sources. Here are some details and samples:
http://www.w3.org/TR/css3-content/#inserting0
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply