FormOptions: adds doc & tests
[mediawiki.git] / skins / common / oldshared.css
blob034a468e48c3f15f59e960e551fd5a8dbcbff764
1 /*
2 * oldshared.css
3 * This file contains CSS settings common to Wikistandard, Nostalgia and
4 * CologneBlue, the old pre-Monobook skins
5 */
7 /* For clarity, explicitly state some recommendations from <http://www.w3.org/
8 TR/CSS21/sample.html> to make sure the editsection links scale right */
10 h1 { font-size: 2em; }
11 h2 { font-size: 1.5em; }
12 h3 { font-size: 1.17em; }
13 h5 { font-size: .83em; }
14 h6 { font-size: .75em; }
15 h1, h2, h3, h4, h5, h6 {
16 font-weight: bolder;
19 /* Now the custom parts */
21 /* Make edit sections (which are inside h# tags) normal-sized */
22 .editsection {
23 font-weight: normal;
25 h1 .editsection { font-size: 50%; }
26 h2 .editsection { font-size: 66.7%; }
27 h3 .editsection { font-size: 85.5%; }
28 h5 .editsection { font-size: 120%; }
29 h6 .editsection { font-size: 133%; }
31 #footer { clear: both }
32 /* images */
33 /* @noflip */
34 div.floatright {
35 float: right;
36 clear: right;
37 margin: 0 0 1em 1em;
40 /* @noflip */
41 div.floatright p {
42 font-style: italic;
45 /* @noflip */
46 div.floatleft {
47 float: left;
48 clear: left;
49 margin: 0.3em 0.5em 0.5em 0;
52 /* @noflip */
53 div.floatleft p {
54 font-style: italic;
58 /* Print-specific things to hide */
59 .printfooter {
60 display: none;
63 /* table standards */
64 table.rimage {
65 float: right;
66 margin-left: 1em;
67 margin-bottom: 1em;
68 text-align: center;
69 font-size: smaller;
72 /* thumbnails */
73 div.thumb {
74 margin-bottom: .5em;
75 border-style: solid;
76 border-color: white;
77 width: auto;
79 div.thumbinner {
80 border: 1px solid #ccc;
81 padding: 3px !important;
82 background-color: #f9f9f9;
83 font-size: 94%;
84 text-align: center;
85 overflow: hidden;
87 html .thumbimage {
88 border: 1px solid #ccc;
90 html .thumbcaption {
91 border: none;
92 text-align: left;
93 line-height: 1.4em;
94 padding: 3px !important;
95 font-size: 94%;
97 div.magnify {
98 float: right;
99 border: none !important;
100 background: none !important;
102 div.magnify a, div.magnify img {
103 display: block;
104 border: none !important;
105 background: none !important;
107 /* @noflip */
108 div.tright {
109 clear: right;
110 float: right;
111 border-width: .5em 0 .8em 1.4em;
113 /* @noflip */
114 div.tleft {
115 float: left;
116 clear: left;
117 margin-right: .5em;
118 border-width: .5em 1.4em .8em 0;
120 img.thumbborder {
121 border: 1px solid #dddddd;
124 /* Page history styling */
125 /* the auto-generated edit comments */
126 .autocomment { color: #4b4b4b; }
128 img { border: none; }
130 #toc,
131 .toc {
132 border: 1px solid #bba;
133 background-color: #f7f8ff;
134 padding: 5px;
135 font-size: 95%;
136 text-align: center;
138 #toc h2,
139 .toc h2 {
140 display: inline;
141 border: none;
142 padding: 0;
143 font-size: 100%;
144 font-weight: bold;
146 #toc ul,
147 .toc ul {
148 list-style-type: none;
149 list-style-image: none;
150 margin-left: 0;
151 padding-left: 0;
152 text-align: left;
154 #toc ul ul,
155 .toc ul ul {
156 margin: 0 0 0 2em;
158 #toc .toctoggle,
159 .toc .toctoggle {
160 font-size: 94%;
163 .error {
164 color: red;
165 font-size: larger;
168 /* preference page with js-genrated toc */
169 #mw-pref-clear {
170 clear: both;
172 #preftoc {
173 float: left;
174 margin: 1em 1em 1em 1em;
175 width: 13em;
177 #preftoc li {
178 border: 1px solid White;
180 #preftoc li.selected {
181 background-color:#f9f9f9;
182 border:1px dashed #aaaaaa;
184 #preftoc a,
185 #preftoc a:active {
186 display: block;
187 color: #005189;
189 .mw-prefs-buttons {
190 clear: left;
191 float: left;
192 margin-top: 1em;
194 div.htmlform-tip {
195 font-size: 94%;
196 margin-top: 0.4em;
197 color: #666;
199 fieldset.prefsection {
200 margin-top: 1em;
202 fieldset.operaprefsection {
203 margin-left: 15em;
206 /* emulate center */
207 .center {
208 width: 100%;
209 text-align: center;
211 *.center * {
212 margin-left: auto;
213 margin-right: auto;
216 /* small for tables and similar */
217 .small, .small * {
218 font-size: 94%;
220 table.small {
221 font-size: 100%;
224 /* use this instead of #toc for page content */
225 .toccolours {
226 border: 1px solid #aaaaaa;
227 background-color: #f9f9f9;
228 padding: 5px;
229 font-size: 95%;
231 #siteNotice {
232 border: 1px solid #aaaaaa;
233 padding-left: 0.5em;
234 padding-right: 0.5em;
236 .redirectText {
237 font-size: 150%;
238 margin: 5px;
240 .sharedUploadNotice {
241 font-style: italic;
243 span.unpatrolled {
244 font-weight: bold;
245 color: red;
248 span.updatedmarker {
249 color: black;
250 background-color: #00FF00;
253 div.gallerybox {
254 width: 150px;
257 span.comment {
258 font-style: italic;
261 span.changedby {
262 font-size: 95%;
265 .previewnote {
266 text-align: center;
267 color: #cc0000;
269 .editExternally {
270 border-style: solid;
271 border-width: 1px;
272 border-color: gray;
273 background: #ffffff;
274 padding: 3px;
275 margin-top: 0.5em;
276 float: left;
277 font-size: small;
278 text-align: center;
280 .editExternallyHelp {
281 font-style: italic;
282 color: gray;
285 li span.deleted {
286 text-decoration: line-through;
287 color: #888;
288 font-style: italic;
291 /* Classes for EXIF data display */
292 table.mw_metadata {
293 margin-left: 0.5em;
296 table.mw_metadata caption {
297 font-weight: bold;
299 table.mw_metadata th {
300 font-weight: normal;
302 table.mw_metadata td {
303 padding: 0.1em;
306 table.mw_metadata {
307 border: none;
308 border-collapse: collapse;
310 table.mw_metadata td, table.mw_metadata th {
311 border: 1px solid #aaaaaa;
312 padding-left: 4px;
313 padding-right: 4px;
315 table.mw_metadata th {
316 background-color: #f9f9f9;
318 table.mw_metadata td {
319 background-color: #fcfcfc;
321 table.mw_metadata td.spacer {
322 background: inherit;
323 border-top: none;
324 border-bottom: none;
326 table.collapsed tr.collapsable {
327 display: none;
330 .visualClear {
331 clear: both;
334 /* Allmessages table */
335 #allmessagestable th {
336 background-color: #b2b2ff;
339 #allmessagestable tr.orig {
340 background-color: #ffe2e2;
343 #allmessagestable tr.new {
344 background-color: #e2ffe2;
347 #allmessagestable tr.def {
348 background-color: #f0f0ff;
351 #jump-to-nav {
352 display: none;
355 div.multipageimagenavbox {
356 border: solid 1px silver;
357 padding: 4px;
358 margin: 1em;
359 background: #f0f0f0;
362 div.multipageimagenavbox div.thumb {
363 border: none;
364 margin-left: 2em;
365 margin-right: 2em;
368 div.multipageimagenavbox hr {
369 margin: 6px;
372 table.multipageimage td {
373 text-align: center;
377 Table pager (e.g. Special:Imagelist)
378 - remove underlines from the navigation link
379 - collapse borders
380 - set the borders to outsets (similar to Special:Allmessages)
381 - remove line wrapping for all td and th, set background color
382 - restore line wrapping for the last two table cells (description and size)
384 .TablePager_nav a {
385 text-decoration: none;
387 .TablePager {
388 border-collapse: collapse;
390 .TablePager, .TablePager td, .TablePager th {
391 border: 0.15em solid #777777;
392 padding: 0 0.15em 0 0.15em;
394 .TablePager th {
395 background-color: #eeeeff;
397 .TablePager td {
398 background-color: #ffffff;
400 .TablePager tr:hover td {
401 background-color: #eeeeff;
404 .imagelist td, .imagelist th {
405 white-space: nowrap;
407 .imagelist .TablePager_col_links {
408 background-color: #eeeeff;
410 .imagelist .TablePager_col_img_description {
411 white-space: normal;
413 .imagelist th.TablePager_sort {
414 background-color: #ccccff;
417 .templatesUsed {
418 margin-top: 1em;
421 .MediaTransformError {
422 border: thin solid #777;
423 background-color: #ccc;
424 padding: 0.1em;
426 .MediaTransformError td {
427 text-align: center;
428 vertical-align: middle;
429 font-size: 90%;
432 form#specialpages {
433 display: inline;
436 body {
437 direction: ltr;
438 unicode-bidi: embed;
439 background-color: #ffffec;
441 body.ns-0 {
442 background-color: white;
445 /** RTL specific CSS starts here **/
448 * Lists:
449 * The following lines don't have a visible effect on non-Gecko browsers
450 * They fix a problem with Gecko browsers rendering lists to the right of
451 * left-floated objects in an RTL layout.
453 /* @noflip */
454 html > body.rtl div#article ul {
455 display: table;
457 /* @noflip */
458 html > body.rtl div#bodyContent ul#filetoc {
459 display: block;
462 /* RTL specific CSS ends here **/