2015-04-29 16:07:09 +00:00
|
|
|
/* CSS for Parsoid Cite extension */
|
|
|
|
|
|
|
|
/* Style for <ref>s */
|
2018-01-02 13:59:31 +00:00
|
|
|
.mw-ref {
|
2015-04-29 16:07:09 +00:00
|
|
|
vertical-align: super;
|
|
|
|
line-height: 1;
|
|
|
|
font-size: smaller;
|
2018-08-01 12:57:37 +00:00
|
|
|
/* Do not inherit bold or italic */
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
2020-05-22 21:45:37 +00:00
|
|
|
/* Isolation to fix references in case of RTL words at the end of a reference */
|
|
|
|
unicode-bidi: -moz-isolate;
|
|
|
|
unicode-bidi: -webkit-isolate;
|
|
|
|
unicode-bidi: isolate;
|
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 */
|
2018-02-04 21:22:04 +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 */
|
2018-02-04 21:22:04 +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
|
|
|
|
2018-02-04 21:22:04 +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
|
|
|
|
2018-02-04 21:22:04 +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
|
|
|
|
2018-02-04 21:22:04 +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
|
|
|
|
2018-02-04 21:22:04 +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
|
|
|
|
2018-02-04 21:22:04 +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
|
|
|
|
2018-02-04 21:22:04 +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 */
|
2018-01-02 13:59:31 +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 {
|
2019-12-09 09:10:54 +00:00
|
|
|
/* Resetting *any* counter on an <ol> element messes the build-in numbering in Firefox up.
|
|
|
|
Explicitely resetting the build-in "list-item" counter fixes this. */
|
|
|
|
counter-reset: mw-ref-linkback list-item;
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
2019-11-18 14:49:51 +00:00
|
|
|
ol.mw-references > li {
|
2015-04-29 16:07:09 +00:00
|
|
|
counter-increment: mw-ref-linkback;
|
|
|
|
}
|
|
|
|
|
2018-02-04 21:22:04 +00:00
|
|
|
[ rel='mw:referencedBy' ] {
|
2015-04-29 16:07:09 +00:00
|
|
|
counter-reset: mw-ref-linkback -1;
|
|
|
|
}
|
|
|
|
|
2018-02-04 21:22:04 +00:00
|
|
|
[ rel='mw:referencedBy' ]:before {
|
2016-05-17 17:15:13 +00:00
|
|
|
content: '↑ ';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
2018-02-04 21:22:04 +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;
|
|
|
|
}
|
|
|
|
|
2018-02-04 21:22:04 +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
|
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;
|
|
|
|
}
|