3104a69a0e0f80d30045922524358da8e0925682
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 */
40 /* CSS for backwards-compatibility with cached page renders and creative uses in wikitext */
42 border-collapse: collapse
;
45 /* Remove additional paddings inside table-cells that are not present in <div>s */
63 list-style-type: none
;
64 list-style-image: none
;
74 /* Separate columns for tocnumber and toctext */
75 /* Ignored by IE7 and lower */
80 Text decorations are not propagated to the contents of inline blocks and inline tables,
81 according to <https://www.w3.org/TR/css-text-decor-3/#line-decoration>, and 'display: table-cell'
82 generates an inline table when used without any parent table-rows and tables.
84 text-decoration: inherit
;
87 /* Space between the columns for tocnumber and toctext */
94 .mw-content-ltr .tocnumber {
100 .mw-content-rtl .tocnumber {
116 margin: 0 0 0.5em 0.5em;
122 margin: 0 0.5em 0.5em 0;
127 margin-bottom: 0.5em;
129 background-color: transparent
;
133 border: 1px solid
#c8ccd1;
135 background-color: #f8f9fa;
138 /* new block formatting context,
139 * to clear background from floating content */
144 background-color: #fff;
145 border: 1px solid
#c8ccd1;
153 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
158 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
169 /* …and replace it with the image */
172 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
174 /* Use same SVG support hack as mediawiki.legacy's shared.css */
175 background-image: url
( images
/magnify-clip-ltr
.png
);
177 background-image: linear-gradient
( transparent
, transparent
), url
( images
/magnify-clip-ltr
.svg
);
178 /* Don't annoy people who copy-paste everything too much */
179 -moz-user-select: none
;
180 -webkit-user-select: none
;
181 -ms-user-select: none
;
186 border: 1px solid
#eaecf0;
189 /* Directionality-specific styles for thumbnails - their positioning depends on content language */
192 .mw-content-ltr .thumbcaption {
197 .mw-content-ltr .magnify {
204 .mw-content-ltr div.magnify a {
205 /* Use same SVG support hack as mediawiki.legacy's shared.css */
206 background-image: url
( images
/magnify-clip-ltr
.png
);
208 background-image: linear-gradient
( transparent
, transparent
), url
( images
/magnify-clip-ltr
.svg
);
212 .mw-content-rtl .thumbcaption {
217 .mw-content-rtl .magnify {
224 .mw-content-rtl div.magnify a {
225 /* Use same SVG support hack as mediawiki.legacy's shared.css */
226 background-image: url
( images
/magnify-clip-rtl
.png
);
228 background-image: linear-gradient
( transparent
, transparent
), url
( images
/magnify-clip-rtl
.svg
);
233 margin: 0.5em 0 1.3em 1.4em;
238 margin: 0.5em 1.4em 1.3em 0;
241 /* Hide elements that are marked as "empty" according to legacy Tidy rules,
242 * except if a client script removes the mw-hide-empty-elt class from the body
244 body
.mw-hide-empty-elt
.mw-empty-elt
{