Page 1 of 1

Triangles indicating nodes

Posted: Wed Aug 24, 2016 9:54 am
by yoonsen
In oXygen v18 it seems that the triangles indicating nodes come in two types (on a Win10 machine), one where two opposing triangles are aligned with the rest of the text, and another where one triangle resides a little bit under the baseline pointing in the direction of the text. Is it possible to control the appearance of triangles? Our case is that we have two alternate CSSs, one which uses -oxy-collapse-text, where the collapsed nodes appear nicer with the sub baseline triangles.

Best,
Lars G B Johnsen

Re: Triangles indicating nodes

Posted: Wed Aug 24, 2016 10:41 am
by Radu
Hi Lars,

Could I get a screenshot for this problem?
We use small triangles in the Author editing mode to represent inline element tags.
What you could try in order to take a little bit of control over the triangles would be to first hide them completely:

Code: Select all

elementName{
-oxy-display-tags:none;
}
and then add :before and :after selectors for the element which add custom images before and after the element like:

Code: Select all

elementName:before{
content : uri(relative/path/to/startImage.png);
}
Regards,
Radu

Re: Triangles indicating nodes

Posted: Wed Aug 24, 2016 11:38 am
by yoonsen
Brilliant! Thanks for the CSS property, it works well also in v16 as in v18. I will provide screen shots of the two types of triangles.

Best,
Lars

Re: Triangles indicating nodes

Posted: Wed Aug 24, 2016 12:09 pm
by yoonsen
For your information, here is an image displaying the two types of triangles. The documents are almost the same, though, although one is connected to a TEI-schema.

https://drive.google.com/file/d/0B_pZaS ... sp=sharing

Thanks again for helpful reply!

Best,
Lars

Re: Triangles indicating nodes

Posted: Wed Aug 24, 2016 12:22 pm
by Radu
Hi Lars,

The first triangle type (filled with color) looks like our fold triangle but I'm not sure if it is, maybe it is set by a custom CSS stylesheet that you are using, if you click it does it expand/collapse an element?
The second triangle type (not filled, only has a contour) is the triangle we use to symbolize element tags.

Regards,
Radu

Re: Triangles indicating nodes

Posted: Wed Aug 24, 2016 1:59 pm
by yoonsen
Maybe there is some leftover display options from when I tried to fold inline elements, until I discovered only block type elements fold (guess this is still the case?). Anyway, the solution with two CSSs and the styling of triangles work nicely.

Lars

Re: Triangles indicating nodes

Posted: Wed Aug 24, 2016 2:05 pm
by Radu
Hi Lars,

Right, this is probably it, indeed inline elements cannot be folded, we have an issue for allowing this and I added your vote for it.

Regards,
Radu