2 * Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser.
5 /*csslint regex-selectors:false */
8 * Auto-numbered external links
9 * Parsoid renders those as link without content, and lets CSS do the
10 * counting. This way the counting style can be customized, and counts update
11 * automatically when content is modified.
14 counter-reset: mw-numbered-ext-link;
17 .mw-body-content a[rel~='mw:ExtLink']:empty:after {
18 content: '[' counter( mw-numbered-ext-link ) ']';
19 counter-increment: mw-numbered-ext-link;
25 * Parser and Extension:Cite output reference numbers for <sup>[1]</sup> for <ref> tags.
28 * Cake is good<sup>[2]</sup>
29 * The cake is a lie<span class="reference">[1]</span>
36 vertical-align: super;
37 unicode-bidi: -moz-isolate;
38 unicode-bidi: isolate;
49 figure[typeof*='mw:Image'] {
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% for font size of the
92 * caption results in the same behavior. */
97 border: 1px solid #ccc;
100 /* taken from .thumbcaption, plus .thumbinner */
101 padding: 1px 5px 5px;
102 background-color: #f9f9f9;
105 /* reset caption side for tables inside figcaptions */
111 figure[typeof~='mw:Image/Thumb'],
112 figure[typeof~='mw:Image/Frame'] {
116 border: 1px solid #ccc;
117 border-bottom: 0; // No border to caption
118 border-collapse: collapse;
119 background-color: #f9f9f9;
120 // Default to right alignment. This is needed since Parsoid only specifies the
121 // alignment class when the alignment is explicitly set.
122 margin: 0.5em 0 1.3em 1.4em;
127 figure[typeof~='mw:Image/Thumb'] > *:first-child > img,
128 figure[typeof~='mw:Image/Frame'] > *:first-child > img,
129 .mw-image-border > *:first-child > img {
130 border: 1px solid #ccc;
135 /* Hide the caption for frameless and plain floated images */
136 figure[typeof~='mw:Image/Frameless'] > figcaption,
137 figure[typeof~='mw:Image'] > figcaption {