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
|
|
|
}
|
|
|
|
|
2017-03-20 14:32:02 +00:00
|
|
|
/* Upstream bug in stylelint makes it complain aboout the case of 'mw-Ref' */
|
|
|
|
/* stylelint-disable value-keyword-case */
|
|
|
|
|
2015-04-29 16:07:09 +00:00
|
|
|
/* With a group set */
|
2016-05-24 12:48:46 +00:00
|
|
|
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-24 12:48:46 +00:00
|
|
|
span.mw-ref a[data-mw-group='decimal']:after {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '[' counter( mw-Ref, decimal ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-24 12:48:46 +00:00
|
|
|
span.mw-ref a[data-mw-group='lower-alpha']:after {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '[' counter( mw-Ref, lower-alpha ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-24 12:48:46 +00:00
|
|
|
span.mw-ref a[data-mw-group='upper-alpha']:after {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '[' counter( mw-Ref, upper-alpha ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-24 12:48:46 +00:00
|
|
|
span.mw-ref a[data-mw-group='lower-greek']:after {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '[' counter( mw-Ref, lower-greek ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-24 12:48:46 +00:00
|
|
|
span.mw-ref a[data-mw-group='lower-roman']:after {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '[' counter( mw-Ref, lower-roman ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-24 12:48:46 +00:00
|
|
|
span.mw-ref a[data-mw-group='upper-roman']:after {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '[' counter( mw-Ref, upper-roman ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
2016-05-24 12:48:46 +00:00
|
|
|
span.mw-ref a[data-mw-group='error-test']:after {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '[' counter( mw-Ref, symbols( cyclic 'first' 'second' 'last!' ) ) ']';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Without a group */
|
2016-05-24 12:48:46 +00:00
|
|
|
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
|
2016-05-24 12:48:46 +00:00
|
|
|
* generation by selecting for :after pseudo-element.*/
|
2017-03-20 14:32:02 +00:00
|
|
|
/* stylelint-disable-next-line selector-type-no-unknown */
|
2016-05-24 12:48:46 +00:00
|
|
|
x-thereisnoelementwiththisname:after,
|
2016-05-17 17:15:13 +00:00
|
|
|
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-24 12:48:46 +00:00
|
|
|
[rel='mw:referencedBy']:before {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '↑ ';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
2016-05-24 12:48:46 +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-24 12:48:46 +00:00
|
|
|
span[rel='mw:referencedBy'] a:after {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: ' ';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide the default rendering in browsers that support content
|
2016-05-24 12:48:46 +00:00
|
|
|
* generation by selecting for :after pseudo-element.*/
|
2017-03-20 14:32:02 +00:00
|
|
|
/* stylelint-disable-next-line selector-type-no-unknown */
|
2016-05-24 12:48:46 +00:00
|
|
|
x-thereisnoelementwiththisname[rel='mw:referencedBy']:before,
|
2016-05-17 17:15:13 +00:00
|
|
|
span.mw-linkback-text {
|
2015-04-29 16:07:09 +00:00
|
|
|
display: none;
|
|
|
|
}
|