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