* (bug 2773) Print style sheet no longer overrides RTL text direction
[lhc/web/wiklou.git] / skins / common / commonPrint.css
1 /*
2 ** MediaWiki Print style sheet for CSS2-capable browsers.
3 ** Copyright Gabriel Wicke, http://www.aulinx.de/
4 **
5 ** Derived from the plone (http://plone.org/) styles
6 ** Copyright Alexander Limi
7 */
8
9 /* Thanks to A List Apart (http://alistapart.com/) for useful extras */
10 a.stub,
11 a.new{ color:#ba0000; text-decoration:none; }
12
13 #toc {
14 /*border:1px solid #2f6fab;*/
15 border:1px solid #aaaaaa;
16 background-color:#f9f9f9;
17 padding:5px;
18 }
19 .tocindent {
20 margin-left: 2em;
21 }
22 .tocline {
23 margin-bottom: 0px;
24 }
25 .toctoggle, .editsection {
26 font-size: smaller;
27 }
28
29 /* images */
30 div.floatright {
31 float: right;
32 margin: 0;
33 position:relative;
34 border: 0.5em solid White;
35 border-width: 0.5em 0 0.8em 1.4em;
36 }
37 div.floatright p { font-style: italic;}
38 div.floatleft {
39 float: left;
40 margin: 0.3em 0.5em 0.5em 0;
41 position:relative;
42 border: 0.5em solid White;
43 border-width: 0.5em 1.4em 0.8em 0;
44 }
45 div.floatleft p { font-style: italic; }
46 /* thumbnails */
47 div.thumb {
48 margin-bottom: 0.5em;
49 border-style: solid; border-color: White;
50 width: auto;
51 overflow: hidden;
52 }
53 div.thumb div {
54 border:1px solid #cccccc;
55 padding: 3px !important;
56 background-color:#f9f9f9;
57 font-size: 94%;
58 text-align: center;
59 }
60 div.thumb div a img {
61 border:1px solid #cccccc;
62 }
63 div.thumb div div.thumbcaption {
64 border: none;
65 padding: 0.3em 0 0.1em 0;
66 }
67 div.magnify { display: none; }
68 div.tright {
69 float: right;
70 border-width: 0.5em 0 0.8em 1.4em;
71 }
72 div.tleft {
73 float: left;
74 margin-right:0.5em;
75 border-width: 0.5em 1.4em 0.8em 0;
76 }
77
78 /* table standards */
79 table.rimage {
80 float:right;
81 width:1pt;
82 position:relative;
83 margin-left:1em;
84 margin-bottom:1em;
85 text-align:center;
86 }
87
88 body {
89 background: White;
90 /*font-size: 11pt !important;*/
91 color: Black;
92 margin: 0;
93 padding: 0;
94 }
95
96 .noprint,
97 div.top,
98 div#column-one,
99 #colophon,
100 .editsection,
101 .toctoggle,
102 .tochidden,
103 div#f-poweredbyico,
104 div#f-copyrightico,
105 li#f-viewcount,
106 li#f-about,
107 li#f-disclaimer {
108 /* Hides all the elements irrelevant for printing */
109 display: none;
110 }
111
112 ul {
113 list-style-type: square;
114 }
115
116 #content {
117 background: none;
118 border: none ! important;
119 font-size: 11pt;
120 padding: 0 ! important;
121 margin: 0 ! important;
122 }
123 #footer {
124 background : white;
125 color : black;
126 border-top: 1px solid black;
127 }
128
129 h1, h2, h3, h4, h5, h6
130 {
131 font-weight: bold;
132 }
133
134 p, .documentDescription {
135 margin: 1em 0 ! important;
136 line-height: 1.2em;
137 }
138
139 .tocindent p {
140 margin: 0 0 0 0 ! important;
141 }
142
143 pre {
144 border: 1pt dashed black;
145 white-space: pre;
146 font-size: 8pt;
147 overflow: auto;
148 padding: 1em 0;
149 background : white;
150 color : black;
151 }
152
153 table.listing,
154 table.listing td {
155 border: 1pt solid black;
156 border-collapse: collapse;
157 }
158
159 a {
160 color: Black !important;
161 padding: 0 !important
162 }
163
164 a:link, a:visited {
165 color: #520;
166 background: transparent;
167 text-decoration: underline;
168 }
169
170 #content a.external.text:after, #content a.external.autonumber:after {
171 /* Expand URLs for printing */
172 content: " (" attr(href) ") ";
173 }
174
175 #globalWrapper {
176 width: 100% !important;
177 min-width: 0 !important;
178 }
179
180 #content {
181 background : white;
182 color : black;
183 }
184
185 #column-content {
186 margin: 0 !important;
187 }
188
189 #column-content #content {
190 padding: 1em;
191 margin: 0 !important;
192 }
193 /* MSIE/Win doesn't understand 'inherit' */
194 a, a.external, a.new, a.stub {
195 color: black ! important;
196 text-decoration: none ! important;
197 }
198
199 /* Continue ... */
200 a, a.external, a.new, a.stub {
201 color: inherit ! important;
202 text-decoration: inherit ! important;
203 }
204
205 img { border: none; }
206 img.tex { vertical-align: middle; }
207 span.texhtml { font-family: serif; }
208
209 div.townBox {
210 position:relative;
211 float:right;
212 background:White;
213 margin-left:1em;
214 border: 1px solid gray;
215 padding:0.3em;
216 width: 200px;
217 overflow: hidden;
218 clear: right;
219 }
220 div.townBox dl {
221 padding: 0;
222 margin: 0 0 0.3em 0;
223 font-size: 96%;
224 }
225 div.townBox dl dt {
226 background: none;
227 margin: 0.4em 0 0 0;
228 }
229 div.townBox dl dd {
230 margin: 0.1em 0 0 1.1em;
231 background-color: #f3f3f3;
232 }
233
234 #siteNotice { display: none; }
235
236 table.gallery {
237 border: 1px solid #cccccc;
238 margin: 2px;
239 padding: 2px;
240 background-color:#ffffff;
241 }
242
243 table.gallery tr {
244 vertical-align:top;
245 }
246
247 div.gallerybox {
248 border: 1px solid #cccccc;
249 margin: 2px;
250 background-color:#f9f9f9;
251 width: 150px;
252 }
253
254 div.gallerybox div.thumb {
255 text-align: center;
256 border: 1px solid #cccccc;
257 margin: 2px;
258 }
259
260 div.gallerytext {
261 font-size: 94%;
262 padding: 2px 4px;
263 }
264
265 /*
266 ** Diff rendering
267 */
268 table.diff { background:white; }
269 td.diff-otitle { background:#ffffff; }
270 td.diff-ntitle { background:#ffffff; }
271 td.diff-addedline {
272 background:#ccffcc;
273 font-size: smaller;
274 border: solid 2px black;
275 }
276 td.diff-deletedline {
277 background:#ffffaa;
278 font-size: smaller;
279 border: dotted 2px black;
280 }
281 td.diff-context {
282 background:#eeeeee;
283 font-size: smaller;
284 }
285 span.diffchange { color: silver; font-weight: bold; text-decoration: underline; }
286