]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/MonoBook/commonPrint.css
RecentChanges --> Recent Changes
[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: 0.5em 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: 0.5em 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-style: solid;
123     border-color: White;
124     width: auto;
125 }
126
127 div.thumb div {
128     border: 1px solid #cccccc;
129     padding: 3px !important;
130     background-color: #f9f9f9;
131     font-size: 94%;
132     text-align: center;
133 }
134
135 div.thumb div a img {
136     border: 1px solid #cccccc;
137 }
138
139 div.thumb div div.thumbcaption {
140     border: none;
141     text-align: left;
142     padding: 0.3em 0 0.1em 0;
143 }
144
145 div.magnify {
146     display: none;
147 }
148
149 div.tright {
150     float: right;
151     border-width: 0.5em 0 0.8em 1.4em;
152 }
153
154 div.tleft {
155     float: left;
156     margin-right: 0.5em;
157     border-width: 0.5em 1.4em 0.8em 0;
158 }
159
160 /* table standards */
161 table.rimage {
162     float: right;
163     width: 1pt;
164     position: relative;
165     margin-left: 1em;
166     margin-bottom: 1em;
167     text-align: center;
168 }
169
170 body {
171     background: White;
172     /*font-size: 11pt !important;*/
173     color: Black;
174     margin: 0;
175     padding: 0;
176 }
177
178 div#p-personal,
179 div.top,
180 div#column-one,
181 #colophon,
182 .editsection,
183 .toctoggle,
184 div#f-poweredbyico,
185 div#f-copyrightico,
186 li#f-viewcount,
187 li#f-about,
188 li#f-disclaimer,
189 div#xhtml-validator,
190 li#pt-logout,
191 li#pt-login,
192 div#p-logo,
193 div.hint,
194 fieldset.wiki-rc-action,
195 span.debug {
196     /* Hides all the elements irrelevant for printing */
197     display: none;
198 }
199
200 ul {
201     list-style-type: square;
202 }
203
204 #content {
205     background: none;
206     border-style: none ! important;
207     font-size: 11pt;
208     padding: 0 ! important;
209     margin: 0 ! important;
210     text-align: left;
211 }
212
213 #footer {
214     border: 1px solid black;
215 }
216
217 h1, h2, h3, h4, h5, h6 {
218     font-weight: bold;
219 }
220
221 p, .documentDescription {
222     margin: 1em 0 ! important;
223     line-height: 1.2em;
224 }
225
226 pre {
227     border: 1pt dashed black;
228     white-space: pre;
229     font-size: 8pt;
230     overflow: auto;
231     padding: 0;
232 }
233
234 table.listing,
235 table.listing td {
236     border: 1pt solid black;
237     border-collapse: collapse;
238 }
239
240 a {
241     color: Black !important;
242     padding: 0 !important
243 }
244
245 a:link, a:visited {
246     color: #520;
247     background-color: transparent;
248     text-decoration: underline;
249 }
250
251 /*
252 #content a:link:after,
253 #content a:visited:after {
254    content: " ( " attr(href) " ) ";
255 }*/
256
257 #globalWrapper {
258     width: 100% !important;
259     min-width: 0 !important;
260 }
261
262 #column-content {
263     margin: 0 !important;
264 }
265
266 #column-content #content {
267     padding: 1em;
268     margin: 0 !important;
269 }
270
271 /* MSIE/Win doesn't understand 'inherit' */
272 a, a.external, a.new, a.stub {
273     color: black ! important;
274     text-decoration: none ! important;
275 }
276
277 /* Continue ... */
278 a, a.external, a.new, a.stub {
279     color: inherit ! important;
280     text-decoration: inherit ! important;
281 }
282
283 /* Show some stuff */
284 .urlexpansion {
285     display: inline ! important;
286 }
287
288 div.townBox {
289     position: relative;
290     float: right;
291     background: white;
292     margin-left: 1em;
293     border: 1px solid gray;
294     padding: 0.3em;
295     width: 200px;
296     overflow: hidden;
297     clear: right;
298 }
299
300 div.townBox dl {
301     padding: 0;
302     margin: 0 0 0.3em 0;
303     font-size: 96%;
304 }
305
306 div.townBox dl dt {
307     background: none;
308     margin: 0.4em 0 0 0;
309 }
310
311 div.townBox dl dd {
312     margin: 0.1em 0 0 1.1em;
313     background-color: #f3f3f3;
314 }