2 * Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser.
6 * Auto-numbered external links
7 * Parsoid renders those as link without content, and lets CSS do the
8 * counting. This way the counting style can be customized, and counts update
9 * automatically when content is modified.
12 counter-reset: mw-numbered-ext-link;
15 .mw-body-content a[rel~='mw:ExtLink']:empty:after {
16 content: '[' counter( mw-numbered-ext-link ) ']';
17 counter-increment: mw-numbered-ext-link;
23 * Parser and Extension:Cite output reference numbers for <sup>[1]</sup> for <ref> tags.
26 * Cake is good<sup>[2]</sup>
27 * The cake is a lie<span class="reference">[1]</span>
34 vertical-align: super;
35 unicode-bidi: -moz-isolate;
36 unicode-bidi: isolate;
47 figure[typeof*='mw:Image'],
48 figure[typeof*='mw:Video'],
49 figure[typeof*='mw:Audio'] {
58 margin: 0.5em 0 1.3em 1.4em;
67 margin: 0.5em 1.4em 1.3em 0;
81 margin: 0 auto 0.5em auto;
88 display: table-caption;
90 /* In mw-core the font-size is duplicated, 94% in thumbiner
91 * and again 94% in thumbcaption. 88.4% for font size of the
92 * caption results in the same behavior. */
97 border: 1px solid #c8ccd1;
100 /* taken from .thumbcaption, plus .thumbinner */
101 padding: 0 6px 6px 6px;
102 background-color: #f8f9fa;
105 /* reset caption side for tables inside figcaptions */
111 figure[typeof~='mw:Image/Thumb'],
112 figure[typeof~='mw:Video/Thumb'],
113 figure[typeof~='mw:Audio/Thumb'],
114 figure[typeof~='mw:Image/Frame'],
115 figure[typeof~='mw:Video/Frame'],
116 figure[typeof~='mw:Audio/Frame'] {
120 border: 1px solid #c8ccd1;
121 border-bottom: 0; // No border to caption
122 border-collapse: collapse;
123 background-color: #f8f9fa;
124 // Default to right alignment. This is needed since Parsoid only specifies the
125 // alignment class when the alignment is explicitly set.
126 margin: 0.5em 0 1.3em 1.4em;
133 border: 1px solid #c8ccd1;
140 /* Same as img.thumbborder in content.css */
141 .mw-image-border > *:first-child {
144 border: 1px solid #eaecf0;
148 /* Hide the caption for frameless and plain floated images */
149 figure[typeof~='mw:Image/Frameless'],
150 figure[typeof~='mw:Video/Frameless'],
151 figure[typeof~='mw:Audio/Frameless'],
152 figure[typeof~='mw:Image'],
153 figure[typeof~='mw:Video'],
154 figure[typeof~='mw:Audio'] {