mpdfstylePaged.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. @page {
  2. size: 15cm 17cm; /* width height <length>{1,2} | auto | portrait | landscape NB 'em' and 'ex' % are not allowed */
  3. margin: 10%; /* % of page-box width for LR, height for TB */
  4. margin-header: 5mm;
  5. margin-footer: 5mm;
  6. margin-left: 4cm;
  7. margin-right: 2cm;
  8. odd-header-name: myHeader2Odd;
  9. even-header-name: html_myHTMLHeaderEven;
  10. odd-footer-name: html_myHTMLFooterOdd;
  11. even-footer-name: myFooter2Even;
  12. marks: crop; /* crop | cross | none */
  13. }
  14. @page :first {
  15. margin-top: 5cm; /* Top margin on first page 10cm */
  16. }
  17. @page standard {
  18. size: auto; /* auto is the default mPDF value */
  19. margin: 10%; /* % of page-box width for LR, height for TB */
  20. marks: none; /* crop | cross | none */
  21. }
  22. @page standard :first {
  23. margin-top: 7cm; /* Top margin on first page 10cm */
  24. }
  25. @page bigsquare {
  26. size: 15cm 20cm;
  27. margin-left: 4cm;
  28. marks: crop cross; /* crop | cross | none */
  29. background: transparent url('bg.jpg') repeat scroll 5mm 5mm; /* position inset by bleedMargin */
  30. }
  31. @page bigsquare :right {
  32. header: html_myHTMLHeaderOdd;
  33. footer: html_myHTMLFooterOdd;
  34. }
  35. @page bigsquare :left { /* left is what mPDF calls EVEN page - right=ODD */
  36. header: html_myHTMLHeaderEven;
  37. footer: html_myHTMLFooterEven;
  38. }
  39. @page smallsquare {
  40. size: 25cm 15cm;
  41. margin-left: 4cm;
  42. marks: crop; /* crop | cross | none */
  43. background-gradient: linear #c7cdde #f0f2ff 0 1 0 0.5;
  44. }
  45. @page rotated {
  46. size: landscape;
  47. marks: none; /* crop | cross | none */
  48. background-color: #fff0f2;
  49. margin-left: 3cm;
  50. margin-right: 3cm;
  51. }
  52. @page rotated :first {
  53. margin-top: 7cm; /* Top margin on first page 10cm */
  54. }
  55. h1.heading1 { color: #1188FF;
  56. }
  57. h1.heading2 { color: #88FF11;
  58. page-break-before: always;
  59. page: standard;
  60. }
  61. h1.heading3 { color: #FF1188;
  62. page-break-before: right;
  63. }
  64. h1.heading4 { color: #FF8811;
  65. page-break-before: left;
  66. page: bigsquare;
  67. }
  68. h1.heading5 { color: #11FF88;
  69. page: smallsquare;
  70. }
  71. h1.heading6 { color: #8811FF;
  72. page: rotated;
  73. }
  74. br.paging { page-break-after: always; }
  75. body { font-family: DejaVuSansCondensed; font-size: 11pt; }
  76. p { text-align: justify; margin-bottom: 4pt; margin-top:0pt; }
  77. hr { width: 70%; height: 1px;
  78. text-align: center; color: #999999;
  79. margin-top: 8pt; margin-bottom: 8pt; }
  80. a { color: #000066; font-style: normal; text-decoration: underline;
  81. font-weight: normal; }
  82. ul { text-indent: 5mm; margin-bottom: 9pt; }
  83. ol { text-indent: 5mm; margin-bottom: 9pt; }
  84. pre { font-family: DejaVuSansMono; font-size: 9pt; margin-top: 5pt; margin-bottom: 5pt; }
  85. h1 { font-weight: normal; font-size: 26pt; color: #000066;
  86. font-family: DejaVuSansCondensed; margin-top: 18pt; margin-bottom: 6pt;
  87. border-top: 0.075cm solid #000000; border-bottom: 0.075cm solid #000000;
  88. text-align: ; page-break-after:avoid; }
  89. h2 { font-weight: bold; font-size: 12pt; color: #000066;
  90. font-family: DejaVuSansCondensed; margin-top: 6pt; margin-bottom: 6pt;
  91. border-top: 0.07cm solid #000000; border-bottom: 0.07cm solid #000000;
  92. text-align: ; text-transform: uppercase; page-break-after:avoid; }
  93. h3 { font-weight: normal; font-size: 26pt; color: #000000;
  94. font-family: DejaVuSansCondensed; margin-top: 0pt; margin-bottom: 6pt;
  95. border-top: 0; border-bottom: 0;
  96. text-align: ; page-break-after:avoid; }
  97. h4 { font-weight: ; font-size: 13pt; color: #9f2b1e;
  98. font-family: DejaVuSansCondensed; margin-top: 10pt; margin-bottom: 7pt;
  99. text-align: ; margin-collapse:collapse; page-break-after:avoid; }
  100. h5 { font-weight: bold; font-style:italic; ; font-size: 11pt; color: #000044;
  101. font-family: DejaVuSansCondensed; margin-top: 8pt; margin-bottom: 4pt;
  102. text-align: ; page-break-after:avoid; }
  103. h6 { font-weight: bold; font-size: 9.5pt; color: #333333;
  104. font-family: DejaVuSansCondensed; margin-top: 6pt; margin-bottom: ;
  105. text-align: ; page-break-after:avoid; }