2 * MediaWiki style sheet for general styles on complex content
4 * Styles for complex things which are a standard part of page content
5 * (ie: the CSS classing built into the system), like the TOC.
8 /* Table of Contents */
13 border: 1px solid
#aaa;
14 background-color: #f9f9f9;
20 * We want to display the ToC element with intrinsic width in block mode. The fit-content
21 * value for width is however not supported by large groups of browsers.
23 * We use display:table. Even though it should only contain other table-* display
24 * elements, there are no known problems with using this.
26 * Because IE < 8 and other older browsers don't support display:table, we fallback to
27 * using inline-block mode, which features at least intrinsic width, but won't clear preceding
28 * inline elements. In practice inline elements surrounding the TOC are uncommon enough that
29 * this is an acceptable sacrifice.
33 display: inline-block
;
43 /* CSS for backwards-compatibility with cached page renders and creative uses in wikitext */
46 border-collapse: collapse
;
49 /* Remove additional paddings inside table-cells that are not present in <div>s */
73 list-style-type: none
;
74 list-style-image: none
;
90 /* Separate columns for tocnumber and toctext */
91 /* Ignored by IE7 and lower */
96 Text decorations are not propagated to the contents of inline blocks and inline tables,
97 according to <http://www.w3.org/TR/css-text-decor-3/#line-decoration>, and 'display: table-cell'
98 generates an inline table when used without any parent table-rows and tables.
100 text-decoration: inherit
;
103 /* Space between the columns for tocnumber and toctext */
104 /* Ignored by IE7 and lower */
107 display: inline-block
;
119 /* @noflip */div
.floatright
, table
.floatright
{
120 margin: 0 0 .5em .5em;
128 /* @noflip */div
.floatleft
, table
.floatleft
{
129 margin: 0 .5em .5em 0;
141 background-color: transparent
;
145 border: 1px solid
#ccc;
147 background-color: #f9f9f9;
154 border: 1px solid
#ccc;
162 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
167 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
178 /* …and replace it with the image */
181 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
183 /* Use same SVG support hack as mediawiki.legacy's shared.css */
184 background-image: url
(images
/magnify-clip-ltr
.png
);
186 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(images
/magnify-clip-ltr
.svg
);
188 background-image: linear-gradient
(transparent
, transparent
), url
(images
/magnify-clip-ltr
.svg
);
189 /* Don't annoy people who copy-paste everything too much */
190 -moz-user-select: none
;
191 -webkit-user-select: none
;
192 -ms-user-select: none
;
197 border: 1px solid
#dddddd;
200 /* Directionality-specific styles for thumbnails - their positioning depends on content language */
203 .mw-content-ltr .thumbcaption {
208 .mw-content-ltr .magnify {
215 .mw-content-ltr div.magnify a {
216 /* Use same SVG support hack as mediawiki.legacy's shared.css */
217 background-image: url
(images
/magnify-clip-ltr
.png
);
219 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(images
/magnify-clip-ltr
.svg
);
221 background-image: linear-gradient
(transparent
, transparent
), url
(images
/magnify-clip-ltr
.svg
);
225 .mw-content-rtl .thumbcaption {
230 .mw-content-rtl .magnify {
237 .mw-content-rtl div.magnify a {
238 /* Use same SVG support hack as mediawiki.legacy's shared.css */
239 background-image: url
(images
/magnify-clip-rtl
.png
);
241 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(images
/magnify-clip-rtl
.svg
);
243 background-image: linear-gradient
(transparent
, transparent
), url
(images
/magnify-clip-rtl
.svg
);
248 margin: .5em 0 1.3em 1.4em;
253 margin: .5em 1.4em 1.3em 0;