mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-21 11:02:51 +00:00
24 lines
842 B
Plaintext
24 lines
842 B
Plaintext
|
.mw-ref > a[ style~='mw-Ref' ]::after {
|
||
|
content: '[' counter( mw-Ref, var( --cite-counter-style ) ) ']';
|
||
|
}
|
||
|
|
||
|
.mw-ref > a[ style~='mw-Ref' ][ data-mw-group ]::after {
|
||
|
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, var( --cite-counter-style ) ) ']';
|
||
|
}
|
||
|
|
||
|
span[ rel='mw:referencedBy' ] > a::before {
|
||
|
content: counter( mw-references, var( --cite-counter-style ) ) var( --cite-backlink-separator ) counter( mw-ref-linkback, var( --cite-counter-style ) );
|
||
|
}
|
||
|
|
||
|
/* Upstream bug in stylelint makes it complain aboout the case of 'mw-Ref' */
|
||
|
|
||
|
.mw-ref > a[ style~='mw-Ref' ] {
|
||
|
/* Hide the default rendering in browsers that support content
|
||
|
* generation by selecting for :after pseudo-element. */
|
||
|
/* stylelint-disable-next-line selector-type-no-unknown */
|
||
|
x-thereisnoelementwiththisname::after,
|
||
|
span.mw-reflink-text {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|