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