center not working in standard/cologne blue/nostalgia. BUG #963227
[lhc/web/wiklou.git] / stylesheets / common.css
1 /*
2 * common.css
3 * This file contains CSS settings common to Wikistandard, Nostalgia and CologneBlue
4 */
5 #footer { clear: both }
6 /* images */
7 div.floatright { float: right; margin: 0 0 1em 1em; }
8 div.floatright p { font-style: italic; }
9 div.floatleft { float: left; margin: 0.3em 0.5em 0.5em 0; }
10 div.floatleft p { font-style: italic; }
11
12
13 /* Print-specific things to hide */
14 .urlexpansion, .printfooter {
15 display: none;
16 }
17
18 /* table standards */
19 table.rimage {
20 float:right;
21 width:1pt;
22 margin-left:1em;
23 margin-bottom:1em;
24 text-align:center;
25 font-size:smaller;
26 }
27
28 /* thumbnails */
29 div.thumb {
30 margin: 10px;
31 text-align: center;
32 width: auto;
33 }
34 div.thumb div {
35 border: 1px solid #8888aa;
36 background-color: #f7f8ff;
37 padding: 2px;
38 font-size: 94%;
39 }
40 div.thumb div * {
41 border: none;
42 background: none;
43 }
44 div.thumb img {
45 border:1px solid #8888AA;
46 margin-bottom:3px;
47 background:#FFFFFF;
48 }
49 div.thumbcaption,
50 div.thumbcaption * {
51 border: none !important;
52 background: none !important;
53 }
54 div.thumbcaption {
55 padding: 0.2em 0 0.2em 0 !important;
56 text-align: left !important;
57 }
58 div.tright {
59 float: right;
60 margin-left:0.5em;
61 }
62 div.tleft {
63 float: left;
64 margin-right:0.5em;
65 }
66
67 /* Page history styling */
68 /* the auto-generated edit comments */
69 .autocomment { color: gray; }
70 #pagehistory span.user {
71 margin-left: 1.4em;
72 margin-right: 0.4em;
73 }
74 #pagehistory span.minor { font-weight: bold; }
75 #pagehistory li { border: 1px solid White; }
76 #pagehistory li.selected {
77 background-color:#f9f9f9;
78 border:1px dashed #aaaaaa;
79 }
80
81 table.diff {
82 background:white;
83 }
84 td.diff-otitle {
85 background:#cccccc;
86 }
87 td.diff-ntitle {
88 background:#cccccc;
89 }
90 td.diff-addedline {
91 background:#ccffcc;
92 }
93 td.diff-deletedline {
94 background:#ffffaa;
95 }
96 td.diff-context {
97 background:#eeeeee;
98 }
99
100 img { border: none; }
101 img.tex { vertical-align: middle; }
102
103
104 #toc {
105 border: 1px solid #8888aa;
106 background-color: #f7f8ff;
107 padding: 5px;
108 font-size: 95%;
109 }
110
111 .error {
112 color: red;
113 font-size: larger;
114 }
115
116 /* preference page with js-genrated toc */
117 #preftoc {
118 float: left;
119 margin: 1em 1em 1em 1em;
120 width: 13em;
121 }
122 #preftoc li { border: 1px solid White; }
123 #preftoc li.selected {
124 background-color:#f9f9f9;
125 border:1px dashed #aaaaaa;
126 }
127 #preftoc a,
128 #preftoc a:active {
129 display: block;
130 color: #005189;
131 }
132 #prefcontrol {
133 clear: left;
134 float: left;
135 margin-top: 1em;
136 }
137 div.prefsectiontip {
138 font-size: 94%;
139 margin-top: 1em;
140 }
141 fieldset.prefsection { margin-top: 1em }
142 fieldset.operaprefsection { margin-left: 15em }
143
144 /* emulate center */
145 .center {
146 width: 100%;
147 text-align: center;
148 }
149 *.center * {
150 margin-left: auto;
151 margin-right: auto;
152 }
153