Debian Codegraph @

extensions/Cite/modules/ext.cite.styles.less

raw
1 @import 'mediawiki.skin.variables.less';
2 @import 'mediawiki.mixins.less';
3
4 .mw-cite-backlink,
5 .cite-accessibility-label {
6 .user-select( none );
7 }
8
9 .mw-references-columns {
10 .column-width( 30em );
11 margin-top: 0.3em;
12
13 /* Lines first column up nicely. */
14 .mw-parser-output & .references {
15 margin-top: 0;
16 }
17
18 /* Avoid elements from breaking between columns */
19 li {
20 .column-break-inside-avoid();
21 }
22 }
23
24 ol.references {
25 /**
26 * Resetting *any* counter on an <ol> element messes up the built-in numbering in Firefox.
27 * Explicitly resetting the built-in "list-item" counter fixes this.
28 *
29 * We have 2 counters for Parsoid HTML for different functionality.
30 * Make sure both are reset!
31 **/
32 counter-reset: mw-ref-extends-parent mw-references list-item;
33
34 > li {
35 /**
36 * We have 2 counters for Parsoid HTML for different functionality.
37 * Make sure both are incremented!
38 **/
39 counter-increment: mw-ref-extends-parent mw-references;
40 counter-reset: mw-ref-extends-child;
41 }
42
43 .mw-extended-references {
44 list-style: none;
45 margin-left: 2em;
46 padding: 0;
47 }
48 }
49
50 .mw-extended-references > li::before {
51 counter-increment: mw-ref-extends-child;
52 content: counter( mw-ref-extends-parent, decimal ) '.' counter( mw-ref-extends-child, decimal ) '. ';
53 }
54
55 sup.reference {
56 /* Isolation to fix references in case of RTL words at the end of a reference */
57 unicode-bidi: -moz-isolate;
58 unicode-bidi: -webkit-isolate;
59 unicode-bidi: isolate;
60
61 /* Don't allow a reference that includes a group name
62 to break in the end of the line */
63 white-space: nowrap;
64
65 /* Do not inherit bold or italic */
66 font-weight: normal;
67 font-style: normal;
68 }
69
70 /* Highlight clicked reference in blue to help navigation */
71 ol.references li:target,
72 sup.reference:target {
73 background-color: @background-color-progressive-subtle;
74 }
75
76 /* Make cite errors "strong" */
77 .mw-ext-cite-error {
78 font-weight: bold;
79 /* For the case that the error is embedded in an element with a different direction */
80 unicode-bidi: embed;
81
82 code {
83 /* As code is inheriting `#f8f9fa` as background color from `code`,
84 we need to increase contrast, by setting it to `transparent`. See T247903. */
85 background-color: transparent;
86 color: inherit;
87 /* Reduce inherited `padding` to make code fit in better in Resources list. */
88 padding: 1px 2px;
89 }
90 }
91
92 /* @noflip */
93 .mw-cite-dir-ltr .reference-text {
94 direction: ltr;
95 unicode-bidi: embed;
96 }
97
98 /* @noflip */
99 .mw-cite-dir-rtl .reference-text {
100 direction: rtl;
101 unicode-bidi: embed;
102 }