source: branches/2.2/filemanager/tp/dompdf/lib/res/html.css @ 3019

Revision 3019, 6.8 KB checked in by amuller, 14 years ago (diff)

Ticket #1135 - Corrigindo CSS e adicionando filemanager

Line 
1/**
2 * DOMPDF - PHP5 HTML to PDF renderer
3 *
4 * File: $RCSfile: html.css,v $
5 * Created on: 2004-08-04
6 *
7 * Copyright (c) 2004 - Benj Carson <benjcarson@digitaljunkies.ca>
8 *               1998 - Netscape Communications Corporation
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this library in the file LICENSE.LGPL; if not, write to the
22 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
23 * 02111-1307 USA
24 *
25 * Originally from mozilla (http://www.mozilla.org).  Original code was
26 * licensed under the NPL, with the option of release under the GPL or LGPL.
27 * This file is hence released under the LGPL.
28 *
29 * The Original Code is mozilla.org code.
30 *
31 * The Initial Developer of the Original Code is
32 * Netscape Communications Corporation.
33 * Portions created by the Initial Developer are Copyright (C) 1998
34 * the Initial Developer. All Rights Reserved.
35 *
36 * Contributor(s):
37 *      Blake Ross <BlakeR1234@aol.com>
38 *
39 * The latest version of DOMPDF might be available at:
40 * http://www.digitaljunkies.ca/dompdf
41 *
42 * @link http://www.digitaljunkies.ca/dompdf
43 * @copyright 2004 Benj Carson
44 * @author Benj Carson <benjcarson@digitaljunkies.ca>
45 * @package dompdf
46 * @version 0.3
47 */
48
49/* $Id: html.css,v 1.4 2006-04-05 20:09:00 benjcarson Exp $ */
50
51
52html {
53  display: -dompdf-page;
54}
55
56/* blocks */
57
58div, map, dt, isindex {
59  display: block;
60}
61
62body {
63  page-break-before: avoid;
64  display: block;
65  margin: 8px;
66}
67
68p, dl, multicol {
69  display: block;
70  margin: 1em 0;
71}
72
73dd {
74  display: block;
75  margin-left: 40px;
76}
77
78blockquote {
79  display: block;
80  margin: 1em 40px;
81}
82
83address {
84  display: block;
85  font-style: italic;
86}
87
88center {
89  display: block;
90  text-align: center;
91}
92
93blockquote[type=cite] {
94  display: block;
95  margin: 1em 0px;
96  padding-left: 1em;
97  border-left: solid;
98  border-color: blue;
99  border-width: thin;
100}
101
102h1 {
103  display: block;
104  font-size: 2em;
105  font-weight: bold;
106  margin: .67em 0;
107}
108
109h2 {
110  display: block;
111  font-size: 1.5em;
112  font-weight: bold;
113  margin: .83em 0;
114}
115
116h3 {
117  display: block;
118  font-size: 1.17em;
119  font-weight: bold;
120  margin: 1em 0;
121}
122
123h4 {
124  display: block;
125  font-weight: bold;
126  margin: 1.33em 0;
127}
128
129h5 {
130  display: block;
131  font-size: 0.83em;
132  font-weight: bold;
133  margin: 1.67em 0;
134}
135
136h6 {
137  display: block;
138  font-size: 0.67em;
139  font-weight: bold;
140  margin: 2.33em 0;
141}
142
143listing {
144  display: block;
145  font-family: fixed;
146  font-size: medium;
147  white-space: pre;
148  margin: 1em 0;
149}
150
151plaintext, xmp, pre {
152  display: block;
153  font-family: fixed;
154  white-space: pre;
155  margin: 1em 0;
156}
157
158/* tables */
159
160table {
161  display: table;
162  border-spacing: 2px;
163  border-collapse: separate;
164  margin-top: 0;
165  margin-bottom: 0;
166  text-indent: 0;
167}
168
169/* make sure backgrounds are inherited in tables  -- see bug 4510 */
170td, th, tr {
171  background: inherit;
172}
173   
174/* caption inherits from table not table-outer */ 
175caption {
176  display: table-caption;
177  text-align: center;
178}
179
180tr {
181  display: table-row;
182  vertical-align: inherit;
183}
184
185col {
186  display: table-column;
187}
188
189colgroup {
190  display: table-column-group;
191}
192
193tbody {
194  display: table-row-group;
195  vertical-align: middle;
196}
197
198thead {
199  display: table-header-group;
200  vertical-align: middle;
201}
202
203tfoot {
204  display: table-footer-group;
205  vertical-align: middle;
206}
207
208td {
209  display: table-cell;
210  vertical-align: inherit;
211  text-align: inherit;
212  padding: 1px;
213}
214
215th {
216  display: table-cell;
217  vertical-align: inherit;
218  font-weight: bold;
219  padding: 1px;
220  text-align: center;
221}
222
223/* inlines */
224
225q:before {
226  content: open-quote;
227}
228
229q:after {
230  content: close-quote;
231}
232
233a:link {
234  color: #00c;
235  text-decoration: underline;
236}
237
238b, strong {
239  font-weight: bolder;
240}
241
242i, cite, em, var, dfn {
243  font-style: italic;
244}
245
246tt, code, kbd, samp {
247  font-family: fixed;
248}
249
250u, ins {
251  text-decoration: underline;
252}
253
254s, strike, del {
255  text-decoration: line-through;
256}
257
258blink {
259  text-decoration: blink;
260}
261
262big {
263  font-size: larger;
264}
265
266small {
267  font-size: smaller;
268}
269
270sub {
271  vertical-align: sub;
272  font-size: smaller;
273  line-height: normal;
274}
275
276sup {
277  vertical-align: super;
278  font-size: smaller;
279  line-height: normal;
280}
281
282nobr {
283  white-space: nowrap;
284}
285
286/* lists */
287
288ul, menu, dir {
289  display: block;
290  list-style-type: disc;
291  margin: 1em 0;
292  padding-left: 40px;
293}
294
295ol {
296  display: block;
297  list-style-type: decimal;
298  margin: 1em 0;
299  padding-left: 40px;
300}
301
302li {
303  display: list-item;
304}
305
306/* nested lists have no top/bottom margins */
307ul ul,   ul ol,   ul dir,   ul menu,   ul dl,
308ol ul,   ol ol,   ol dir,   ol menu,   ol dl,
309dir ul,  dir ol,  dir dir,  dir menu,  dir dl,
310menu ul, menu ol, menu dir, menu menu, menu dl,
311dl ul,   dl ol,   dl dir,   dl menu,   dl dl {
312  margin-top: 0;
313  margin-bottom: 0;
314}
315
316/* 2 deep unordered lists use a circle */
317ol ul,   ul ul,   menu ul,   dir ul,
318ol menu, ul menu, menu menu, dir menu,
319ol dir,  ul dir,  menu dir,  dir dir {
320  list-style-type: circle;
321}
322
323/* 3 deep (or more) unordered lists use a square */
324ol ol ul,     ol ul ul,     ol menu ul,     ol dir ul,
325ol ol menu,   ol ul menu,   ol menu menu,   ol dir menu,
326ol ol dir,    ol ul dir,    ol menu dir,    ol dir dir,
327ul ol ul,     ul ul ul,     ul menu ul,     ul dir ul,
328ul ol menu,   ul ul menu,   ul menu menu,   ul dir menu,
329ul ol dir,    ul ul dir,    ul menu dir,    ul dir dir,
330menu ol ul,   menu ul ul,   menu menu ul,   menu dir ul,
331menu ol menu, menu ul menu, menu menu menu, menu dir menu,
332menu ol dir,  menu ul dir,  menu menu dir,  menu dir dir,
333dir ol ul,    dir ul ul,    dir menu ul,    dir dir ul,
334dir ol menu,  dir ul menu,  dir menu menu,  dir dir menu,
335dir ol dir,   dir ul dir,   dir menu dir,   dir dir dir {
336  list-style-type: square;
337}
338
339
340/* leafs */
341
342hr {
343  display: block;
344  height: 2px;
345  border: 1px inset;
346  margin: 0.5em auto 0.5em auto;
347}
348
349iframe {
350  border: 2px inset;
351}
352
353noframes {
354  display: none;
355}
356
357br {
358  display: -dompdf-br;
359}
360
361img_inner {
362  display: -dompdf-image;
363}
364
365/* hidden elements */
366area, base, basefont, head, meta, script, style, title,
367noembed, noscript, param {
368   display: none;
369}
370
Note: See TracBrowser for help on using the repository browser.