Special:Preferences: Use OOjs UI
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / oldshared.css
1 /**
2 * oldshared.css
3 * This file contains CSS settings common to Wikistandard, Nostalgia and
4 * CologneBlue, the old pre-Monobook skins
5 */
6
7 /* For clarity, explicitly state some recommendations from
8 * https://www.w3.org/TR/CSS21/sample.html to make sure the editsection links scale right
9 */
10
11 h1 {
12 font-size: 2em;
13 }
14
15 h2 {
16 font-size: 1.5em;
17 }
18
19 h3 {
20 font-size: 1.17em;
21 }
22
23 h4 {
24 font-size: 1.11em;
25 }
26
27 h5 {
28 font-size: 1.05em;
29 }
30
31 h6 {
32 font-size: 1em;
33 }
34
35 h1,
36 h2,
37 h3,
38 h4,
39 h5,
40 h6 {
41 font-weight: bolder;
42 }
43
44 /* Now the custom parts */
45
46 #footer {
47 clear: both;
48 }
49
50 /* images */
51 /* @noflip */
52 div.floatright {
53 float: right;
54 clear: right;
55 margin: 0 0 1em 1em;
56 }
57
58 /* @noflip */
59 div.floatright p {
60 font-style: italic;
61 }
62
63 /* @noflip */
64 div.floatleft {
65 float: left;
66 clear: left;
67 margin: 0.3em 0.5em 0.5em 0;
68 }
69
70 /* @noflip */
71 div.floatleft p {
72 font-style: italic;
73 }
74
75 /* table standards */
76 table.rimage {
77 float: right;
78 margin-left: 1em;
79 margin-bottom: 1em;
80 text-align: center;
81 font-size: smaller;
82 }
83
84 /* thumbnails */
85 div.thumb {
86 margin-bottom: 0.5em;
87 border-style: solid;
88 border-color: #fff;
89 width: auto;
90 }
91
92 div.thumbinner {
93 border: 1px solid #ccc;
94 padding: 3px;
95 background-color: #f9f9f9;
96 font-size: 94%;
97 text-align: center;
98 /* new block formatting context,
99 * to clear background from floating content */
100 overflow: hidden;
101 }
102
103 html .thumbimage {
104 border: 1px solid #ccc;
105 }
106
107 html .thumbcaption {
108 border: 0;
109 line-height: 1.4em;
110 padding: 3px;
111 font-size: 94%;
112 text-align: left;
113 }
114
115 div.magnify {
116 float: right;
117 margin-left: 3px;
118 }
119
120 div.magnify a {
121 display: block;
122 /* Hide the text… */
123 text-indent: 15px;
124 white-space: nowrap;
125 overflow: hidden;
126 /* …and replace it with the image */
127 width: 15px;
128 height: 11px;
129 /* Use same SVG support hack as mediawiki.legacy's shared.css */
130 background: url( images/magnify-clip-ltr.png ) center center no-repeat;
131 /* @embed */
132 background-image: linear-gradient( transparent, transparent ), url( images/magnify-clip-ltr.svg );
133 /* Don't annoy people who copy-paste everything too much */
134 -moz-user-select: none;
135 -webkit-user-select: none;
136 -ms-user-select: none;
137 user-select: none;
138 }
139
140 /* @noflip */
141 div.tright {
142 clear: right;
143 float: right;
144 border-width: 0.5em 0 0.8em 1.4em;
145 }
146
147 /* @noflip */
148 div.tleft {
149 float: left;
150 clear: left;
151 margin-right: 0.5em;
152 border-width: 0.5em 1.4em 0.8em 0;
153 }
154
155 img.thumbborder {
156 border: 1px solid #ddd;
157 }
158
159 /* Page history styling */
160 /* the auto-generated edit comments */
161 .autocomment {
162 color: #4b4b4b;
163 }
164
165 img {
166 border: 0;
167 }
168
169 #toc,
170 .toc {
171 border: 1px solid #bba;
172 background-color: #f7f8ff;
173 padding: 7px;
174 font-size: 95%;
175 text-align: center;
176 display: inline-block;
177 display: table;
178
179 /* IE7 and earlier */
180 zoom: 1;
181 *display: inline; /* stylelint-disable-line declaration-block-no-duplicate-properties */
182 }
183
184 /* CSS for backwards-compatibility with cached page renders and creative uses in wikitext */
185 table#toc,
186 table.toc {
187 border-collapse: collapse;
188 }
189
190 /* Remove additional paddings inside table-cells that are not present in <div>s */
191 table#toc td,
192 table.toc td {
193 padding: 0;
194 }
195
196 #toc h2,
197 .toc h2 {
198 display: inline;
199 border: 0;
200 padding: 0;
201 font-size: 100%;
202 font-weight: bold;
203 }
204
205 #toc ul,
206 .toc ul {
207 list-style-type: none;
208 list-style-image: none;
209 padding: 0;
210 text-align: left;
211 }
212
213 #toc ul ul,
214 .toc ul ul {
215 margin: 0 0 0 2em;
216 }
217
218 .error {
219 color: #f00;
220 font-size: larger;
221 }
222
223 .mw-prefs-buttons {
224 clear: left;
225 float: left;
226 margin-top: 1em;
227 }
228
229 div.htmlform-tip {
230 font-size: 94%;
231 margin-top: 0.4em;
232 color: #666;
233 }
234
235 /* emulate center */
236 .center {
237 width: 100%;
238 text-align: center;
239 }
240
241 *.center * {
242 margin-left: auto;
243 margin-right: auto;
244 }
245
246 /* small for tables and similar */
247 .small {
248 font-size: 94%;
249 }
250
251 table.small {
252 font-size: 100%;
253 }
254
255 /* use this instead of #toc for page content */
256 .toccolours {
257 border: 1px solid #aaa;
258 background-color: #f9f9f9;
259 padding: 5px;
260 font-size: 95%;
261 }
262
263 #siteNotice {
264 border: 1px solid #aaa;
265 padding-left: 0.5em;
266 padding-right: 0.5em;
267 }
268
269 .sharedUploadNotice {
270 font-style: italic;
271 }
272
273 span.unpatrolled {
274 font-weight: bold;
275 color: #f00;
276 }
277
278 div.gallerybox {
279 width: 150px;
280 }
281
282 span.comment {
283 font-style: italic;
284 }
285
286 .previewnote {
287 text-align: center;
288 color: #c00;
289 }
290
291 .editExternally {
292 border: 1px solid #808080;
293 background: #fff;
294 padding: 3px;
295 margin-top: 0.5em;
296 float: left;
297 font-size: small;
298 text-align: center;
299 }
300
301 .editExternallyHelp {
302 font-style: italic;
303 color: #808080;
304 }
305
306 li span.deleted {
307 text-decoration: line-through;
308 color: #888;
309 font-style: italic;
310 }
311
312 /* Classes for Exif data display */
313 table.mw_metadata {
314 margin-left: 0.5em;
315 border: 0;
316 border-collapse: collapse;
317 }
318
319 table.mw_metadata caption {
320 font-weight: bold;
321 }
322
323 table.mw_metadata td,
324 table.mw_metadata th {
325 border: 1px solid #aaa;
326 padding-left: 4px;
327 padding-right: 4px;
328 }
329
330 table.mw_metadata th {
331 background-color: #f9f9f9;
332 font-weight: normal;
333 }
334
335 table.mw_metadata td {
336 background-color: #fcfcfc;
337 padding-top: 0.1em;
338 padding-bottom: 0.1em;
339 }
340
341 table.mw_metadata td.spacer {
342 background: inherit;
343 border-width: 0 1px;
344 }
345
346 .visualClear {
347 clear: both;
348 }
349
350 /* Allmessages table */
351 #allmessagestable th {
352 background-color: #b2b2ff;
353 }
354
355 #allmessagestable tr.orig {
356 background-color: #ffe2e2;
357 }
358
359 #allmessagestable tr.new {
360 background-color: #e2ffe2;
361 }
362
363 #allmessagestable tr.def {
364 background-color: #f0f0ff;
365 }
366
367 #jump-to-nav {
368 display: none;
369 }
370
371 div.multipageimagenavbox {
372 border: 1px solid #c0c0c0;
373 padding: 4px;
374 margin: 1em;
375 background: #f0f0f0;
376 }
377
378 div.multipageimagenavbox div.thumb {
379 border: 0;
380 margin-left: 2em;
381 margin-right: 2em;
382 }
383
384 div.multipageimagenavbox hr {
385 margin: 6px;
386 }
387
388 table.multipageimage td {
389 text-align: center;
390 }
391
392 .templatesUsed {
393 margin-top: 1em;
394 }
395
396 .MediaTransformError {
397 border: thin solid #777;
398 background-color: #ccc;
399 padding: 0.1em;
400 }
401
402 .MediaTransformError td {
403 text-align: center;
404 vertical-align: middle;
405 font-size: 90%;
406 }
407
408 form#specialpages {
409 display: inline;
410 }
411
412 body {
413 direction: ltr;
414 unicode-bidi: embed;
415 background-color: #ffffec;
416 }
417
418 body.ns-0 {
419 background-color: #fff;
420 }
421
422 /** RTL specific CSS starts here **/
423
424 /**
425 * Lists:
426 * The following lines don't have a visible effect on non-Gecko browsers
427 * They fix a problem with Gecko browsers rendering lists to the right of
428 * left-floated objects in an RTL layout.
429 */
430 /* @noflip */
431 html > body.rtl div#article ul {
432 display: table;
433 }
434
435 /* @noflip */
436 html > body.rtl .mw-body ul#filetoc {
437 display: block;
438 }
439
440 /** RTL specific CSS ends here **/