mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-30 17:54:20 +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;
|
||
|
}
|
||
|
}
|