2015-04-29 16:07:09 +00:00
|
|
|
/* CSS for Parsoid Cite extension */
|
|
|
|
|
2023-03-10 18:15:58 +00:00
|
|
|
/* Parsoid HTML emits <sup> tags for follows uses even though there is
|
|
|
|
* no visible output for follows. Parsoid does this to ensure it can
|
|
|
|
* roundtrip back the source wikitext after edits.
|
|
|
|
* However, since this HTML should not be rendered, we use CSS to hide it */
|
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' */
|
|
|
|
|
2015-04-29 16:07:09 +00:00
|
|
|
/* With a group set */
|
2023-02-15 15:06:40 +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
|
|
|
|
|
|
|
/* Without a group */
|
2023-02-15 15:06:40 +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 */
|
2023-02-15 15:06:40 +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-12-16 21:42:17 +00:00
|
|
|
/**
|
|
|
|
* Resetting *any* counter on an <ol> element messes up the built-in numbering in Firefox.
|
|
|
|
* Explicitly resetting the built-in "list-item" counter fixes this.
|
|
|
|
*
|
|
|
|
* We have 2 counters for Parsoid HTML for different functionality.
|
|
|
|
* Make sure both are reset!
|
|
|
|
*
|
|
|
|
* NOTE: This rule is a duplicate of the one present in ext.cite.styles.css
|
|
|
|
* but duplicating it here ensures no matter how the rules and files are
|
|
|
|
* refactored and which rule ends up applying on the loaded doc, both
|
|
|
|
* counters continue to be incremented. As of now, the rule in ext.cite.styles.css
|
|
|
|
* is the one that seems to be winning.
|
|
|
|
**/
|
|
|
|
counter-reset: mw-ref-extends-parent mw-references list-item;
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
2019-11-18 14:49:51 +00:00
|
|
|
ol.mw-references > li {
|
2022-12-16 21:42:17 +00:00
|
|
|
/**
|
|
|
|
* We have 2 counters for Parsoid HTML for different functionality.
|
|
|
|
* Make sure both are incremented!
|
|
|
|
*
|
|
|
|
* NOTE: This rule is a duplicate of the one present in ext.cite.styles.css
|
|
|
|
* but duplicating it here ensures no matter how the rules and files are
|
|
|
|
* refactored and which rule ends up applying on the loaded doc, both
|
|
|
|
* counters continue to be incremented. As of now, the rule in ext.cite.styles.css
|
|
|
|
* is the one that seems to be winning.
|
|
|
|
**/
|
|
|
|
counter-increment: mw-ref-extends-parent mw-references;
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
2023-02-15 15:06: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' ] {
|
2023-02-08 00:28:26 +00:00
|
|
|
counter-reset: mw-ref-linkback -1;
|
2022-11-01 21:34:55 +00:00
|
|
|
}
|
|
|
|
|
2023-02-15 15:06: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
|
|
|
}
|
|
|
|
|
2023-02-15 15:06: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;
|
|
|
|
}
|
|
|
|
|
2023-02-15 15:06:40 +00:00
|
|
|
span[ rel~='mw:referencedBy' ] a:last-child::after {
|
2022-10-27 22:18:48 +00:00
|
|
|
content: '';
|
2015-04-29 16:07:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide the default rendering in browsers that support content
|
2023-02-15 15:06:40 +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 */
|
2023-02-15 15:06:40 +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;
|
|
|
|
}
|