CSS for JATS related-article and self-url elements
Posted: Wed Feb 14, 2018 12:59 am
I'm working with JATS-like files that may include <self-uri> and <related-article> elements. The elements have no content, but I want to display some of their attribute values even when in Partial Tags or No Tags mode.
To do this I am modifying the jats-authoring.css and jats-authoring-labelled.css files that are included with the JATSKit framework. However, it appears that the :before pseudo-element does not work for <self-uri> or <related-article>, while the :after pseudo-element does.
For example, the unmodified JATSKit CSS files have the following for the <self-uri> element:
But in the Author perspective using the 'JATS - Labels' style, the :before pseudo-element content does not appear at all. Oddly, the 'link.png' graphic is displayed before each element, though I can't find a selector in either stylesheet that would do this.
To do this I am modifying the jats-authoring.css and jats-authoring-labelled.css files that are included with the JATSKit framework. However, it appears that the :before pseudo-element does not work for <self-uri> or <related-article>, while the :after pseudo-element does.
For example, the unmodified JATSKit CSS files have the following for the <self-uri> element:
Code: Select all
/* jats-authoring.css: */
self-uri {
display: block;
color:blue;
margin-top: 0.5em;
}
/* jats-authoring-labelled.css: */
self-uri:before {
content: "[Link to: ";
}
self-uri:after {
content: "]";
}