Skip to content
Browse files

CSS file for us with generating PDF files

  • Loading branch information...
1 parent 8afcf14 commit d656a6e1c8dd69cd59d6bb46d89e239d0ca1638e @ranginui ranginui committed with nengard Jan 4, 2011
Showing with 220 additions and 0 deletions.
  1. +220 −0 css/manual-pdf.css
View
220 css/manual-pdf.css
@@ -0,0 +1,220 @@
+@page {
+ size: a4;
+ margin: 1cm;
+ margin-bottom: 2.5cm;
+ @frame footer {
+ -pdf-frame-content: footerContent;
+ bottom: 1cm;
+ margin-left: 10cm;
+ height: 1cm;
+ }
+}
+img {
+ zoom: 75%;
+}
+html {
+ font-family: Helvetica;
+ font-size: 10px;
+ font-weight: normal;
+ color: #000000;
+ background-color: transparent;
+ margin: 0;
+ padding: 0;
+ line-height: 150%;
+ border: 1px none;
+ display: inline;
+ width: auto;
+ height: auto;
+ white-space: normal;
+}
+
+b,
+strong {
+ font-weight: bold;
+}
+
+i,
+em {
+ font-style: italic;
+}
+
+u {
+ text-decoration: underline;
+}
+
+s,
+strike {
+ text-decoration: line-through;
+}
+
+a {
+ text-decoration: underline;
+ color: blue;
+}
+
+ins {
+ color: green;
+ text-decoration: underline;
+}
+del {
+ color: red;
+ text-decoration: line-through;
+}
+
+pre,
+code,
+kbd,
+samp,
+tt {
+ font-family: "Courier New";
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-weight:bold;
+ -pdf-outline: true;
+ -pdf-outline-open: false;
+}
+
+h1 {
+ /*18px via YUI Fonts CSS foundation*/
+ font-size:138.5%;
+ -pdf-outline-level: 0;
+}
+
+h2 {
+ /*16px via YUI Fonts CSS foundation*/
+ font-size:123.1%;
+ -pdf-outline-level: 1;
+}
+
+h3 {
+ /*14px via YUI Fonts CSS foundation*/
+ font-size:108%;
+ -pdf-outline-level: 2;
+}
+
+h4 {
+ -pdf-outline-level: 3;
+}
+
+h5 {
+ -pdf-outline-level: 4;
+}
+
+h6 {
+ -pdf-outline-level: 5;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+p,
+pre,
+hr {
+ margin:1em 0;
+}
+
+address,
+blockquote,
+body,
+center,
+dl,
+dir,
+div,
+fieldset,
+form,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+hr,
+isindex,
+menu,
+noframes,
+noscript,
+ol,
+p,
+pre,
+table,
+th,
+tr,
+td,
+ul,
+li,
+dd,
+dt,
+pdftoc {
+ display: block;
+}
+
+table {
+ -pdf-keep-in-frame-mode: shrink;
+}
+
+tr,
+th,
+td {
+
+ vertical-align: middle;
+ width: auto;
+}
+
+th {
+ text-align: center;
+ font-weight: bold;
+}
+
+center {
+ text-align: center;
+}
+
+big {
+ font-size: 125%;
+}
+
+small {
+ font-size: 75%;
+}
+
+
+ul {
+ margin-left: 1.5em;
+ list-style-type: disc;
+}
+
+ul ul {
+ list-style-type: circle;
+}
+
+ul ul ul {
+ list-style-type: square;
+}
+
+ol {
+ list-style-type: decimal;
+ margin-left: 1.5em;
+}
+
+pre {
+ white-space: pre;
+}
+
+blockquote {
+ margin-left: 1.5em;
+ margin-right: 1.5em;
+}
+
+noscript {
+ display: none;
+}
+

0 comments on commit d656a6e

Please sign in to comment.
Something went wrong with that request. Please try again.