]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/MonoBook/commonPrint.css
Translate quotes
[SourceForge/phpwiki.git] / themes / MonoBook / 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 @page {
10     size: A4 portrait;
11     margin: 17mm 10mm 17mm 10mm;
12 }
13
14 h1 {
15     string-set: header content();
16 }
17
18 @page :left {
19
20 @top-left {
21     content: "Phpwiki";
22   }
23 @top-right {
24     content: string(header);
25   }
26 @bottom-left {
27     content: "Page " counter(page) " of " counter(pages);
28   }
29     }
30
31 @page :right {
32
33 @top-left {
34     content: string(header);
35   }
36 @top-right {
37     content: "Phpwiki";
38   }
39 @bottom-right {
40     content: "Page " counter(page) " of " counter(pages);
41   }
42     }
43
44 @page :first {
45
46 @top-right {
47     content: normal;
48   }
49 @top-left {
50     content: normal;
51   }
52     }
53
54 h1, h2, h3, h4, h5, h6 {
55     page-break-after: avoid;
56 }
57
58 /* Do not cut tables with class "nobreak" */
59
60 table.nobreak {
61     page-break-inside: avoid !important;
62 }
63
64 /* Thanks to A List Apart (http://alistapart.com/) for useful extras */
65 a.stub,
66 a.new {
67     color: #ba0000;
68     text-decoration: none;
69 }
70
71 .toc,
72 #toc {
73     border: 1px solid #aaaaaa;
74     background-color: #f9f9f9;
75     padding: 5px;
76 }
77
78 .tocindent {
79     margin-left: 2em;
80 }
81
82 .tocline {
83     margin-bottom: 0;
84 }
85
86 .toctoggle, .editsection {
87     font-size: smaller;
88 }
89
90 div.toclist a::after {
91     content: leader('.') target-counter(attr(href), page);
92 }
93
94 /* images */
95 div.floatright {
96     float: right;
97     margin: 0;
98     position: relative;
99     border: solid white;
100     border-width: 0.5em 0 0.8em 1.4em;
101 }
102
103 div.floatright p {
104     font-style: italic;
105 }
106
107 div.floatleft {
108     float: left;
109     margin: 0.3em 0.5em 0.5em 0;
110     position: relative;
111     border: solid white;
112     border-width: 0.5em 1.4em 0.8em 0;
113 }
114
115 div.floatleft p {
116     font-style: italic;
117 }
118
119 /* thumbnails */
120 div.thumb {
121     margin-bottom: 0.5em;
122     border: solid white;
123     width: auto;
124 }
125
126 div.thumb div {
127     border: 1px solid #cccccc;
128     padding: 3px !important;
129     background-color: #f9f9f9;
130     font-size: 94%;
131     text-align: center;
132 }
133
134 div.thumb div a img {
135     border: 1px solid #cccccc;
136 }
137
138 div.thumb div div.thumbcaption {
139     border: none;
140     text-align: left;
141     padding: 0.3em 0 0.1em 0;
142 }
143
144 div.magnify {
145     display: none;
146 }
147
148 div.tright {
149     float: right;
150     border-width: 0.5em 0 0.8em 1.4em;
151 }
152
153 div.tleft {
154     float: left;
155     margin-right: 0.5em;
156     border-width: 0.5em 1.4em 0.8em 0;
157 }
158
159 /* table standards */
160 table.rimage {
161     float: right;
162     width: 1pt;
163     position: relative;
164     margin-left: 1em;
165     margin-bottom: 1em;
166     text-align: center;
167 }
168
169 body {
170     background: White;
171     /*font-size: 11pt !important;*/
172     color: Black;
173     margin: 0;
174     padding: 0;
175 }
176
177 div#p-personal,
178 div.top,
179 div#column-one,
180 #colophon,
181 .editsection,
182 .toctoggle,
183 div#f-poweredbyico,
184 div#f-copyrightico,
185 li#f-viewcount,
186 li#f-about,
187 li#f-disclaimer,
188 div#xhtml-validator,
189 li#pt-logout,
190 li#pt-login,
191 div#p-logo,
192 div.hint,
193 fieldset.wiki-rc-action,
194 span.debug {
195     /* Hides all the elements irrelevant for printing */
196     display: none;
197 }
198
199 ul {
200     list-style-type: square;
201 }
202
203 #content {
204     background: none;
205     border-style: none ! important;
206     font-size: 11pt;
207     padding: 0 ! important;
208     margin: 0 ! important;
209     text-align: left;
210 }
211
212 #footer {
213     border: 1px solid black;
214 }
215
216 h1, h2, h3, h4, h5, h6 {
217     font-weight: bold;
218 }
219
220 p, .documentDescription {
221     margin: 1em 0 ! important;
222     line-height: 1.2em;
223 }
224
225 pre {
226     border: 1pt dashed black;
227     white-space: pre;
228     font-size: 8pt;
229     overflow: auto;
230     padding: 0;
231 }
232
233 table.listing,
234 table.listing td {
235     border: 1pt solid black;
236     border-collapse: collapse;
237 }
238
239 a {
240     color: Black !important;
241     padding: 0 !important
242 }
243
244 a:link, a:visited {
245     color: #520;
246     background-color: transparent;
247     text-decoration: underline;
248 }
249
250 /*
251 #content a:link:after,
252 #content a:visited:after {
253    content: " ( " attr(href) " ) ";
254 }*/
255
256 #globalWrapper {
257     width: 100% !important;
258     min-width: 0 !important;
259 }
260
261 #column-content {
262     margin: 0 !important;
263 }
264
265 #column-content #content {
266     padding: 1em;
267     margin: 0 !important;
268 }
269
270 /* MSIE/Win doesn't understand 'inherit' */
271 a, a.external, a.new, a.stub {
272     color: black ! important;
273     text-decoration: none ! important;
274 }
275
276 /* Continue ... */
277 a, a.external, a.new, a.stub {
278     color: inherit ! important;
279     text-decoration: inherit ! important;
280 }
281
282 /* Show some stuff */
283 .urlexpansion {
284     display: inline ! important;
285 }
286
287 div.townBox {
288     position: relative;
289     float: right;
290     background: white;
291     margin-left: 1em;
292     border: 1px solid gray;
293     padding: 0.3em;
294     width: 200px;
295     overflow: hidden;
296     clear: right;
297 }
298
299 div.townBox dl {
300     padding: 0;
301     margin: 0 0 0.3em 0;
302     font-size: 96%;
303 }
304
305 div.townBox dl dt {
306     background: none;
307     margin: 0.4em 0 0 0;
308 }
309
310 div.townBox dl dd {
311     margin: 0.1em 0 0 1.1em;
312     background-color: #f3f3f3;
313 }