2015-04-29 16:07:09 +00:00
|
|
|
/* CSS for Parsoid Cite extension */
|
|
|
|
|
2020-12-01 19:28:01 +00:00
|
|
|
.mw-ref-follow {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
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 */
|
2022-11-18 13:46:35 +00:00
|
|
|
.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 */
|
2022-11-18 13:46:35 +00:00
|
|
|
.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
|
|
|
}
|
2018-12-10 10:59:11 +00:00
|
|
|
|
2022-11-18 13:46:35 +00:00
|
|
|
.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
|
|
|
}
|
2018-12-10 10:59:11 +00:00
|
|
|
|
2022-11-18 13:46:35 +00:00
|
|
|
.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
|
|
|
}
|
2018-12-10 10:59:11 +00:00
|
|
|
|
2022-11-18 13:46:35 +00:00
|
|
|
.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
|
|
|
}
|
2018-12-10 10:59:11 +00:00
|
|
|
|
2022-11-18 13:46:35 +00:00
|
|
|
.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
|
|
|
}
|
2018-12-10 10:59:11 +00:00
|
|
|
|
2022-11-18 13:46:35 +00:00
|
|
|
.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
|
|
|
}
|
2018-12-10 10:59:11 +00:00
|
|
|
|
2022-11-18 13:46:35 +00:00
|
|
|
.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 */
|
2022-11-18 13:46:35 +00:00
|
|
|
.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
|
2018-12-10 10:59:11 +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 {
|
2022-10-18 23:10:59 +00:00
|
|
|
/* Resetting *any* counter on an <ol> element messes up the built-in numbering in Firefox.
|
2022-11-01 21:34:55 +00:00
|
|
|
Explicitly resetting the built-in "list-item" counter fixes this. */
|
|
|
|
counter-reset: mw-references list-item 0;
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
2019-11-18 14:49:51 +00:00
|
|
|
ol.mw-references > li {
|
2022-11-01 21:34:55 +00:00
|
|
|
counter-increment: mw-references;
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
2022-10-18 23:10:59 +00:00
|
|
|
ol[ data-mw-group='lower-alpha' ].mw-references > li {
|
|
|
|
list-style-type: lower-alpha;
|
|
|
|
}
|
|
|
|
|
|
|
|
ol[ data-mw-group='upper-alpha' ].mw-references > li {
|
|
|
|
list-style-type: upper-alpha;
|
|
|
|
}
|
|
|
|
|
2022-08-22 13:02:40 +00:00
|
|
|
[ rel~='mw:referencedBy' ]:before {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '↑ ';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
2022-11-01 21:34:55 +00:00
|
|
|
span[ rel~='mw:referencedBy' ] {
|
|
|
|
counter-reset: mw-ref-linkback 0;
|
|
|
|
}
|
|
|
|
|
2022-08-22 13:02:40 +00:00
|
|
|
span[ rel~='mw:referencedBy' ] a:before {
|
2015-04-29 16:07:09 +00:00
|
|
|
counter-increment: mw-ref-linkback;
|
2022-11-14 22:02:00 +00:00
|
|
|
content: counter( mw-references, decimal ) '.' counter( mw-ref-linkback, decimal );
|
2015-04-29 16:07:09 +00:00
|
|
|
line-height: 1;
|
2022-10-27 22:18:48 +00:00
|
|
|
vertical-align: super; /* <sup> use in Cite */
|
|
|
|
font-size: smaller; /* <sup> use in Cite */
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
2022-08-22 13:02:40 +00:00
|
|
|
span[ rel~='mw:referencedBy' ] a:after {
|
2022-10-27 22:18:48 +00:00
|
|
|
content: ' '; /* default separator outside <sup> */
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
span[ rel~='mw:referencedBy' ] a:last-child:after {
|
|
|
|
content: '';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide the default rendering in browsers that support content
|
2018-12-10 10:59:11 +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 */
|
2018-02-04 21:22:04 +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;
|
|
|
|
}
|
2022-10-24 18:11:19 +00:00
|
|
|
|
|
|
|
/* Previously, MediaWiki styled the warning class.
|
|
|
|
* It no longer does this, so style cite warnings through mw-ext-cite-warning. */
|
|
|
|
.mw-ext-cite-warning {
|
|
|
|
font-size: larger;
|
|
|
|
color: #ac6600;
|
|
|
|
}
|