cfdi.html.erb.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset='utf-8' />
  5. <style type="text/css">
  6. body {
  7. width: 216mm;
  8. height: auto;
  9. font-family: 'OpenSansRegular';
  10. font-size: 11px;
  11. }
  12. .left-right{
  13. float: left;
  14. text-align: right;
  15. }
  16. .left-left{
  17. float: left;
  18. text-align: left;
  19. }
  20. .logo{
  21. width: 70%;
  22. height: 5%;
  23. text-align: left;
  24. }
  25. @page{
  26. size: a4;
  27. margin: 1.5cm 2cm;
  28. }
  29. table {
  30. border-collapse: collapse;
  31. }
  32. th{
  33. background-color: #D8D8D8;
  34. height: 20px;
  35. /*border: 1px solid;*/
  36. }
  37. tr{
  38. padding: 0px;
  39. height: 10px;
  40. }
  41. table td{
  42. max-height: auto;
  43. word-wrap: break-word;
  44. vertical-align: top;
  45. padding: 1px;
  46. /*border-right: 1px solid;*/
  47. }
  48. table td, table th {
  49. text-align: center;
  50. }
  51. td{
  52. overflow: hidden;
  53. text-overflow:'';
  54. white-space: nowrap;
  55. }
  56. hr{
  57. width: 100%;
  58. background-color: #f2f2f2;
  59. }
  60. /*div.alwaysbreak { page-break-before: always; }
  61. div.nobreak:before { clear:both; }*/
  62. /*div.nobreak { page-break-inside: avoid; }*/
  63. /*table tr:first-child th {
  64. border-top: 0;
  65. }
  66. table tr:last-child td {
  67. border-bottom: 0;
  68. }
  69. table tr td:first-child,
  70. table tr th:first-child {
  71. border-left: 0;
  72. }
  73. table tr td:last-child,
  74. table tr th:last-child {
  75. border-right: 0;
  76. }*/
  77. </style>
  78. </head>
  79. <body>
  80. <page>
  81. <%= yield %>
  82. </page>
  83. </body>
  84. </html>