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 */
12 border: 1px solid
#a2a9b1;
13 background-color: #f8f9fa;
19 * We want to display the ToC element with intrinsic width in block mode. The fit-content
20 * value for width is however not supported by large groups of browsers.
22 * We use display:table. Even though it should only contain other table-* display
23 * elements, there are no known problems with using this.
25 * Because IE < 8 and other older browsers don't support display:table, we fallback to
26 * using inline-block mode, which features at least intrinsic width, but won't clear preceding
27 * inline elements. In practice inline elements surrounding the TOC are uncommon enough that
28 * this is an acceptable sacrifice.
31 display: inline-block
;
36 *display: inline
; /* stylelint-disable declaration-block-no-duplicate-properties */
41 /* CSS for backwards-compatibility with cached page renders and creative uses in wikitext */
43 border-collapse: collapse
;
46 /* Remove additional paddings inside table-cells that are not present in <div>s */
64 list-style-type: none
;
65 list-style-image: none
;
75 /* Separate columns for tocnumber and toctext */
76 /* Ignored by IE7 and lower */
81 Text decorations are not propagated to the contents of inline blocks and inline tables,
82 according to <https://www.w3.org/TR/css-text-decor-3/#line-decoration>, and 'display: table-cell'
83 generates an inline table when used without any parent table-rows and tables.
85 text-decoration: inherit
;
88 /* Space between the columns for tocnumber and toctext */
95 .mw-content-ltr .tocnumber {
101 .mw-content-rtl .tocnumber {
117 margin: 0 0 0.5em 0.5em;
123 margin: 0 0.5em 0.5em 0;
128 margin-bottom: 0.5em;
130 background-color: transparent
;
134 border: 1px solid
#c8ccd1;
136 background-color: #f8f9fa;
139 /* new block formatting context,
140 * to clear background from floating content */
145 background-color: #fff;
146 border: 1px solid
#c8ccd1;
154 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
159 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
170 /* …and replace it with the image */
173 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
175 /* Use same SVG support hack as mediawiki.legacy's shared.css */
176 background-image: url
( images
/magnify-clip-ltr
.png
);
178 background-image: linear-gradient
( transparent
, transparent
), url
( images
/magnify-clip-ltr
.svg
);
179 /* Don't annoy people who copy-paste everything too much */
180 -moz-user-select: none
;
181 -webkit-user-select: none
;
182 -ms-user-select: none
;
187 border: 1px solid
#eaecf0;
190 /* Directionality-specific styles for thumbnails - their positioning depends on content language */
193 .mw-content-ltr .thumbcaption {
198 .mw-content-ltr .magnify {
205 .mw-content-ltr div.magnify a {
206 /* Use same SVG support hack as mediawiki.legacy's shared.css */
207 background-image: url
( images
/magnify-clip-ltr
.png
);
209 background-image: linear-gradient
( transparent
, transparent
), url
( images
/magnify-clip-ltr
.svg
);
213 .mw-content-rtl .thumbcaption {
218 .mw-content-rtl .magnify {
225 .mw-content-rtl div.magnify a {
226 /* Use same SVG support hack as mediawiki.legacy's shared.css */
227 background-image: url
( images
/magnify-clip-rtl
.png
);
229 background-image: linear-gradient
( transparent
, transparent
), url
( images
/magnify-clip-rtl
.svg
);
234 margin: 0.5em 0 1.3em 1.4em;
239 margin: 0.5em 1.4em 1.3em 0;
242 /* Hide elements that are marked as "empty" according to legacy Tidy rules,
243 * except if a client script removes the mw-hide-empty-elt class from the body
245 body
.mw-hide-empty-elt
.mw-empty-elt
{