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