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
#a2a9b1;
14 background-color: #f8f9fa;
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
;
85 /* Separate columns for tocnumber and toctext */
86 /* Ignored by IE7 and lower */
91 Text decorations are not propagated to the contents of inline blocks and inline tables,
92 according to <https://www.w3.org/TR/css-text-decor-3/#line-decoration>, and 'display: table-cell'
93 generates an inline table when used without any parent table-rows and tables.
95 text-decoration: inherit
;
98 /* Space between the columns for tocnumber and toctext */
101 padding-right: 0.5em;
105 .mw-content-ltr .tocnumber {
107 padding-right: 0.5em;
111 .mw-content-rtl .tocnumber {
124 /* @noflip */div
.floatright
, table
.floatright
{
125 margin: 0 0 .5em .5em;
133 /* @noflip */div
.floatleft
, table
.floatleft
{
134 margin: 0 .5em .5em 0;
146 background-color: transparent
;
150 border: 1px solid
#c8ccd1;
152 background-color: #f8f9fa;
155 /* new block formatting context,
156 * to clear background from floating content */
161 border: 1px solid
#c8ccd1;
169 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
174 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
185 /* …and replace it with the image */
188 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
190 /* Use same SVG support hack as mediawiki.legacy's shared.css */
191 background-image: url
( images
/magnify-clip-ltr
.png
);
193 background-image: linear-gradient
( transparent
, transparent
), url
( images
/magnify-clip-ltr
.svg
);
194 /* Don't annoy people who copy-paste everything too much */
195 -moz-user-select: none
;
196 -webkit-user-select: none
;
197 -ms-user-select: none
;
202 border: 1px solid
#eaecf0;
205 /* Directionality-specific styles for thumbnails - their positioning depends on content language */
208 .mw-content-ltr .thumbcaption {
213 .mw-content-ltr .magnify {
220 .mw-content-ltr div.magnify a {
221 /* Use same SVG support hack as mediawiki.legacy's shared.css */
222 background-image: url
( images
/magnify-clip-ltr
.png
);
224 background-image: linear-gradient
( transparent
, transparent
), url
( images
/magnify-clip-ltr
.svg
);
228 .mw-content-rtl .thumbcaption {
233 .mw-content-rtl .magnify {
240 .mw-content-rtl div.magnify a {
241 /* Use same SVG support hack as mediawiki.legacy's shared.css */
242 background-image: url
( images
/magnify-clip-rtl
.png
);
244 background-image: linear-gradient
( transparent
, transparent
), url
( images
/magnify-clip-rtl
.svg
);
249 margin: .5em 0 1.3em 1.4em;
254 margin: .5em 1.4em 1.3em 0;
257 /* Hide elements that are marked as "empty" according to legacy Tidy rules,
258 * except if a client script removes the mw-hide-empty-elt class from the body
260 body
.mw-hide-empty-elt
.mw-empty-elt
{