2015-04-29 16:07:09 +00:00
|
|
|
/* CSS for Parsoid Cite extension */
|
|
|
|
|
|
|
|
/* Style for <ref>s */
|
|
|
|
span.mw-ref {
|
|
|
|
vertical-align: super;
|
|
|
|
line-height: 1;
|
|
|
|
font-size: smaller;
|
2015-07-11 19:55:26 +00:00
|
|
|
/* Make sure the brackets and the numbers aren't jumbled after LTR words in RTL wikis */
|
|
|
|
unicode-bidi: embed;
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* With a group set */
|
|
|
|
span.mw-ref a[data-mw-group]::after {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, decimal ) ']';
|
|
|
|
}
|
2015-04-29 16:07:09 +00:00
|
|
|
|
|
|
|
/* Groups with special appearance */
|
2016-05-17 17:15:13 +00:00
|
|
|
span.mw-ref a[data-mw-group='decimal']::after {
|
|
|
|
content: '[' counter( mw-Ref, decimal ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-17 17:15:13 +00:00
|
|
|
span.mw-ref a[data-mw-group='lower-alpha']::after {
|
|
|
|
content: '[' counter( mw-Ref, lower-alpha ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-17 17:15:13 +00:00
|
|
|
span.mw-ref a[data-mw-group='upper-alpha']::after {
|
|
|
|
content: '[' counter( mw-Ref, upper-alpha ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-17 17:15:13 +00:00
|
|
|
span.mw-ref a[data-mw-group='lower-greek']::after {
|
|
|
|
content: '[' counter( mw-Ref, lower-greek ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-17 17:15:13 +00:00
|
|
|
span.mw-ref a[data-mw-group='lower-roman']::after {
|
|
|
|
content: '[' counter( mw-Ref, lower-roman ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-17 17:15:13 +00:00
|
|
|
span.mw-ref a[data-mw-group='upper-roman']::after {
|
|
|
|
content: '[' counter( mw-Ref, upper-roman ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-17 17:15:13 +00:00
|
|
|
span.mw-ref a[data-mw-group='error-test']::after {
|
|
|
|
content: '[' counter( mw-Ref, symbols( cyclic 'first' 'second' 'last!' ) ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Without a group */
|
|
|
|
span.mw-ref a::after {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '[' counter( mw-Ref, decimal ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide the default rendering in browsers that support content
|
|
|
|
* generation by selecting for ::after pseudo-element.*/
|
2016-05-17 17:15:13 +00:00
|
|
|
x-thereisnoelementwiththisname::after,
|
|
|
|
span.mw-reflink-text {
|
2015-04-29 16:07:09 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Style for linkbacks from <references> to <ref>s */
|
|
|
|
ol.mw-references {
|
|
|
|
counter-reset: mw-ref-linkback;
|
|
|
|
}
|
|
|
|
|
|
|
|
ol.mw-references li {
|
|
|
|
counter-increment: mw-ref-linkback;
|
|
|
|
}
|
|
|
|
|
2016-05-17 17:15:13 +00:00
|
|
|
[rel='mw:referencedBy'] {
|
2015-04-29 16:07:09 +00:00
|
|
|
counter-reset: mw-ref-linkback -1;
|
|
|
|
}
|
|
|
|
|
2016-05-17 17:15:13 +00:00
|
|
|
[rel='mw:referencedBy']::before {
|
|
|
|
content: '↑ ';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
2016-05-17 17:15:13 +00:00
|
|
|
span[rel='mw:referencedBy'] a::before {
|
2015-04-29 16:07:09 +00:00
|
|
|
counter-increment: mw-ref-linkback;
|
2016-05-17 17:15:13 +00:00
|
|
|
content: counters( mw-ref-linkback, '.', decimal );
|
2015-04-29 16:07:09 +00:00
|
|
|
vertical-align: super;
|
|
|
|
line-height: 1;
|
|
|
|
font-size: smaller;
|
|
|
|
}
|
|
|
|
|
2016-05-17 17:15:13 +00:00
|
|
|
span[rel='mw:referencedBy'] a::after {
|
|
|
|
content: ' ';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide the default rendering in browsers that support content
|
|
|
|
* generation by selecting for ::after pseudo-element.*/
|
2016-05-17 17:15:13 +00:00
|
|
|
x-thereisnoelementwiththisname[rel='mw:referencedBy']::before,
|
|
|
|
span.mw-linkback-text {
|
2015-04-29 16:07:09 +00:00
|
|
|
display: none;
|
|
|
|
}
|