mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-15 02:55:04 +00:00
0f2c56e0ac
This fixes a Firefox-only glitch where the CSS counter was messing with the native list numbering. Example: https://en.wikipedia.beta.wmflabs.org/wiki/Draft:Cut_the_Crap Change-Id: I6e6514e73bcf6485402b6a61aa5202ebb83a6479
79 lines
1.7 KiB
CSS
79 lines
1.7 KiB
CSS
.mw-cite-backlink,
|
|
.cite-accessibility-label {
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.mw-references-columns {
|
|
-webkit-column-width: 30em;
|
|
-moz-column-width: 30em;
|
|
column-width: 30em;
|
|
}
|
|
|
|
/* Avoid elements from breaking between columns */
|
|
.mw-references-columns li {
|
|
-webkit-column-break-inside: avoid;
|
|
page-break-inside: avoid;
|
|
break-inside: avoid-column;
|
|
}
|
|
|
|
ol.references {
|
|
counter-reset: mw-ref-linkback;
|
|
}
|
|
|
|
ol.references > li {
|
|
counter-increment: mw-ref-linkback;
|
|
counter-reset: mw-extended-references;
|
|
}
|
|
|
|
.mw-extended-references {
|
|
list-style: none;
|
|
}
|
|
|
|
.mw-extended-references > li:before {
|
|
counter-increment: mw-extended-references;
|
|
content: counter( mw-ref-linkback, decimal ) '.' counter( mw-extended-references, decimal ) ' ';
|
|
}
|
|
|
|
sup.reference {
|
|
/* 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;
|
|
|
|
/* Don't allow a reference that includes a group name
|
|
to break in the end of the line */
|
|
white-space: nowrap;
|
|
|
|
/* Do not inherit bold or italic */
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
/* Highlight clicked reference in blue to help navigation */
|
|
ol.references li:target,
|
|
sup.reference:target {
|
|
background-color: #eaf3ff;
|
|
}
|
|
|
|
/* Make cite errors "strong" */
|
|
.mw-ext-cite-error {
|
|
font-weight: bold;
|
|
/* For the case that the error is embedded in an element with a different direction */
|
|
unicode-bidi: embed;
|
|
}
|
|
|
|
/* @noflip */
|
|
.mw-cite-dir-ltr .reference-text {
|
|
direction: ltr;
|
|
unicode-bidi: embed;
|
|
}
|
|
|
|
/* @noflip */
|
|
.mw-cite-dir-rtl .reference-text {
|
|
direction: rtl;
|
|
unicode-bidi: embed;
|
|
}
|