Merge "Don't check namespace in SpecialWantedtemplates"
[lhc/web/wiklou.git] / resources / src / mediawiki.skinning / content.css
1 /**
2 * MediaWiki style sheet for general styles on complex content
3 *
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.
6 */
7
8 /* Table of Contents */
9 #toc,
10 .toc,
11 .mw-warning,
12 .toccolours {
13 border: 1px solid #aaa;
14 background-color: #f9f9f9;
15 padding: 5px;
16 font-size: 95%;
17 }
18
19 /**
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.
22 *
23 * We use display:table. Even though it should only contain other table-* display
24 * elements, there are no known problems with using this.
25 *
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.
30 */
31 #toc,
32 .toc {
33 display: inline-block;
34 display: table;
35
36 /* IE7 and earlier */
37 zoom: 1;
38 *display: inline;
39
40 padding: 7px;
41 }
42
43 /* CSS for backwards-compatibility with cached page renders and creative uses in wikitext */
44 table#toc,
45 table.toc {
46 border-collapse: collapse;
47 }
48
49 /* Remove additional paddings inside table-cells that are not present in <div>s */
50 table#toc td,
51 table.toc td {
52 padding: 0;
53 }
54
55 #toc h2,
56 .toc h2 {
57 display: inline;
58 border: none;
59 padding: 0;
60 font-size: 100%;
61 font-weight: bold;
62 }
63
64 #toc #toctitle,
65 .toc #toctitle,
66 #toc .toctitle,
67 .toc .toctitle {
68 text-align: center;
69 }
70
71 #toc ul,
72 .toc ul {
73 list-style-type: none;
74 list-style-image: none;
75 margin-left: 0;
76 padding: 0;
77 text-align: left;
78 }
79
80 #toc ul ul,
81 .toc ul ul {
82 margin: 0 0 0 2em;
83 }
84
85 #toc .toctoggle,
86 .toc .toctoggle {
87 font-size: 94%;
88 }
89
90 /* Warning */
91 .mw-warning {
92 margin-left: 50px;
93 margin-right: 50px;
94 text-align: center;
95 }
96
97 /* Images */
98 /* @noflip */div.floatright, table.floatright {
99 margin: 0 0 .5em .5em;
100 border: 0;
101 }
102
103 div.floatright p {
104 font-style: italic;
105 }
106
107 /* @noflip */div.floatleft, table.floatleft {
108 margin: 0 .5em .5em 0;
109 border: 0;
110 }
111
112 div.floatleft p {
113 font-style: italic;
114 }
115
116 /* Thumbnails */
117 div.thumb {
118 margin-bottom: .5em;
119 width: auto;
120 background-color: transparent;
121 }
122
123 div.thumbinner {
124 border: 1px solid #ccc;
125 padding: 3px;
126 background-color: #f9f9f9;
127 font-size: 94%;
128 text-align: center;
129 overflow: hidden;
130 }
131
132 html .thumbimage {
133 border: 1px solid #ccc;
134 }
135
136 html .thumbcaption {
137 border: none;
138 line-height: 1.4em;
139 padding: 3px;
140 font-size: 94%;
141 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
142 text-align: left;
143 }
144
145 div.magnify {
146 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
147 float: right;
148 margin-left: 3px;
149 }
150
151 div.magnify a {
152 display: block;
153 /* Hide the text… */
154 text-indent: 15px;
155 white-space: nowrap;
156 overflow: hidden;
157 /* …and replace it with the image */
158 width: 15px;
159 height: 11px;
160 /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */
161
162 /* Use same SVG support hack as mediawiki.legacy's shared.css */
163 background-image: url(images/magnify-clip-ltr.png);
164 /* @embed */
165 background-image: -webkit-linear-gradient(transparent, transparent), url(images/magnify-clip-ltr.svg);
166 /* @embed */
167 background-image: linear-gradient(transparent, transparent), url(images/magnify-clip-ltr.svg);
168 /* Don't annoy people who copy-paste everything too much */
169 -moz-user-select: none;
170 -webkit-user-select: none;
171 -ms-user-select: none;
172 user-select: none;
173 }
174
175 img.thumbborder {
176 border: 1px solid #dddddd;
177 }
178
179 /* Directionality-specific styles for thumbnails - their positioning depends on content language */
180
181 /* @noflip */
182 .mw-content-ltr .thumbcaption {
183 text-align: left;
184 }
185
186 /* @noflip */
187 .mw-content-ltr .magnify {
188 float: right;
189 margin-left: 3px;
190 margin-right: 0;
191 }
192
193 /* @noflip */
194 .mw-content-ltr div.magnify a {
195 /* Use same SVG support hack as mediawiki.legacy's shared.css */
196 background-image: url(images/magnify-clip-ltr.png);
197 /* @embed */
198 background-image: -webkit-linear-gradient(transparent, transparent), url(images/magnify-clip-ltr.svg);
199 /* @embed */
200 background-image: linear-gradient(transparent, transparent), url(images/magnify-clip-ltr.svg);
201 }
202
203 /* @noflip */
204 .mw-content-rtl .thumbcaption {
205 text-align: right;
206 }
207
208 /* @noflip */
209 .mw-content-rtl .magnify {
210 float: left;
211 margin-left: 0;
212 margin-right: 3px;
213 }
214
215 /* @noflip */
216 .mw-content-rtl div.magnify a {
217 /* Use same SVG support hack as mediawiki.legacy's shared.css */
218 background-image: url(images/magnify-clip-rtl.png);
219 /* @embed */
220 background-image: -webkit-linear-gradient(transparent, transparent), url(images/magnify-clip-rtl.svg);
221 /* @embed */
222 background-image: linear-gradient(transparent, transparent), url(images/magnify-clip-rtl.svg);
223 }
224
225 /* @noflip */
226 div.tright {
227 margin: .5em 0 1.3em 1.4em;
228 }
229
230 /* @noflip */
231 div.tleft {
232 margin: .5em 1.4em 1.3em 0;
233 }