Explorar el Código

add css to break pages when creating pdfs

David hace 8 años
padre
commit
4400cc9948
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      styles.css

+ 16 - 0
styles.css

@@ -1,3 +1,6 @@
+* {
+  overflow: visible !important;
+}
 body {
 body {
   margin: 0;
   margin: 0;
   font-family: 'Raleway', sans-serif;
   font-family: 'Raleway', sans-serif;
@@ -139,3 +142,16 @@ h6.skill-class {
   margin-top: 10px;
   margin-top: 10px;
   margin-bottom: 5px;
   margin-bottom: 5px;
 }
 }
+
+@media print {
+  .new-page {
+    page-break-before: always;
+    page-break-after: always;
+    page-break-inside: always;
+  }
+  .experience-wrapper {
+    page-break-before: avoid;
+    page-break-after: avoid;
+    page-break-inside: avoid;
+  }
+}